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
"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
},

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;
}
.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,