From 1a52968ed8c7a8b5f085032073ebebc3d6af0295 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 23 Sep 2022 17:40:56 -0400 Subject: [PATCH] Wallpaper rotation applet --- waybar/config.template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/waybar/config.template b/waybar/config.template index c3e3fa444..24d7805dd 100644 --- a/waybar/config.template +++ b/waybar/config.template @@ -38,7 +38,7 @@ // Choose the order of the modules "modules-left": ["sway/workspaces"], "modules-center": [], - "modules-right": ["custom/weather", "network", "network#wireguard", "cpu", "memory", "custom/disk", "temperature", "backlight", "custom/battery", "pulseaudio","tray", "custom/todo", "custom/osk", "custom/pkg", "custom/bar", "custom/gammastep", "idle_inhibitor", "custom/clock", "custom/power"], + "modules-right": ["custom/weather", "network", "network#wireguard", "cpu", "memory", "custom/disk", "temperature", "backlight", "custom/battery", "pulseaudio","tray", "custom/wallpaper", "custom/todo", "custom/osk", "custom/pkg", "custom/bar", "custom/gammastep", "idle_inhibitor", "custom/clock", "custom/power"], // Modules configuration "sway/workspaces": { // "disable-scroll": true, @@ -162,6 +162,11 @@ "icon-size": 24, "spacing": 0 }, + "custom/wallpaper": { + "interval": 86400, + "exec": "echo '🌌\nRotate wallpaper\nactive'", + "on-click": "${HOME}/scripts/sway/rotate-wallpaper.sh" + }, "custom/todo": { "format": "🗈", "on-click": "${HOME}/scripts/waybar/waybar-todo.sh",