{config, ...}: { # TODO: configure x11 to look in .config/x11 home.file.".xinitrc" = { recursive = true; text = '' ## Map Alt_L + [hjkl] to left, down, up, right xmodmap -e "keycode 64 = Mode_switch" # set Alt_l as the "Mode_switch" xmodmap -e "keycode 43 = h H Left H" # h xmodmap -e "keycode 44 = j J Down J" # j xmodmap -e "keycode 45 = k K Up K" # k xmodmap -e "keycode 46 = l L Right L" # l picom -b --config ~/.config/picom/picom.conf xrdb -merge ~/.Xresources autostart="clipboard-save dwmblocks feh-wallpaper-changer sxhkd" for program in $autostart; do pidof -sx "$program" || "$program" & done >/dev/null 2>&1 if test -z "$DBUS_SESSION_BUS_ADDRESS"; then eval $(dbus-launch --exit-with-session --sh-syntax) fi systemctl --user import-environment DISPLAY XAUTHORITY if command -v dbus-update-activation-environment >/dev/null 2>&1; then dbus-update-activation-environment DISPLAY XAUTHORITY fi export XSESSION_PID="$$" exec dwm ''; }; }