diff options
-rwxr-xr-x | .xsessionrc | 18 | ||||
-rwxr-xr-x | bin/normalise-x | 24 |
2 files changed, 25 insertions, 17 deletions
diff --git a/.xsessionrc b/.xsessionrc index 42f83f69..1f1d6045 100755 --- a/.xsessionrc +++ b/.xsessionrc @@ -2,23 +2,7 @@ . $HOME/.shenv -# ---- no bell please - -xset b off - -# ---- keyboard settings - -xset r rate 380 25 -setxkbmap -option ctrl:nocaps -xmodmap ~/.xmodmaprc - -# enable numlock if using USB keyboard -lsusb | grep -q "Chicony Electronics Co., Ltd" \ - && numlockx on - -# ---- monitor settings - -xset dpms 600 +normalise-x # ---- screen locking diff --git a/bin/normalise-x b/bin/normalise-x new file mode 100755 index 00000000..1bcf9ffd --- /dev/null +++ b/bin/normalise-x @@ -0,0 +1,24 @@ +#!/bin/sh + +# idempotent X settings + +. $HOME/.shenv + +# ---- no bell please + +xset b off + +# ---- keyboard settings + +xset r rate 380 25 +setxkbmap -option ctrl:nocaps +xmodmap ~/.xmodmaprc + +# enable numlock if using USB keyboard +lsusb | grep -q "Chicony Electronics Co., Ltd" \ + && numlockx on + +# ---- monitor settings + +xset dpms 300 +xsetroot -solid \#3f3f3f |