From 968c9cb9c75ffc43845085ecb7e56747640adeae Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 3 Aug 2025 17:50:17 -0700 Subject: Fixes and Adds new user systemd services --- dots/mako/.config/mako/config.j2 | 2 -- dots/mako/.config/mako/sounds/notification.mp3 | Bin 36864 -> 0 bytes .../.config/sway/config.d/10-autostart-applications | 3 +++ dots/sway/.config/sway/config.d/theme.j2 | 3 --- .../.config/systemd/services/wallpaper.service.j2 | 9 --------- dots/systemd/.config/systemd/user/playerctld.service | 9 +++++++++ dots/systemd/.config/systemd/user/wallpaper.service.j2 | 12 ++++++++++++ 7 files changed, 24 insertions(+), 14 deletions(-) delete mode 100644 dots/mako/.config/mako/sounds/notification.mp3 delete mode 100644 dots/systemd/.config/systemd/services/wallpaper.service.j2 create mode 100644 dots/systemd/.config/systemd/user/playerctld.service create mode 100644 dots/systemd/.config/systemd/user/wallpaper.service.j2 diff --git a/dots/mako/.config/mako/config.j2 b/dots/mako/.config/mako/config.j2 index d9a2f33..c2c32af 100644 --- a/dots/mako/.config/mako/config.j2 +++ b/dots/mako/.config/mako/config.j2 @@ -1,5 +1,3 @@ -on-notify=exec mpv --volume=50 ~/.config/mako/sounds/notification.mp3 & - font=monospace 11 format=%a ⏵ %s\n%b sort=-time diff --git a/dots/mako/.config/mako/sounds/notification.mp3 b/dots/mako/.config/mako/sounds/notification.mp3 deleted file mode 100644 index 0430b39..0000000 Binary files a/dots/mako/.config/mako/sounds/notification.mp3 and /dev/null differ diff --git a/dots/sway/.config/sway/config.d/10-autostart-applications b/dots/sway/.config/sway/config.d/10-autostart-applications index a6f182b..3e695f4 100644 --- a/dots/sway/.config/sway/config.d/10-autostart-applications +++ b/dots/sway/.config/sway/config.d/10-autostart-applications @@ -6,6 +6,9 @@ exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK exec hash dbus-update-activation-environment 2>/dev/null && \ dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK +exec swww-daemon -f xrgb +exec systemctl start --user wallpaper + exec swayidle -w \ timeout 300 'swaylock' \ timeout 600 'swaymsg "output * dpms off"' \ diff --git a/dots/sway/.config/sway/config.d/theme.j2 b/dots/sway/.config/sway/config.d/theme.j2 index a55c03b..9eeb1a8 100644 --- a/dots/sway/.config/sway/config.d/theme.j2 +++ b/dots/sway/.config/sway/config.d/theme.j2 @@ -6,9 +6,6 @@ default_border pixel 2 smart_borders on smart_gaps off -exec swww-daemon -f xrgb -exec systemctl start --user wallpaper - font pango:{{ theme.sway.font }} exec gsettings set org.gnome.desktop.interface cursor-theme {{ theme.gtk.cursor }} diff --git a/dots/systemd/.config/systemd/services/wallpaper.service.j2 b/dots/systemd/.config/systemd/services/wallpaper.service.j2 deleted file mode 100644 index df4f595..0000000 --- a/dots/systemd/.config/systemd/services/wallpaper.service.j2 +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Sets wallpaper randomly every 30 mins - -[Service] -Restart=always -RestartSec=1800s -ExecStart=/bin/bash {{ user.home }}/scripts/wallpaper.sh -Sysloglevel=5 -LogLevelMax=5 diff --git a/dots/systemd/.config/systemd/user/playerctld.service b/dots/systemd/.config/systemd/user/playerctld.service new file mode 100644 index 0000000..f54238c --- /dev/null +++ b/dots/systemd/.config/systemd/user/playerctld.service @@ -0,0 +1,9 @@ +[Unit] +Description=MPRIS + +[Service] +Type=oneshot +ExecStart=/usr/bin/playerctld daemon + +[Install] +WantedBy=default.target diff --git a/dots/systemd/.config/systemd/user/wallpaper.service.j2 b/dots/systemd/.config/systemd/user/wallpaper.service.j2 new file mode 100644 index 0000000..511a82e --- /dev/null +++ b/dots/systemd/.config/systemd/user/wallpaper.service.j2 @@ -0,0 +1,12 @@ +[Unit] +Description=Sets wallpaper randomly every 30 mins + +[Service] +Restart=always +RestartSec=1800s +ExecStart=/bin/bash {{ user.home }}/scripts/wallpaper.sh +Sysloglevel=5 +LogLevelMax=5 + +[Install] +WantedBy=default.target -- cgit v1.2.3-70-g09d2