dotfiles/.xinitrc

61 lines
1.3 KiB
Text
Raw Permalink Normal View History

2018-04-15 23:34:53 +00:00
#!/bin/sh
2018-05-04 02:51:49 +00:00
# __ __ __ __ __ __ ______ ______
# /\_\_\_\ /\ \ /\ "-.\ \ /\ \ /\ == \ /\ ___\
# \/_/\_\/_ \ \ \ \ \ \-. \ \ \ \ \ \ __< \ \ \____
# /\_\/\_\ \ \_\ \ \_\\"\_\ \ \_\ \ \_\ \_\ \ \_____\
# \/_/\/_/ \/_/ \/_/ \/_/ \/_/ \/_/ /_/ \/_____/
# Turn off that damn bell!
xset -b
2018-04-15 23:34:53 +00:00
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
2018-05-04 02:51:49 +00:00
# pshuf and wal.sh can found in github.com/gigavinyl/.scripts
wallpaper=$(find "$HOME"/Wallpapers/* | pshuf | head -n1)
wal -b 0f0f0f -i "$wallpaper" -n --backend colorz
wal.sh
2018-04-15 23:34:53 +00:00
# merge in defaults and keymaps
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
2018-05-04 02:51:49 +00:00
# UTF8
setxkbmap -option compose:ralt
# Get fonts all setup
xset +fp "$HOME/.fonts"
xset fp rehash
2018-04-15 23:34:53 +00:00
# start some nice programs
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
2018-05-04 02:51:49 +00:00
feh --bg-fill "$wallpaper"
2018-04-15 23:34:53 +00:00
compton &
sxhkd &
urxvtd &
2018-05-04 02:51:49 +00:00
exec 2bwm