summaryrefslogtreecommitdiff
path: root/old
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2020-10-22 08:28:58 -0400
committerKjetil Orbekk <kj@orbekk.com>2020-10-22 08:28:58 -0400
commit68908463d7676c35540fcea20ae70d177f49b053 (patch)
treeced8cb2d22a60eab6965108b97baa268583d6202 /old
parentd5ae4da269bf2f9e41b827c44a6aa4d6a802a36b (diff)
Remove old files
Diffstat (limited to 'old')
-rwxr-xr-xold/xsession33
1 files changed, 33 insertions, 0 deletions
diff --git a/old/xsession b/old/xsession
new file mode 100755
index 0000000..f7e402c
--- /dev/null
+++ b/old/xsession
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+
+export TERMINAL=urxvt
+export MPD_HOST=sabaki.kk.orbekk.com
+command -v $TERMINAL || TERMINAL=termite
+command -v $TERMINAL || TERMINAL=gnome-terminal
+PATH=$HOME/.cabal/bin:$PATH
+xrdb -merge $HOME/.Xresources
+setxkbmap us -variant dvorak -option compose:ralt -option caps:ctrl_modifier
+$HOME/bin/keyboard_setup.sh
+xscreensaver -no-splash &
+xbindkeys
+xset -b
+xss-lock -- /usr/bin/env xscreensaver-command --lock &
+pasystray &
+xsetroot -solid "#2A3462"
+trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 100 --widthtype pixel --transparent true --alpha 0 --tint 0x000000 --height 18 &
+[[ $(hostname) == kikashi ]] && \
+ xinput set-prop "TPPS/2 IBM TrackPoint" "Device Accel Constant Deceleration" 0.5
+if [[ $(hostname) == orange.nyc.corp.google.com ]]; then
+ xinput set-prop "Logitech USB Trackball" "Device Accel Constant Deceleration" 1.0
+ xinput set-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 1
+ xinput set-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8
+ true
+fi
+if [[ $(hostname) == pincer ]]; then
+ # xinput set-prop "TPPS/2 IBM TrackPoint" "Device Accel Constant Deceleration" 0.5
+ # xinput set-prop "SynPS/2 Synaptics TouchPad" "Device Accel Constant Deceleration" 0.5
+ true
+fi
+[[ -f /etc/nixos/configuration.nix ]] || \
+ redshift -l 40:-70 -r -t 5500:3700 &
+exec xmonad