New backup 2024-11-30 21:15:03

This commit is contained in:
Penelope Gwen 2024-11-30 21:15:03 -08:00
parent 9bdcbe9029
commit ed9218a31e
3 changed files with 14 additions and 8 deletions

View file

@ -6,7 +6,7 @@
// module order // module order
"modules-left": ["custom/sway-power","custom/sway-profile","sway/workspaces","sway/mode","sway/scratchpad","sway/window"], "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-right": ["idle_inhibitor", "pulseaudio", "network", "custom/nmvpn", "bluetooth", "memory", "battery", "clock", "tray"],
// Modules configuration // Modules configuration
@ -164,14 +164,14 @@
"on-click": "pavucontrol-qt --tab 3" "on-click": "pavucontrol-qt --tab 3"
}, },
// Sonixd // Feishin
"custom/sonixd": { "custom/feishin": {
"format": "{}", "format": "{}",
"return-type": "json", "return-type": "json",
"interval": 5, "interval": 5,
"exec": "$HOME/.config/waybar/scripts/sonixd.sh", "exec": "$HOME/.config/waybar/scripts/feishin.sh",
"exec-if": "pgrep Sonixd", "exec-if": "pgrep Feishin",
"on-click":"swaymsg [class='Sonixd'] focus", "on-click":"swaymsg [class='feishin'] focus",
"escape": true "escape": true
}, },

View file

@ -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"}';

View file

@ -39,7 +39,7 @@ window box > box {
opacity:0.75; opacity:0.75;
} }
.modules-left, .modules-right, #custom-sonixd.enabled { .modules-left, .modules-right, #custom-feishin.enabled {
background-color: @color0; background-color: @color0;
margin:10px 20px 10px 20px; margin:10px 20px 10px 20px;
padding:5px 5px 3px 5px; padding:5px 5px 3px 5px;
@ -131,7 +131,7 @@ button:hover {
#network, #network,
#pulseaudio, #pulseaudio,
#wireplumber, #wireplumber,
#custom-sonixd.enabled, #custom-feishin.enabled,
#custom-separator, #custom-separator,
#custom-nmvpn, #custom-nmvpn,
#bluetooth, #bluetooth,