Skip to content

Instantly share code, notes, and snippets.

@pavanjadhaw
Created May 15, 2018 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavanjadhaw/9cfb716dbc2784c029c278c67b8e9414 to your computer and use it in GitHub Desktop.
Save pavanjadhaw/9cfb716dbc2784c029c278c67b8e9414 to your computer and use it in GitHub Desktop.
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# 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
# 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
xsetroot -cursor_name left_ptr &
xrdb -load ~/.Xresources
setxkbmap -option caps:escape
xset r rate 300 50
xset +fp $HOME/.local/share/fonts
xset fp rehash
# start bars
polybar -r base &
betterlockscreen -w &
urxvt_daemon &
compton --config $HOME/.config/compton.conf -b
dunst -config ~/.config/dunst/dunstrc &
xfce4-power-manager &
redshift &
setxkbmap -layout us -option ctrl:nocaps &
twobwm() {
echo "2bwm" > "/home/pavan/.cache/squash/wm"
# 2bwm &
exec 2bwm
}
bspwm() {
echo "bspwm" > "/home/pavan/.cache/squash/wm"
sxhkd &
exec bspwm
}
twobwm # starts 2bwm
# bspwm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment