home | idle changes

This commit is contained in:
Don Harper 2024-04-24 21:47:02 -05:00
parent eba03f69d2
commit a85f202eb4
3 changed files with 21 additions and 22 deletions

View file

@ -5,11 +5,11 @@ set $snd_sink alsa_output.usb-Corsair_CORSAIR_VOID_ELITE_Wireless_Gaming_Dongle-
set $lock /home/don/bin/lock.sh set $lock /home/don/bin/lock.sh
#set $lock 'swaylock -f -c 000000' #set $lock 'swaylock -f -c 000000'
exec swayidle -w \ # exec swayidle -w \
timeout 300 $lock \ # timeout 300 $lock \
timeout 360 'swaymsg "output * dpms off"' \ # timeout 360 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ # resume 'swaymsg "output * dpms on"' \
before-sleep $lock # before-sleep $lock
floating_modifier $mod floating_modifier $mod

View file

@ -11,10 +11,9 @@
# sink_whitelist = [ # sink_whitelist = [
# { name = "Starship/Matisse HD Audio Controller Analog Stereo"; } # { name = "Starship/Matisse HD Audio Controller Analog Stereo"; }
# ]; # ];
# node_blacklist = [ node_blacklist = [
# { name = "spotify"; } { name = "nov"; }
# { app_name = "Music Player Daemon"; } ];
# ];
}; };
}; };
gnome-keyring = { gnome-keyring = {

View file

@ -2,19 +2,19 @@
{ {
xdg.configFile."sway/config".source = ./files/sway/${osConfig.networking.hostName}; xdg.configFile."sway/config".source = ./files/sway/${osConfig.networking.hostName};
# services = { services = {
# swayidle = { swayidle = {
# enable = true; enable = true;
# timeouts = [ timeouts = [
# { timeout = 300; command = "/home/bin/don/lock.sh"; } { timeout = 300; command = "/home/bin/don/lock.sh"; }
# { timeout = 360; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; } { timeout = 360; command = "${pkgs.sway}/bin/swaymsg 'output * dpms off'"; }
# ]; ];
# events = [ events = [
# { event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; } { event = "after-resume"; command = "${pkgs.sway}/bin/swaymsg 'output * dpms on'"; }
# { event = "before-sleep"; command = "/home/bin/don/lock.sh"; } { event = "before-sleep"; command = "/home/bin/don/lock.sh"; }
# ]; ];
# }; };
# }; };
programs = { programs = {
swaylock = { swaylock = {