readjusted the eww bar
parent
a54e0749ad
commit
e86c8eef5f
|
|
@ -23,14 +23,14 @@
|
||||||
(sidestuff)))
|
(sidestuff)))
|
||||||
|
|
||||||
(defwidget winsworks [monitor]
|
(defwidget winsworks [monitor]
|
||||||
(box :orientation "h" :space-evenly false :hexpand true
|
(box :orientation "h" :space-evenly false :halign "start"
|
||||||
(osk)
|
(osk)
|
||||||
(box :class "music" {"${battery}"})
|
(box :class "music" {"${battery}"})
|
||||||
(button :onclick "~/Dotfiles/desktopenvs/hyprland/scripts/drawer.sh" :class "music round" {""})
|
(button :onclick "~/Dotfiles/desktopenvs/hyprland/scripts/drawer.sh" :class "music" {""})
|
||||||
(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")
|
||||||
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
@ -44,29 +44,29 @@
|
||||||
|
|
||||||
(defwidget screenrotate []
|
(defwidget screenrotate []
|
||||||
(box :orientation "h" :space-evenly false :halign "center"
|
(box :orientation "h" :space-evenly false :halign "center"
|
||||||
(button :class "music round"
|
(button :class "music"
|
||||||
: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"
|
||||||
{""}
|
{""}
|
||||||
)
|
)
|
||||||
|
|
||||||
(button :class "music round"
|
(button :class "music"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "center"
|
:halign "center"
|
||||||
:onclick "~/.config/scripts/screenrotationacw.sh"
|
:onclick "~/.config/scripts/screenrotationacw.sh"
|
||||||
{""}
|
{""}
|
||||||
)
|
)
|
||||||
(button :class "music round"
|
(button :class "music"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "center"
|
:halign "center"
|
||||||
:onclick "hyprctl dispatch killactive"
|
:onclick "hyprctl dispatch killactive"
|
||||||
{""}
|
{""}
|
||||||
)
|
)
|
||||||
(button :class "music round"
|
(button :class "music"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "center"
|
:halign "center"
|
||||||
|
|
@ -74,12 +74,12 @@
|
||||||
{""}
|
{""}
|
||||||
)
|
)
|
||||||
|
|
||||||
(button :class "music round"
|
(button :class "music"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "center"
|
:halign "center"
|
||||||
:onclick "~/.config/scripts/workspacefocus/focusright.sh"
|
:onclick "~/.config/scripts/workspacefocus/focusright.sh"
|
||||||
{""}
|
{""}
|
||||||
)
|
)
|
||||||
|
|
||||||
))
|
))
|
||||||
|
|
@ -90,15 +90,15 @@
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "center"
|
:halign "center"
|
||||||
:onclick "~/Dotfiles/desktopenvs/hyprland/scripts/playpause.sh"
|
:onclick "~/Dotfiles/desktopenvs/hyprland/scripts/playpause.sh"
|
||||||
{music != "" ? " ${music}" : " None"}))
|
{music != "" ? " ${music}" : " None"}))
|
||||||
|
|
||||||
(defwidget osk []
|
(defwidget osk []
|
||||||
(button :class "music round"
|
(button :class "music"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:halign "center"
|
:halign "center"
|
||||||
:onclick "~/.config/scripts/onscreenkb.sh"
|
:onclick "~/.config/scripts/onscreenkb.sh"
|
||||||
{""}
|
{" "}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -106,28 +106,26 @@
|
||||||
(box :orientation "h"
|
(box :orientation "h"
|
||||||
:class "metric"
|
:class "metric"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:hexpand true
|
|
||||||
(button :class "label" :onclick onclick label)
|
(button :class "label" :onclick onclick label)
|
||||||
(scale :min 0
|
(scale :min 0
|
||||||
:max 101
|
:max 101
|
||||||
:active {onchange != ""}
|
:active {onchange != ""}
|
||||||
:value value
|
:value value
|
||||||
:onchange onchange
|
:onchange onchange)))
|
||||||
:hexpand true)))
|
|
||||||
|
|
||||||
(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}"})))))
|
||||||
|
|
||||||
|
|
||||||
(deflisten workspace-old "~/Dotfiles/desktopenvs/hyprland/scripts/workspace")
|
(deflisten workspace-old "~/Dotfiles/desktopenvs/hyprland/scripts/workspace")
|
||||||
|
|
@ -154,13 +152,10 @@
|
||||||
(defwidget clock []
|
(defwidget clock []
|
||||||
(box :class "clock"
|
(box :class "clock"
|
||||||
:tooltip {calender}
|
:tooltip {calender}
|
||||||
:space-evenly false
|
(label :text {"${time}"})
|
||||||
:orientation "h"
|
|
||||||
(label :text " ")
|
|
||||||
(label :text {time})
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
(defpoll calender :interval "600s"
|
(defpoll calender :interval "600s"
|
||||||
"~/Dotfiles/desktopenvs/hyprland/scripts/calender-fix.sh")
|
"~/Dotfiles/desktopenvs/hyprland/scripts/calender-fix.sh")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue