2024-10-17 15:10:59 +02:00
|
|
|
{ extra, config, ... }:
|
2024-06-25 12:11:51 +02:00
|
|
|
{
|
|
|
|
home.file."bin/xinitrc" = {
|
|
|
|
executable = true;
|
|
|
|
text = ''
|
|
|
|
#!/bin/sh -e
|
|
|
|
cd "$HOME"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2024-10-17 15:10:59 +02:00
|
|
|
''
|
|
|
|
+
|
|
|
|
(if config.i3-plasma then ''
|
2024-10-16 19:22:16 +02:00
|
|
|
xwallpaper --focus ${extra.wall}
|
|
|
|
export KDEWM=i3
|
2024-10-17 15:10:59 +02:00
|
|
|
'' else "")
|
|
|
|
+
|
|
|
|
''
|
2024-06-25 12:11:51 +02:00
|
|
|
exec startplasma-x11
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|