figured out how to make workspaces look prettier

main
The_miro 2024-11-26 22:49:04 +01:00
parent 1ab9e5685a
commit 499f29d856
2 changed files with 3 additions and 2 deletions

View File

@ -63,9 +63,10 @@
:width 20 :width 20
(for i in {workspaces[monitor].workspaces} (for i in {workspaces[monitor].workspaces}
(button (button
:width 20
:onclick "hyprctl dispatch workspace ${i.id}" :onclick "hyprctl dispatch workspace ${i.id}"
:class "${i.class}" :class "${i.class}"
"${i.name}"))))) "󱂬${i.name}")))))
(deflisten workspace-old "scripts/workspace") (deflisten workspace-old "scripts/workspace")

View File

@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
#define icons for workspaces 1-9 #define icons for workspaces 1-9
ic=(0 1 2 3 4 5 6 7 8 9) ic=("W0" "W1" "W2" "W3" "W4" "W5" "W6" "W7" "W8" "W9")
#initial check for occupied workspaces #initial check for occupied workspaces
for num in $(hyprctl workspaces | grep ID | sed 's/()/(1)/g' | awk 'NR>1{print $1}' RS='(' FS=')'); do for num in $(hyprctl workspaces | grep ID | sed 's/()/(1)/g' | awk 'NR>1{print $1}' RS='(' FS=')'); do