mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-02 18:20:52 +02:00
swaylock
This commit is contained in:
parent
5acd6c32da
commit
dec99022a9
1 changed files with 7 additions and 1 deletions
|
@ -21,6 +21,12 @@ with lib;
|
||||||
xdg.configFile."hypr/hyprland.conf".text = ''
|
xdg.configFile."hypr/hyprland.conf".text = ''
|
||||||
exec-once = waybar & hyprpaper
|
exec-once = waybar & hyprpaper
|
||||||
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY
|
exec-once=dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY
|
||||||
|
exec swayidle -w \
|
||||||
|
timeout 300 'swaylock -f -c 000000' \
|
||||||
|
timeout 600 'swaymsg "output * dpms off"' \
|
||||||
|
resume 'swaymsg "output * dpms on"' \
|
||||||
|
before-sleep 'swaylock -f -c 000000'
|
||||||
|
|
||||||
exec-once = nm-applet --indicator
|
exec-once = nm-applet --indicator
|
||||||
# Monitors
|
# Monitors
|
||||||
monitor = eDP-1, preferred, auto, auto
|
monitor = eDP-1, preferred, auto, auto
|
||||||
|
@ -164,7 +170,7 @@ with lib;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper swaylock ];
|
home.packages = with pkgs; [ qt6.qtwayland libsForQt5.qt5.qtwayland hyprpaper swaylock swayidle ];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue