about summary refs log tree commit diff stats
path: root/etc/X11/xprofile
diff options
context:
space:
mode:
Diffstat (limited to 'etc/X11/xprofile')
-rw-r--r--etc/X11/xprofile32
1 files changed, 32 insertions, 0 deletions
diff --git a/etc/X11/xprofile b/etc/X11/xprofile
new file mode 100644
index 0000000..9c9dc74
--- /dev/null
+++ b/etc/X11/xprofile
@@ -0,0 +1,32 @@
+#!/bin/sh
+. $HOME/etc/shrc
+# sets dvorak programmer layout
+# also increases autorepeat rate
+kbsetup
+## detect if laptop has other display connected, kills builtin if so
+#[ $(xrandr -q|grep -cE '^(DP|VGA|HDMI)-[[:digit:]] connected') -gt 0 ] && monitor
+# disables the beeper
+xset b off
+# enables x colorscheme
+xrdb -load "$HOME_ETC"/X11/xresources
+
+# set background
+xbg &
+# notification daemon
+# setup xnotify
+export XNOTIFY_FIFO="$HOME_CACHE/xnotify.fifo"
+rm -f "$XNOTIFY_FIFO"
+mkfifo "$XNOTIFY_FIFO"
+xnotify 0<>"$XNOTIFY_FIFO" &
+# start tiramisu
+tiramisu -o "$(printf '#summary\t#body\n')" > "$XNOTIFY_FIFO" &
+# status bar
+bar.sh &
+# mouse vanishes when typing
+xbanish &
+# activate mpd scrobbler
+mpdas -c $HOME_ETC/mpdasrc &
+# remind user of important tasks
+XFILE="$HOME_ETC/X11/xsession" bother &
+# cleanup tabbed
+rm $HOME_CACHE/catgirl/tabbed-catgirl.xid