2024-06-19 10:33:04 +01:00
|
|
|
{ config, ... }:
|
2024-06-15 01:20:42 +01:00
|
|
|
{
|
2024-07-07 18:26:24 +01:00
|
|
|
# TODO: configure x11 to look in .config/x11
|
2024-06-15 01:20:42 +01:00
|
|
|
home.file.".xinitrc" = {
|
|
|
|
recursive = true;
|
|
|
|
text = ''
|
|
|
|
|
|
|
|
picom -b --config ~/.config/picom/picom.conf
|
|
|
|
xrdb ~/.Xresources
|
|
|
|
|
2024-06-20 13:29:33 +01:00
|
|
|
autostart="clipboard-save dwmblocks feh-wallpaper-changer sxhkd"
|
2024-06-15 01:20:42 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|