Pianonix: fix screen going to sleep mode

This commit is contained in:
Julian Mutter 2024-12-01 19:00:29 +01:00
parent b0acc7178d
commit 425c8f8e4f
2 changed files with 6 additions and 8 deletions

View File

@ -39,14 +39,6 @@
fonts.enable = true;
};
# Prevent screen from going blank (check these settings with `xset q`)
# And disable bell sound (b)
xsession.initExtra = ''
${pkgs.xorg.xset}/bin/xset s off
${pkgs.xorg.xset}/bin/xset -dpms
${pkgs.xorg.xset}/bin/xset b off
'';
services.syncthing.tray.enable = true;
services.syncthing.tray.command = "syncthingtray --wait"; # Wait for tray to become available

View File

@ -88,6 +88,12 @@
services.xserver.desktopManager = {
xfce = {
enable = true;
extraSessionCommands = ''
# Prevent screen from going blank or turning off (values in min)
${pkgs.xfce.xfconf}/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/blank-on-ac -s 0
${pkgs.xfce.xfconf}/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-on-ac-sleep -s 0
${pkgs.xfce.xfconf}/bin/xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-on-ac-off -s 0
'';
};
};