diff --git a/config/eww/traybuttons/traybuttons.scss b/config/eww/traybuttons/traybuttons.scss index cbca9237..ed33cb8d 100644 --- a/config/eww/traybuttons/traybuttons.scss +++ b/config/eww/traybuttons/traybuttons.scss @@ -1,34 +1,34 @@ .osk-toggle { font-size: 28px; - min-height: 34px; + min-height: 40px; min-width: 50px; padding: 0px 0px 0px 5px; } .tablet-toggle { font-size: 28px; - min-height: 34px; + min-height: 40px; min-width: 50px; padding: 0px 0px 0px 5px; } .heart-toggle { font-size: 28px; - min-height: 34px; + min-height: 40px; min-width: 50px; padding: 0px 0px 0px 4px; } .notif-panel { font-size: 20px; - min-height: 34px; + min-height: 37px; min-width: 105px; padding: 1px 0px 1px 5px; } .quick-settings-toggle { font-size: 24px; - min-height: 37px; + min-height: 40px; min-width: 40px; padding: 0px 0px 0px 0px; } diff --git a/config/eww/traybuttons/traybuttons.yuck b/config/eww/traybuttons/traybuttons.yuck index 02dab685..9a81f23b 100644 --- a/config/eww/traybuttons/traybuttons.yuck +++ b/config/eww/traybuttons/traybuttons.yuck @@ -1,7 +1,8 @@ (defvar osk-ts false) (defwidget osk-toggle [] - (button :class {osk-ts ? "toggle-on" : "toggle-off"} + (eventbox :class {osk-ts ? "toggle-on" : "toggle-off"} :onclick "$HYPR_PATH/osk-toggle.sh toggle &" + :cursor "pointer" (box :class "osk-toggle" :orientation "h" @@ -12,9 +13,11 @@ (defvar tablet-ts false) (defwidget tablet-toggle [] - (button :class {tablet-ts ? "toggle-on" : "toggle-off"} + (eventbox :class {tablet-ts ? "toggle-on" : "toggle-off"} :onclick {tablet-ts ? "$HYPR_PATH/laptop-mode.sh &" : "$HYPR_PATH/tablet-mode.sh &"} + :cursor "pointer" + (box :class "tablet-toggle" :orientation "h" (label :text " 󰦧 ") @@ -23,8 +26,9 @@ ) (defwidget heart-toggle [] - (button :class {heart_icon == "󰣐" ? "toggle-on" : "toggle-off"} + (eventbox :class {heart_icon == "󰣐" ? "toggle-on" : "toggle-off"} :onclick "$EWW_PATH/heart.sh" + :cursor "pointer" (box :class "heart-toggle" :orientation "h" @@ -60,8 +64,10 @@ (defvar quick-settings-ts false) (defwidget quick-settings-toggle [] - (button :class {quick-settings-ts ? "toggle-on" : "toggle-off"} + (eventbox :class {quick-settings-ts ? "toggle-on" : "toggle-off"} :onclick "" + :cursor "pointer" + (box :class "quick-settings-toggle" :orientation "h" (label :text "  ") @@ -83,7 +89,7 @@ (defvar notif-panel-state false) (defwidget notif-panel [] - (button :class {notif-panel-state ? "toggle-on" : "toggle-off"} + (eventbox :class {notif-panel-state ? "toggle-on" : "toggle-off"} :onclick {notif-panel-state ? "swaync-client -cp; eww update notif-panel-state=false" : "swaync-client -op; eww update notif-panel-state=true"} (box :class "notif-panel" diff --git a/config/hypr/main.conf b/config/hypr/main.conf index 92b94fe2..57cad8f3 100644 --- a/config/hypr/main.conf +++ b/config/hypr/main.conf @@ -22,7 +22,8 @@ exec-once = bash -c "sleep 6; tutanota-desktop -a" exec-once = eww daemon exec-once = eww open left-bar -exec-once = eww open right-bar +exec-once = eww open notif-panel +exec-once = eww open quick-settings-toggle # TODO: put this in eww configs? exec-once = $HYPR_PATH/osk-toggle.sh getState