feat(waybar): Update waybar

This commit is contained in:
Ryan 2024-03-09 11:28:02 +08:00
parent d1643efc5c
commit 02ce96b663
3 changed files with 3 additions and 9 deletions

View File

@ -16,8 +16,3 @@ fi
# Put your fun stuff here. # Put your fun stuff here.
# https://wiki.gentoo.org/wiki/Fish#fish_as_a_default_shell_with_bash_as_the_login_shell
# Use nu in place of bash
# keep this line at the bottom of ~/.bashrc
# [ -x /bin/nu ] && SHELL=/bin/nu exec nu

View File

@ -21,7 +21,7 @@
"clock" "clock"
], ],
"include": [ "include": [
"~/.config/waybar/sway-modules.json" "~/.config/waybar/sway-modules.jsonc"
] ]
}, },
{ {

View File

@ -90,8 +90,7 @@
}, },
"return-type": "json", "return-type": "json",
"exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{markup_escape(title)}} - {{markup_escape(album)}}\", \"class\": \"{{status}}\", \"alt\": \"{{status}}\" }' -F", "exec": "playerctl -a metadata --format '{\"text\": \"{{playerName}}: {{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{markup_escape(title)}} - {{markup_escape(album)}}\", \"class\": \"{{status}}\", \"alt\": \"{{status}}\" }' -F",
"max-length": 40, "max-length": 48,
"on-click": "playerctl play-pause", "on-click": "playerctl play-pause"
"on-click-right": "pavucontrol"
} }
} }