full touch options now out

main
Your Name 2025-05-19 09:22:17 +02:00
parent c16692e039
commit b6928f1b01
3 changed files with 187 additions and 0 deletions

View File

@ -0,0 +1 @@
/home/themiro/Dotfiles/desktopenvs/hyprland/eww/

View File

@ -0,0 +1,70 @@
* {
all: unset; // Unsets everything so you can style everything from scratch
font-family: Agave Nerd Font Mono, sans-serif;
font-size: 14pt;
}
// Global Styles
.bar {
color: #b0b4bc;
padding: 10px;
}
// Styles on classes (see eww.yuck for more information)
.sidestuff slider {
all: unset;
color: #ffd5cd;
}
.metric scale trough highlight {
all: unset;
background: #E40046;
color: #000000;
border-radius: 10px;
}
.metric scale trough {
all: unset;
background-color: #5018dd;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 10px;
margin-right: 20px;
}
.label-ram {
font-size: large;
}
.music,.metric,.clock,.workspace-button {
border: solid;
border-width: 3px;
background: #1a1a1a;
color: #5018dd;
padding-top:5px;
margin-top:1px;
padding-bottom:5px;
margin-bottom:1px;
padding-left:5px;
margin-left:4px;
padding-right:5px;
margin-right:4px;
border-radius: 25px;
}
.workspace-active {
color: #E40046;
}

View File

@ -0,0 +1,116 @@
(defwindow bar [monitor]
:monitor monitor
:class "ewwbar"
:windowtype "dock"
:geometry (geometry :x "0%"
:y "1%"
:width "99%"
:height "20px"
:anchor "top center")
:exclusive true
(bar :monitor_ monitor))
(defpoll battery :interval "2s"
"~/Dotfiles/desktopenvs/hyprland/scripts/batteryperc")
(defwidget bar [monitor_]
(centerbox :orientation "h"
(winsworks :monitor monitor_)
(music)
(sidestuff)))
(defwidget winsworks [monitor]
(box :orientation "h" :space-evenly false :halign "start"
(osk)
(box :class "music" {"${battery}"})
(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@ {}%")
(metric :label ""
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
:onchange "")
(clock)
(systray :class "music" :orientation "h" :spacing 2 :space-evenly true)
))
(defwidget music []
(button :class "music"
:orientation "h"
:space-evenly false
:halign "center"
:onclick "~/Dotfiles/desktopenvs/hyprland/scripts/playpause.sh"
{music != "" ? " ${music}" : " None"}))
(defwidget osk []
(button :class "music"
:orientation "h"
:space-evenly false
:halign "center"
:onclick "~/Dotfiles/desktopenvs/hyprland/scripts/onscreenkb.sh"
{"󰌌"}
)
)
(defwidget metric [label value onchange]
(box :orientation "h"
:class "metric"
:space-evenly false
(box :class "label" label)
(scale :min 0
:max 101
:active {onchange != ""}
:value value
:onchange onchange)))
(deflisten workspaces "hyprland-workspaces _")
(defwidget workspaceWidget [monitor]
(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 dispatch workspace ${i.id}"
:class "${i.class}"
{i.name == "special:magic" ? "󱂬" : "󱂬${i.name}"})))))
(deflisten workspace-old "~/Dotfiles/desktopenvs/hyprland/scripts/workspace")
(defwidget workspaces-old []
(literal :content workspace-old))
(defpoll music :interval "0.5s"
"~/Dotfiles/desktopenvs/hyprland/scripts/playerget")
(defpoll activewindow :interval "0.5s"
"~/Dotfiles/desktopenvs/hyprland/scripts/activewindow")
(defpoll IP :interval "5s"
"~/Dotfiles/desktopenvs/hyprland/scripts/ip")
(defpoll volume :interval "0.5s"
"~/Dotfiles/desktopenvs/hyprland/scripts/getvol")
(defpoll time :interval "1s"
"date '+%H:%M:%S|%d.%m.%Y'")
(defwidget clock []
(box :class "clock"
(label :text {"${time}"})
)
)