Add X windows config
This commit is contained in:
parent
1604ad2874
commit
97b610e9f7
|
@ -0,0 +1,3 @@
|
|||
Xft.dpi: 120
|
||||
|
||||
Xcursor.theme: Breeze_Snow
|
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
# merge xresources and modmaps to xrdb
|
||||
|
||||
if [ -f $sysresources ]; then
|
||||
xrdb -merge $sysresources
|
||||
fi
|
||||
|
||||
if [ -f $sysmodmap ]; then
|
||||
xmodmap $sysmodmap
|
||||
fi
|
||||
|
||||
if [ -f "$userresources" ]; then
|
||||
xrdb -merge "$userresources"
|
||||
fi
|
||||
|
||||
if [ -f "$usermodmap" ]; then
|
||||
xmodmap "$usermodmap"
|
||||
fi
|
||||
|
||||
# run setxkbmap to set the keyboard layout to GB (there should be a way to configure this global but it doesn't work)
|
||||
|
||||
setxkbmap -layout gb
|
||||
|
||||
# restore wallpaper by running script generated by feh when it set the wallpaper
|
||||
|
||||
~/.fehbg
|
||||
|
||||
# run the compositor, primarily to prevent screen tearing
|
||||
# picom looks first for its configuration file in `$XDG_CONFIG_HOME/picom.conf`
|
||||
# (see man page for more details)
|
||||
|
||||
picom -b
|
||||
|
||||
# start some nice programs suggested by Xorg
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
# use pointy cursor with bspwm (by default bspwm uses the x-shaped one)
|
||||
|
||||
xsetroot -cursor_name left_ptr
|
||||
|
||||
# run sxhkd for bspwm
|
||||
|
||||
sxhkd &
|
||||
|
||||
exec bspwm
|
Loading…
Reference in New Issue