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>main
parent
c8a476d2af
commit
9d7c7a5932
|
|
@ -1,7 +1,7 @@
|
|||
* {
|
||||
all: unset; // Unsets everything so you can style everything from scratch
|
||||
font-family: Agave Nerd Font Mono, sans-serif;
|
||||
font-size: 17pt;
|
||||
font-size: 14pt;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
|
|
@ -9,7 +9,7 @@ tooltip {
|
|||
border-width: 3px;
|
||||
background: #1a1a1a;
|
||||
color: #5018dd;
|
||||
border-radius: 35px;
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,84 +6,48 @@
|
|||
:geometry (geometry :x "0%"
|
||||
:y "1%"
|
||||
:width "99%"
|
||||
:height "5%"
|
||||
:height "20px"
|
||||
:anchor "top center")
|
||||
:exclusive true
|
||||
(bar :monitor_ monitor))
|
||||
|
||||
(defpoll battery :interval "2s"
|
||||
"~/.config/scripts/batteryperc")
|
||||
"~/Dotfiles/desktopenvs/hyprland/scripts/batteryperc")
|
||||
|
||||
|
||||
|
||||
(defwidget bar [monitor_]
|
||||
(centerbox :orientation "h"
|
||||
(winsworks :monitor monitor_)
|
||||
(screenrotate )
|
||||
(music)
|
||||
(sidestuff)))
|
||||
|
||||
(defwidget winsworks [monitor]
|
||||
(box :orientation "h" :space-evenly false :halign "start"
|
||||
(osk)
|
||||
(box :class "music" {"${battery}"})
|
||||
(button :onclick "~/Dotfiles/desktopenvs/hyprland/scripts/drawer.sh" :class "music" {""})
|
||||
(metric :label " "
|
||||
:value volume
|
||||
:onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%"
|
||||
:onclick "killall pavucontrol || hyprctl eval 'hl.dsp.exec_cmd(\"[tag +mixer] pavucontrol\")'")
|
||||
|
||||
(workspaceWidget :monitor monitor)
|
||||
(button :onclick "~/Dotfiles/desktopenvs/hyprland/scripts/drawer.sh" :class "music" {" ${activewindow}"})
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget sidestuff []
|
||||
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "end"
|
||||
(box :class "music" {" ${IP}"})
|
||||
(metric :label ""
|
||||
:value volume
|
||||
:onchange "pactl set-sink-volume @DEFAULT_SINK@ {}%"
|
||||
:onclick "killall pavucontrol || hyprctl dispatch exec \[tag +mixer\] pavucontrol")
|
||||
(box
|
||||
:tooltip {disks}
|
||||
(metric :label ""
|
||||
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
|
||||
:onchange ""
|
||||
:onclick ""))
|
||||
|
||||
(clock)
|
||||
(systray :class "music" :orientation "h" :spacing 2 :space-evenly true)
|
||||
))
|
||||
|
||||
|
||||
(defwidget screenrotate []
|
||||
(box :orientation "h" :space-evenly false :halign "center"
|
||||
(button :class "music"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:onclick "~/.config/scripts/workspacefocus/focusleft.sh"
|
||||
{""}
|
||||
)
|
||||
|
||||
(button :class "music"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:onclick "~/.config/scripts/screenrotationacw.sh"
|
||||
{""}
|
||||
)
|
||||
(button :class "music"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:onclick "hyprctl dispatch 'hl.dsp.window.close()'"
|
||||
{""}
|
||||
)
|
||||
(button :class "music"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:onclick "~/.config/scripts/screenrotationwcw.sh"
|
||||
{""}
|
||||
)
|
||||
|
||||
(button :class "music"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:onclick "~/.config/scripts/workspacefocus/focusright.sh"
|
||||
{""}
|
||||
)
|
||||
|
||||
))
|
||||
|
||||
(defwidget music []
|
||||
(button :class "music"
|
||||
:orientation "h"
|
||||
|
|
@ -92,15 +56,6 @@
|
|||
:onclick "~/Dotfiles/desktopenvs/hyprland/scripts/playpause.sh"
|
||||
{music != "" ? " ${music}" : " None"}))
|
||||
|
||||
(defwidget osk []
|
||||
(button :class "music"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "center"
|
||||
:onclick "~/.config/scripts/onscreenkb.sh"
|
||||
{" "}
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget metric [label value onchange onclick]
|
||||
(box :orientation "h"
|
||||
|
|
@ -116,14 +71,14 @@
|
|||
(deflisten workspaces "hyprland-workspaces _")
|
||||
|
||||
(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"
|
||||
:space-evenly false
|
||||
:width 20
|
||||
(for i in {workspaces[monitor].workspaces}
|
||||
(button
|
||||
:width 20
|
||||
:onclick "hyprctl eval 'hl.dsp.focus({workspace=${i.id}})'"
|
||||
:onclick "hyprctl dispatch workspace ${i.id}"
|
||||
:class "${i.class}"
|
||||
{i.name == "special:magic" ? "" : "${i.name}"})))))
|
||||
|
||||
|
|
@ -156,6 +111,9 @@
|
|||
)
|
||||
)
|
||||
|
||||
|
||||
(defpoll calender :interval "600s"
|
||||
"~/Dotfiles/desktopenvs/hyprland/scripts/calender-fix.sh")
|
||||
|
||||
(defpoll disks :interval "600s"
|
||||
"~/Dotfiles/desktopenvs/hyprland/scripts/dysk-phydisks.sh")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue