Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 45 lines (38 sloc) 1.76 KB
#!/bin/sh
# Local setup:
# VDPAU: echo 'export MPV_HWDEC_FLAGS="--hwdec=vdpau"' >> ~/.xinitrc.local
# VAAPI: echo 'export MPV_HWDEC_FLAGS="--vo=vaapi --hwdec=vaapi"' >> ~/.xinitrc.local
# EVDEV: echo 'XKB_OPTS="-rules evdev"' >> ~/.xinitrc.local
# COMPTON: echo 'COMPTON_BACKEND_FLAGS="--backend glx --vsync opengl-swc"' >> ~/.xinitrc.local
# COMPTON, tweaked for amdgpu with TearFree: echo 'COMPTON_BACKEND_FLAGS="--backend glx --vsync none --glx-no-stencil --paint-on-overlay --glx-no-rebind-pixmap --glx-swap-method buffer-age --glx-use-copysubbuffermesa --sw-opti --unredir-if-possible --xrender-sync-fence"' >> ~/.xinitrc.local
# Need a session bus for stuff like nautilus trash
# note: ConsoleKit requires a dbus **system** bus
[ -z "$DBUS_SESSION_BUS_ADDRESS" ] && exec ck-launch-session dbus-launch --sh-syntax --exit-with-session sh $HOME/.xinitrc
# Make sure XCompose works!
export GTK_IM_MODULE=xim QT_IM_MODULE=xim XMODIFIERS="@im=none"
. ~/.desktoprc
. ~/.xinitrc.local
xrdb -merge -I$HOME ~/.Xresources
# Keyboard setup inspired by http://stevelosh.com/blog/2012/10/a-modern-space-cadet/
xset r rate 300 35
xset r 113 # 2009 bug strikes again https://bbs.archlinux.org/viewtopic.php?id=76747
xset r 116
setxkbmap 'us(colemak),ru' \
-option ctrl:nocaps \
-option ctrl:lctrl_meta \
-option compose:ralt \
-option grp:alt_space_toggle \
$XKB_OPTS
if [ -x "`which xcape`" ]; then
# "-f &" to make them appear under i3 in the process tree
xcape -t 350 -e 'Control_L=Escape' -f &
xcape -t 350 -e 'Shift_L=Shift_L|9' -f &
xcape -t 350 -e 'Shift_R=Shift_R|0' -f &
fi
# All the things
dunst &
unclutter &
compton --config ~/.config/compton.conf $COMPTON_BACKEND_FLAGS & # note: sh splices the variable, zsh would need ${=VAR}
redshift -l 55.75:37.616 -t 6500:4200 &
~/.fehbg &
exec i3