From ed9218a31e2d23f329a3f0bb847ac28b76d4904f Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Sat, 30 Nov 2024 21:15:03 -0800 Subject: [PATCH] New backup 2024-11-30 21:15:03 --- de/home/.config/waybar/config | 12 ++++++------ de/home/.config/waybar/scripts/feishin.sh | 6 ++++++ de/home/.config/waybar/style.css | 4 ++-- 3 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 de/home/.config/waybar/scripts/feishin.sh diff --git a/de/home/.config/waybar/config b/de/home/.config/waybar/config index 083e9f1..9b6d040 100644 --- a/de/home/.config/waybar/config +++ b/de/home/.config/waybar/config @@ -6,7 +6,7 @@ // module order "modules-left": ["custom/sway-power","custom/sway-profile","sway/workspaces","sway/mode","sway/scratchpad","sway/window"], - "modules-center": ["custom/sonixd"], + "modules-center": ["custom/feishin"], "modules-right": ["idle_inhibitor", "pulseaudio", "network", "custom/nmvpn", "bluetooth", "memory", "battery", "clock", "tray"], // Modules configuration @@ -164,14 +164,14 @@ "on-click": "pavucontrol-qt --tab 3" }, -// Sonixd - "custom/sonixd": { +// Feishin + "custom/feishin": { "format": "{}", "return-type": "json", "interval": 5, - "exec": "$HOME/.config/waybar/scripts/sonixd.sh", - "exec-if": "pgrep Sonixd", - "on-click":"swaymsg [class='Sonixd'] focus", + "exec": "$HOME/.config/waybar/scripts/feishin.sh", + "exec-if": "pgrep Feishin", + "on-click":"swaymsg [class='feishin'] focus", "escape": true }, diff --git a/de/home/.config/waybar/scripts/feishin.sh b/de/home/.config/waybar/scripts/feishin.sh new file mode 100644 index 0000000..abef35b --- /dev/null +++ b/de/home/.config/waybar/scripts/feishin.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +artist=$(playerctl --player Feishin metadata artist) +title=$(playerctl --player Feishin metadata title) + +printf '{"text":'"\" ${title} by ${artist}\""',"class":"enabled"}'; diff --git a/de/home/.config/waybar/style.css b/de/home/.config/waybar/style.css index 556ea74..2eb1863 100644 --- a/de/home/.config/waybar/style.css +++ b/de/home/.config/waybar/style.css @@ -39,7 +39,7 @@ window box > box { opacity:0.75; } -.modules-left, .modules-right, #custom-sonixd.enabled { +.modules-left, .modules-right, #custom-feishin.enabled { background-color: @color0; margin:10px 20px 10px 20px; padding:5px 5px 3px 5px; @@ -131,7 +131,7 @@ button:hover { #network, #pulseaudio, #wireplumber, -#custom-sonixd.enabled, +#custom-feishin.enabled, #custom-separator, #custom-nmvpn, #bluetooth,