ftp -o - https://jcs.org/move_in | sh -

xsession: per-wm commands, override in .xsession-local

- make xdimmer only dim keyboard backlight
- add tpadnav
- add questionably-effective touchpad xinput settings

+37 -15
+37 -15
.xsession
··· 1 - #!/bin/sh -x 1 + #!/bin/sh 2 + 3 + #set -x 4 + 5 + if [ -f ~/.xsession.local ]; then 6 + . ~/.xsession.local 7 + fi 2 8 3 9 cleanup() { 4 10 echo "cleaning up" ··· 48 54 xset b 0 0 0 49 55 xset r rate 350 35 50 56 57 + # touchpad - Accel Constant Deceleration 58 + xinput set-float-prop /dev/wsmouse0 300 0.4 59 + # touchpad - Accel Velocity Scaling 60 + xinput set-float-prop /dev/wsmouse0 302 1.5 61 + 51 62 # disable built-in saver, because xidle will handle it 52 63 xset s off 53 64 # disable dpms, because slock will handle it ··· 57 68 eval `dbus-launch --sh-syntax` 58 69 59 70 # ~/bin/lock does some protections and runs slock 60 - xidle -timeout 900 -ne -program ~/bin/lock & 71 + xidle -timeout 1800 -sw -program ~/bin/lock & 61 72 62 73 xbanish & 63 - 64 - hsetroot -solid "#a3ccbd" 65 - picom -b 74 + tpadnav & 75 + xdimmer -kn -t 10 -s 1 -K & 66 76 67 - #xdimmer -n -a & 68 - 69 - # turn off the touchscreen 70 - #xinput disable /dev/wsmouse2 77 + xcalib ~/.icc/x1nano.icc 71 78 72 79 # run after any icc profile loading 73 - redshift -l 41.90:-87.66 -t 6500:3500 -m randr & 80 + redshift -l 41.90:-87.66 -t 5000:3500 -m randr & 74 81 75 - # finally, run the window manager and block 76 - if [ -x ~/code/sdorfehs/sdorfehs ]; then 82 + if [ "$WM" = "progman" -a -x ~/code/progman/progman ]; then 83 + (sleep 1; xbatticon) & 84 + (sleep 1.2; FMT=`printf "%%a %%b %%d\n%%H:%%M"`; xcalicon -f "$FMT") & 85 + (sleep 1.4; xweathericon -k $WEATHER_API_KEY -z $WEATHER_ZIPCODE) & 86 + 87 + # debugging setup: 88 + #tmux new-session -d ~/code/progman/progman 89 + #sleep 1 90 + #while pgrep -q progman; do 91 + # sleep 1 92 + #done 93 + ~/code/progman/progman 94 + elif [ "$WM" = "sdorfehs" -a -x ~/code/sdorfehs/sdorfehs ]; then 95 + hsetroot -solid "#a3ccbd" 96 + picom -b 77 97 ~/code/sdorfehs/sdorfehs 78 - elif [ -x /usr/local/bin/sdorfehs ]; then 79 - /usr/local/bin/sdorfehs 80 - else 98 + elif [ "$WM" = "xterm" ]; then 99 + /usr/X11R6/bin/xterm 100 + elif [ -x /usr/X11R6/bin/fvwm ]; then 81 101 /usr/X11R6/bin/fvwm 102 + else 103 + /usr/X11R6/bin/xterm 82 104 fi 83 105 84 106 cleanup