From a53f76a0be5edfa8d518867478accbd059298edf Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 26 Apr 2023 16:00:34 -0400 Subject: [PATCH] yambar: Handle special workspace --- yambar/.config/yambar/hyprland.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yambar/.config/yambar/hyprland.sh b/yambar/.config/yambar/hyprland.sh index bbd75cef..0b44b914 100755 --- a/yambar/.config/yambar/hyprland.sh +++ b/yambar/.config/yambar/hyprland.sh @@ -3,7 +3,7 @@ declare hypr_ws while true; do - hypr_ws=$(hyprctl workspaces -j | jq -r 'sort_by(.id)[] | .name' | sed -e "s/^1:/ 一/g" -e "s/^1$/ 一/g" -e "s/^2/ 二/g" -e "s/^3/ 三/g" -e "s/^4/ 四/g" -e "s/^5/ 五/g" -e "s/^6/ 六/g" -e "s/^7/ 七/g" -e "s/^8/ 八/g" -e "s/^9/ 九/g" -e "s/^10/ 十/g" | tr '\n' ' ') + hypr_ws=$(hyprctl workspaces -j | jq -r 'sort_by(.id)[] | .name' | sed -e "s/^special$/ 特別/g" -e "s/^1:/ 一/g" -e "s/^1$/ 一/g" -e "s/^2/ 二/g" -e "s/^3/ 三/g" -e "s/^4/ 四/g" -e "s/^5/ 五/g" -e "s/^6/ 六/g" -e "s/^7/ 七/g" -e "s/^8/ 八/g" -e "s/^9/ 九/g" -e "s/^10/ 十/g" | tr '\n' ' ') printf -- '%s\n' "hypr_ws|string|${hypr_ws}" printf -- '%s\n' ""