fixes to eww

This commit is contained in:
Chris Cochrun 2023-10-23 14:41:38 -05:00
parent d24c0913bb
commit 789fa95abf
3 changed files with 12 additions and 6 deletions

View file

@ -316,16 +316,19 @@ tooltip label {
font-weight: normal; font-weight: normal;
margin: 2px 0px 0px 0px; margin: 2px 0px 0px 0px;
background-color: rgba(00, 00, 00, 0.0); background-color: rgba(00, 00, 00, 0.0);
padding-left: 5px;
padding-right: 9px;
} }
.worksbox { .worksbox {
margin-left: 15px; font-size: 14px;
margin-right: 15px; padding-left: 15px;
// padding-right: 15px;
background-color: rgba(00, 00, 00, 0.0); background-color: rgba(00, 00, 00, 0.0);
} }
.works:hover { .works:hover {
background-color: $base0D; color: $base0E;
} }
.empty_workspace { .empty_workspace {

View file

@ -41,7 +41,7 @@
(box (box
:class "worksbox" :class "worksbox"
:orientation "h" :orientation "h"
:spacing 20 :spacing 10
:space-evenly false :space-evenly false
:valign "center" :valign "center"
(for workspace in workspaces (for workspace in workspaces
@ -49,8 +49,11 @@
"${workspace.id == 1 ? "" : "${workspace.id == 1 ? "" :
workspace.id == 2 ? "" : workspace.id == 2 ? "" :
workspace.id == 3 ? "󰈙" : workspace.id == 3 ? "󰈙" :
workspace.id == 4 ? "󰍨" : workspace.id == 4 ? "󰭹" :
workspace.id == 5 ? "" : workspace.id == 5 ? "" :
workspace.id == 6 ? "" :
workspace.id == 7 ? "󰕧" :
workspace.id == 8 ? "󰭹" :
workspace.id == 9 ? "" : workspace.id == 9 ? "" :
workspace.id}"))))) workspace.id}")))))

View file

@ -2,7 +2,7 @@
spaces (){ spaces (){
WORKSPACE_WINDOWS=$(hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .windows}) | from_entries') WORKSPACE_WINDOWS=$(hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .windows}) | from_entries')
seq 1 5 | jq --argjson windows "${WORKSPACE_WINDOWS}" --slurp -Mc 'map(tostring) | map({id: ., windows: ($windows[.]//0)})' seq 1 9 | jq --argjson windows "${WORKSPACE_WINDOWS}" --slurp -Mc 'map(tostring) | map({id: ., windows: ($windows[.]//0)})'
} }
spaces spaces