From 02ce96b6632b746ad0e1dc915e846fb27582c47a Mon Sep 17 00:00:00 2001 From: Ryan Date: Sat, 9 Mar 2024 11:28:02 +0800 Subject: [PATCH] feat(waybar): Update waybar --- .bashrc | 5 ----- .config/waybar/{config => config.jsonc} | 2 +- .config/waybar/{sway-modules.json => sway-modules.jsonc} | 5 ++--- 3 files changed, 3 insertions(+), 9 deletions(-) rename .config/waybar/{config => config.jsonc} (93%) rename .config/waybar/{sway-modules.json => sway-modules.jsonc} (96%) diff --git a/.bashrc b/.bashrc index ff5cfd0..34dbd8c 100644 --- a/.bashrc +++ b/.bashrc @@ -16,8 +16,3 @@ fi # 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 diff --git a/.config/waybar/config b/.config/waybar/config.jsonc similarity index 93% rename from .config/waybar/config rename to .config/waybar/config.jsonc index 3e86fa5..11b1c34 100644 --- a/.config/waybar/config +++ b/.config/waybar/config.jsonc @@ -21,7 +21,7 @@ "clock" ], "include": [ - "~/.config/waybar/sway-modules.json" + "~/.config/waybar/sway-modules.jsonc" ] }, { diff --git a/.config/waybar/sway-modules.json b/.config/waybar/sway-modules.jsonc similarity index 96% rename from .config/waybar/sway-modules.json rename to .config/waybar/sway-modules.jsonc index 94bf97a..f585967 100644 --- a/.config/waybar/sway-modules.json +++ b/.config/waybar/sway-modules.jsonc @@ -90,8 +90,7 @@ }, "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", - "max-length": 40, - "on-click": "playerctl play-pause", - "on-click-right": "pavucontrol" + "max-length": 48, + "on-click": "playerctl play-pause" } }