This commit is contained in:
Candifloss 2024-12-12 20:48:29 +05:30
parent 5699e52919
commit 4375f08c67
2 changed files with 6 additions and 7 deletions

View File

@ -7,6 +7,6 @@
:width "${h}"
;:active true
:text "${wifi.icon}"
:tooltip "${wifi.name}\n${wifi.speed}"
:tooltip "${wifi.name} ${wifi.speed}"
)
)

View File

@ -1,5 +1,6 @@
;This widget and code only works for LeftWM
;This widget and code are specific for LeftWM
; Icons for individual tags
(defwidget panel_leftwm_ws_ico [h tag]
(button
:halign "center"
@ -9,11 +10,12 @@
:active true
:class "panel_ws_ico ${tag.mine ? 'panel_ws_ico_cur' : 'panel_ws_ico_notcur'} ${tag.busy ? 'panel_ws_ico_act' : 'panel_ws_ico_inact'}"
:onclick "leftwm-command \"SendWorkspaceToTag 0 ${tag.index}\""
:timeout "1s"
:timeout "300ms"
{tag.mine ? '' : tag.busy ? '' : ''}
)
)
; LeftWM work-space widget showing all tags
(defwidget panel_ws_leftwm [h]
(box
:class "panel_workspaces_widg"
@ -23,10 +25,7 @@
:active true
(for tag in '${leftwm_state.workspaces[0].tags}'
(panel_leftwm_ws_ico
:h "${h}"
:tag {tag}
)
(panel_leftwm_ws_ico :h "${h}" :tag {tag})
)
)
)