xsession: split from bspwm, update README.md and check_dependencies.sh
This commit is contained in:
14
xsession/.Xresources
Normal file
14
xsession/.Xresources
Normal file
@ -0,0 +1,14 @@
|
||||
#if HEIGHT == 2160
|
||||
Xft.dpi: 160
|
||||
Xcursor.size: 48
|
||||
polybar.height: 40
|
||||
#else
|
||||
Xft.dpi: 107
|
||||
polybar.height: 30
|
||||
#endif
|
||||
|
||||
emacs.font: Iosevka Slab Light-12
|
||||
emacs.cursorBlink: false
|
||||
emacs.scrollBarWidth: 20
|
||||
emacs.background: #424242
|
||||
emacs.foreground: #E0E0E0
|
1
xsession/.config/xsettingsd/xsettingsd.conf
Normal file
1
xsession/.config/xsettingsd/xsettingsd.conf
Normal file
@ -0,0 +1 @@
|
||||
Net/ThemeName "Materia-dark"
|
5
xsession/.xmodmaprc
Normal file
5
xsession/.xmodmaprc
Normal file
@ -0,0 +1,5 @@
|
||||
! make right windows key and menu key a hyper key
|
||||
remove mod4 = Super_R
|
||||
keycode 134 = Hyper_R NoSymbol Hyper_R
|
||||
keycode 135 = Hyper_R NoSymbol Hyper_R
|
||||
add mod3 = Hyper_R
|
36
xsession/.xsession
Executable file
36
xsession/.xsession
Executable file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "$EDITOR" ]; then
|
||||
. ~/.profile
|
||||
fi
|
||||
|
||||
xrandr --auto
|
||||
xrandr --output HDMI1 --right-of DP1
|
||||
xsetroot -solid '#94a3b8'
|
||||
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 &
|
||||
|
||||
exec qtile start
|
||||
|
||||
if which bspwm > /dev/null; then
|
||||
sxhkd &
|
||||
xsetroot -cursor_name left_ptr
|
||||
exec bspwm
|
||||
fi
|
||||
exec /usr/bin/i3
|
||||
dwm-clock &
|
||||
exec /usr/local/bin/dwm
|
||||
exec xterm
|
Reference in New Issue
Block a user