forked from poz/niksos
add seemingly broken post suspend script
it was supposed to fix my external monitor not working :-(
This commit is contained in:
parent
db05e8d3d8
commit
a2891699f4
1 changed files with 20 additions and 3 deletions
|
@ -337,9 +337,26 @@
|
|||
wantedBy = [ "sleep.target" ];
|
||||
};
|
||||
|
||||
#"resume@" = {
|
||||
#
|
||||
#};
|
||||
"resume@" = {
|
||||
description = "Unit resume actions";
|
||||
after = [ "suspend.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
User = "%I";
|
||||
Type = "forking";
|
||||
};
|
||||
|
||||
environment = {
|
||||
DISPLAY = ":0";
|
||||
};
|
||||
|
||||
script = ''
|
||||
${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/hyprctl dispatch dpms off HDMI-A-1
|
||||
${inputs.hyprland.packages.${pkgs.system}.hyprland}/bin/hyprctl dispatch dpms on HDMI-A-1
|
||||
'';
|
||||
|
||||
wantedBy = [ "sleep.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
# this makes usb devices autosuspend
|
||||
|
|
Loading…
Reference in a new issue