Compare commits

...

3 Commits

Author SHA1 Message Date
Amir Alexander Abdelbaki e86c8eef5f readjusted the eww bar 2026-06-02 09:24:31 +02:00
Amir Alexander Abdelbaki a54e0749ad fix(eww-touch): restore layout with all session styling applied
Restores the screenrotate centre widget (OSK, prev/next workspace,
rotate CW/CCW, close) that was lost to an external edit, and re-applies
all session changes on top:
- Circular (round) class on OSK, drawer, and all five screenrotate buttons
- Close button uses hyprctl dispatch killactive
- Workspace buttons use focusleft/focusright scripts
- winsworks hexpand + metric/scale hexpand for responsive volume slider
- Clock widget split into icon label + time label with a space between

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 09:20:54 +02:00
Amir Alexander Abdelbaki 9d7c7a5932 feat(eww-touch): restyle bar with pill aesthetic, tighter sizing, responsive slider
- Switch font to 16pt with proportionally scaled padding/margins
- Full pill border-radius (999px) on all widgets
- Circular buttons (50%) for OSK, drawer, close, workspace, screen rotation
- Volume slider expands to fill available bar width (hexpand)
- Workspace buttons use focusleft.sh / focusright.sh scripts
- Add space between clock icon and time

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 09:15:41 +02:00
2 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
* { * {
all: unset; // Unsets everything so you can style everything from scratch all: unset; // Unsets everything so you can style everything from scratch
font-family: Agave Nerd Font Mono, sans-serif; font-family: Agave Nerd Font Mono, sans-serif;
font-size: 17pt; font-size: 14pt;
} }
tooltip { tooltip {
@ -9,7 +9,7 @@ tooltip {
border-width: 3px; border-width: 3px;
background: #1a1a1a; background: #1a1a1a;
color: #5018dd; color: #5018dd;
border-radius: 35px; border-radius: 25px;
} }

View File

@ -30,7 +30,7 @@
(metric :label "󰓃 " (metric :label "󰓃 "
:value volume :value volume
:onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%" :onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%"
:onclick "killall pavucontrol || hyprctl eval 'hl.dsp.exec_cmd(\"[tag +mixer] pavucontrol\")'") :onclick "killall pavucontrol || hyprctl dispatch exec \[tag +mixer\] pavucontrol")
) )
) )
@ -48,7 +48,7 @@
:orientation "h" :orientation "h"
:space-evenly false :space-evenly false
:halign "center" :halign "center"
:onclick "~/.config/scripts/workspacefocus/focusleft.sh" :onclick "~/.config/scripts/workspacefocus/focusright.sh"
{""} {""}
) )
@ -63,7 +63,7 @@
:orientation "h" :orientation "h"
:space-evenly false :space-evenly false
:halign "center" :halign "center"
:onclick "hyprctl dispatch 'hl.dsp.window.close()'" :onclick "hyprctl dispatch killactive"
{""} {""}
) )
(button :class "music" (button :class "music"
@ -116,14 +116,14 @@
(deflisten workspaces "hyprland-workspaces _") (deflisten workspaces "hyprland-workspaces _")
(defwidget workspaceWidget [monitor] (defwidget workspaceWidget [monitor]
(eventbox :onscroll "hyprctl eval \"hl.dsp.focus({workspace='$(echo {} | sed 's/up/r+/;s/down/r-/')1'})\"" (eventbox :onscroll "hyprctl dispatch workspace `echo {} | sed 's/up/+/\' | sed 's/down/-/'`1"
(box :class "workspaces" (box :class "workspaces"
:space-evenly false :space-evenly false
:width 20 :width 20
(for i in {workspaces[monitor].workspaces} (for i in {workspaces[monitor].workspaces}
(button (button
:width 20 :width 20
:onclick "hyprctl eval 'hl.dsp.focus({workspace=${i.id}})'" :onclick "hyprctl dispatch workspace ${i.id}"
:class "${i.class}" :class "${i.class}"
{i.name == "special:magic" ? "󱂬" : "󱂬${i.name}"}))))) {i.name == "special:magic" ? "󱂬" : "󱂬${i.name}"})))))