This repository has been archived on 2022-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.config/X11/xinitrc

41 lines
990 B
Plaintext
Raw Normal View History

2021-02-13 17:28:59 +01:00
#!/bin/sh
userresources=$HOME/.config/X11/Xresources
usermodmap=$HOME/.config/X11/Xmodmap
# merge in defaults and keymaps
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
pipewire &
2021-02-14 21:59:55 +01:00
if ! pgrep -f mpd > /dev/null
2021-02-13 17:28:59 +01:00
then
mpd &
fi
dunst &
greenclip daemon &
ibus-daemon -drx &
2021-02-14 21:59:55 +01:00
# emacs --daemon &
2021-02-13 17:28:59 +01:00
picom -b &
# xrandr --output eDP-1 --primary --auto --output DP-2 --left-of eDP-1 --auto --output HDMI-2 --right-of eDP-1 --auto &
# $HOME/.local/bin/garbage/off_touch &
# animatedwall --full ~/Pictures/Animated/fubuki.mp4 &
feh --no-fehbg --bg-fill --randomize ~/Pictures/Wallpapers/* &
export XDG_SESSION_TYPE=x11
export PATH=$HOME/.local/bin/X11:$PATH
session=${1:-spectrwm}
case $session in
bspwm ) exec bspwm ;;
spectrwm ) exec spectrwm -c ~/.config/spectrwm/spectrwm-nord.conf ;;
2021-02-14 21:59:55 +01:00
exwm ) exec dbus-run-session emacs -mm --debug-init -l ~/.config/doom/exwm.el ;;
2021-02-13 17:28:59 +01:00
* ) exec "$1" ;;
esac