#!/bin/sh userresources=$HOME/.config/X11/Xresources usermodmap=$HOME/.config/X11/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 pipewire & if ! pgrep -f mpd > /dev/null ; then mpd & fi dunst & greenclip daemon & ibus-daemon -drx & emacs --daemon & 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 ;; * ) exec "$1" ;; esac