dpms
This commit is contained in:
parent
3c9d845bcc
commit
d10e7d1a5a
4 changed files with 22 additions and 0 deletions
3
X11/xorg.conf.d/10-extensions.conf
Normal file
3
X11/xorg.conf.d/10-extensions.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Section "Extensions"
|
||||
Option "DPMS" "true"
|
||||
EndSection
|
||||
6
X11/xorg.conf.d/10-serverflags.conf
Normal file
6
X11/xorg.conf.d/10-serverflags.conf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Section "ServerFlags"
|
||||
Option "StandbyTime" "30"
|
||||
Option "SuspendTime" "0"
|
||||
Option "OffTime" "0"
|
||||
Option "BlankTime" "0"
|
||||
EndSection
|
||||
12
scripts/x11/s-x11-screen-standby
Executable file
12
scripts/x11/s-x11-screen-standby
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
opts="0=none 900=15min 1800=30min 3600=1h 7200=2h 14400=4h 28800=8h 43200=12h 86400=24h"
|
||||
|
||||
time="$(for o in $opts; do
|
||||
printf '%s\n' "$o"
|
||||
done | menu 'dmenu' 'x11 screen standby time (seconds)')"
|
||||
time="${time%%=*}"
|
||||
|
||||
if [ "$time" != "" ]; then
|
||||
xset dpms "$time"
|
||||
fi
|
||||
|
|
@ -6,6 +6,7 @@ PATH="$HOME/.config/scripts/menu${PATH:+:${PATH}}"
|
|||
PATH="$HOME/.config/scripts/menu/xclipmenu${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/scripts/sway${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/scripts/dwm${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/scripts/x11${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/scripts/setup${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/wrappers${PATH:+:${PATH}}"
|
||||
PATH="$HOME/.config/scripts${PATH:+:${PATH}}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue