[sway] Re-run thinkpad-docking script if computer resumes from suspend
This commit is contained in:
parent
130e0312a3
commit
ad54d1bb45
|
@ -415,9 +415,8 @@ in
|
|||
before-sleep '${config.home.homeDirectory}/bin/blur-lock' \
|
||||
unlock '${config.home.homeDirectory}/bin/thinkpad-dock' \
|
||||
timeout 300 '${config.home.homeDirectory}/bin/blur-lock' \
|
||||
timeout 600 '${pkgs.sway}/bin/swaymsg "output * dpms off"' \
|
||||
timeout 900 '${config.home.homeDirectory}/bin/suspend-if-docked' \
|
||||
resume '${pkgs.sway}/bin/swaymsg "output * dpms on"'
|
||||
timeout 600 '${pkgs.sway}/bin/swaymsg "output * dpms off"' resume '${pkgs.sway}/bin/swaymsg "output * dpms on"' \
|
||||
timeout 900 '${config.home.homeDirectory}/bin/suspend-if-docked' resume '${pkgs.sway}/bin/swaymsg "output * dpms on" && /home/bascht/bin/thinkpad-dock'
|
||||
'';
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
|
|
Loading…
Reference in New Issue