Merge xinitrc
Opened this issue · 1 comments
Deleted user commented
Hello xero,
Saw that you've been using two different xinitrc files that can be merged:
#!/bin/sh
#
# ██ ██ ██
# ░░ ░░ ░██
# ██ ██ ██ ███████ ██ ██████ ██████ █████
# ░░██ ██ ░██░░██░░░██░██░░░██░ ░░██░░█ ██░░░██
# ░░███ ░██ ░██ ░██░██ ░██ ░██ ░ ░██ ░░
# ██░██ ░██ ░██ ░██░██ ░██ ░██ ░██ ██
# ██ ░░██░██ ███ ░██░██ ░░██ ░███ ░░█████
# ░░ ░░ ░░ ░░░ ░░ ░░ ░░ ░░░ ░░░░░
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ xero <x@xero.nu>
# ░▓ code ▓ http://code.xero.nu/dotfiles
# ░▓ mirror ▓ http://git.io/.files
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
# merge custom x resources
xrdb -merge "${HOME}/.Xdefaults" &
# start the terminal emulator daemon
urxvtd -q -f -o &
# keyring
gnome-keyring-daemon &
# wifi
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
(sleep 2s && nm-applet --sm-disable) &
# power management
(sleep 2s && xfce4-power-manager) &
# sound mixer
(sleep 2s && pnmixer) &
# volume keys daemon
(sleep 2s && xfce4-volumed) &
# compositing manager
#compton -b --config ~/.config/compton.conf &
# start thunar daemon
thunar --daemon &
# wallpaper
nitrogen --restore &
# configure touchpad
syndaemon -i 0.8 -d &
if egrep -iq 'touchpad' /proc/bus/input/devices; then
synclient VertEdgeScroll=0 &
synclient TapButton1=1 &
synclient HorizTwoFingerScroll=1 &
fi
# clipboard manager
(sleep 3s && clipit) &
# keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
xset r rate 250 25 &
# disable system beep
xset b off &
# start the rock
mpd &
# setup fonts
xset +fp ~/.fonts &
xset fp rehash &
session=${1:-awesome}
case $session in
awesome)
Xdefaults
# fix cursors. for a minute :/
xsetroot -cursor_name left_ptr
exec awesome
;;
herbstluftwm)
exec herbstluftwm --locked
;;
*)
printf '%s\n' 'System failure, abandon the ship!'
;;
esac
Replace startx
in your zprofile with
exec xinit awesome -- :0 -nolisten tcp vt1
Also in your shell configuration file you can point another location for xinitrc
export XINITRC="$HOME/.config/xinitrc"
Is there are any reason why there are so many sleep
in there ?
Cheers
xero commented
i was trying to keep multiple wm setups in this repo at once. thus i had a different .xinitrc for herb, awesome, 2bwm, etc... i'm moving to a new setup where each tagged release with be for a specific setup (more on that soon). with this house keeping commit this is now resolved.