diff options
author | Jesús <heckyel@hyperbola.info> | 2019-04-21 17:59:19 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-04-21 17:59:19 -0500 |
commit | bace8803dae9ce2c318a41de78b46bd05382d368 (patch) | |
tree | 2f6d9cae6e95d7b64d1fc8257f82ef3c8a5d5b6a | |
parent | f56d9d68470b7c358ca992d7f4119930415a8067 (diff) | |
download | i3-config-bace8803dae9ce2c318a41de78b46bd05382d368.tar.lz i3-config-bace8803dae9ce2c318a41de78b46bd05382d368.tar.xz i3-config-bace8803dae9ce2c318a41de78b46bd05382d368.zip |
Added black energy-saving screen
-rw-r--r-- | config | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -275,6 +275,19 @@ mode "$mode_system" { } bindsym $mod+Pause mode "$mode_system" +# Manual display on and off +# Disables the black screen that appears to save the monitor's power +# when you do not touch the computer in a few minutes. +set $mode_display_on_off Black energy-saving screen: (y) enable, (n) disable +mode "$mode_display_on_off" { + bindsym y exec --no-startup-id xset s on && xset s blank && xset +dpms, mode "default" + bindsym n exec --no-startup-id xset s off && xset s noblank && xset -dpms, mode "default" + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+p mode "$mode_display_on_off" + #players global horkeys bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioNext exec playerctl next |