32 lines
715 B
Plaintext
32 lines
715 B
Plaintext
|
;This widget and code only works for LeftWM
|
||
|
|
||
|
(defwidget panel_leftwm_ws_ico [h tag]
|
||
|
(button
|
||
|
:halign "center"
|
||
|
:valign "center"
|
||
|
:height "${h}"
|
||
|
:width "${h}"
|
||
|
: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"
|
||
|
{tag.mine ? '' : tag.busy ? '' : ''}
|
||
|
)
|
||
|
)
|
||
|
|
||
|
(defwidget panel_ws_leftwm [h]
|
||
|
(box
|
||
|
:class "panel_workspaces_widg"
|
||
|
:halign "center"
|
||
|
:valign "center"
|
||
|
:height "${h}"
|
||
|
:active true
|
||
|
|
||
|
(for tag in '${leftwm_state.workspaces[0].tags}'
|
||
|
(panel_leftwm_ws_ico
|
||
|
:h "${h}"
|
||
|
:tag {tag}
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|