dotfiles/xsession/.xsession
Łukasz Pankowski acd4f75d63 lupan-wm: M-S-F6 switchs theme, use st as terminal
st-lupan-0.8.5.diff adapted from
http://st.suckless.org/patches/solarized/st-solarized-both-0.8.4.diff by
- change to windi colors
- switch colors with F6 or select with SIGUS1/SIGUSR2
- use font Iosevka Slab Light
2022-01-25 05:52:49 +01:00

54 lines
911 B
Bash
Executable File

#!/bin/sh
if [ -z "$EDITOR" ]; then
. ~/.profile
fi
xrandr --auto
xrandr --output HDMI1 --right-of DP1
xrdb -merge ~/.Xresources
setxkbmap pl -option ctrl:nocaps
xmodmap ~/.xmodmaprc
# lock screen on suspend/hibernate
if which xss-lock slock >/dev/null; then
xss-lock slock &
else
( echo "Missing command(s):"; which xss-lock slock 2>&1 ) | xmessage -file -
fi
# run emacs daemon if not running
emacsclient --eval nil -a '' &
xsettingsd &
if which lupan-wm > /dev/null; then
xsetroot -solid '#4a4a4a'
lupan-clock &
xsetroot -cursor_name left_ptr
exec lupan-wm -s 20
fi
xsetroot -solid '#94a3b8'
if which qtile > /dev/null; then
exec qtile start
fi
if which bspwm > /dev/null; then
sxhkd &
xsetroot -cursor_name left_ptr
exec bspwm
fi
if which i3 > /dev/null; then
exec i3
fi
if which dwm > /dev/null; then
lupan-clock &
exec dwm
fi
exec xterm