From 4375f08c67405483a837ca942df49a27e03763b6 Mon Sep 17 00:00:00 2001 From: candifloss Date: Thu, 12 Dec 2024 20:48:29 +0530 Subject: [PATCH] Comments --- yuck/panel/panel_widgs/panel_wifi_ico.yuck | 2 +- yuck/panel/panel_workspaces/leftwm_ws.yuck | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/yuck/panel/panel_widgs/panel_wifi_ico.yuck b/yuck/panel/panel_widgs/panel_wifi_ico.yuck index aaa62d0..3ee8c3c 100644 --- a/yuck/panel/panel_widgs/panel_wifi_ico.yuck +++ b/yuck/panel/panel_widgs/panel_wifi_ico.yuck @@ -7,6 +7,6 @@ :width "${h}" ;:active true :text "${wifi.icon}" - :tooltip "${wifi.name}\n${wifi.speed}" + :tooltip "${wifi.name} ${wifi.speed}" ) ) \ No newline at end of file diff --git a/yuck/panel/panel_workspaces/leftwm_ws.yuck b/yuck/panel/panel_workspaces/leftwm_ws.yuck index 7fb15bc..72eb352 100644 --- a/yuck/panel/panel_workspaces/leftwm_ws.yuck +++ b/yuck/panel/panel_workspaces/leftwm_ws.yuck @@ -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}) ) ) ) \ No newline at end of file