berry
Rachel Lambda Samuelsson 2024-03-12 12:20:46 +01:00
parent 02d29fb799
commit f809873243
2 changed files with 10 additions and 24 deletions

View File

@ -95,9 +95,6 @@ in rec {
file.".config/berry/autostart" = {
source = ./berry_config;
};
file."bin/xinitrc" = {
source = ./xinitrc;
};
stateVersion = "23.11";
};
@ -535,6 +532,15 @@ in rec {
};
};
xsession = {
enable = true;
initExtra = ''
xwallpaper --zoom "$HOME"/img/wallpaper
'';
scriptPath = "bin/xinitrc";
windowManager.command = "${pkgs.berry}/bin/berry";
};
systemd.user= {
timers = {
battery-check = {
@ -544,6 +550,7 @@ in rec {
OnUnitActiveSec = "30s";
Unit = "battery-check.service";
};
Install.WantedBy = [ "graphical-session.target" ];
};
};
services = {

View File

@ -1,21 +0,0 @@
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
xwallpaper --zoom "$HOME"/img/wallpaper
systemctl stop --user sxhkd.scope
systemd-cat -t sxhkd systemd-run --user --scope --property=OOMPolicy=continue -u sxhkd sxhkd -m 1 &
systemctl restart --user dunst
systemctl restart --user picom
systemctl restart --user polybar
systemctl restart --user network-manager-applet
systemctl restart --user battery-check.timer
exec berry