Improve / fix screen lock and brightness buttons

This commit is contained in:
2024-06-19 23:42:33 +02:00
parent 05e71d800d
commit 8cee271d91
3 changed files with 24 additions and 3 deletions

View File

@ -45,6 +45,10 @@ in
xfce.xfce4-screenshooter
];
xsession.enable = true; # Give gui programs access to sessionVariables
# Prevent screen from going blank
xsession.initExtra = ''
${pkgs.xorg.xset}/bin/xset s off
'';
xsession.windowManager.i3 = {
enable = true;
package = pkgs.i3-gaps;

View File

@ -11,11 +11,11 @@ font pango:FuraCode Nerd Font 12
# xss-lock grabs a logind suspend inhibit lock and will use $lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- $lock --nofork
# exec --no-startup-id xss-lock --transfer-sleep-lock -- $lock --nofork
# Screen brightness controls
# bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'"
# bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'"
bindsym XF86MonBrightnessUp exec "brightnessctl set 5%+"
bindsym XF86MonBrightnessDown exec "brightnessctl set 5%-"
# Use pactl to adjust volume in PulseAudio.
# set $refresh_i3status killall -SIGUSR1 i3status