chore: Migrate from waybar to eww
Very early state
This commit is contained in:
parent
6206bbffb9
commit
e0409a6619
2 changed files with 39 additions and 1 deletions
37
.config/eww/eww.yuck
Normal file
37
.config/eww/eww.yuck
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
;; Listeners
|
||||||
|
(deflisten active-workspace
|
||||||
|
`stdbuf -oL $HOME/.local/bin/scripts/eww-hyprland-active-workspace-listener`)
|
||||||
|
|
||||||
|
(deflisten workspace-list :initial '[1]'
|
||||||
|
`stdbuf -oL $HOME/.local/bin/scripts/eww-hyprland-workspace-list-listener`)
|
||||||
|
|
||||||
|
;; Windows
|
||||||
|
(defwindow bar
|
||||||
|
:monitor 0
|
||||||
|
:stacking "fg"
|
||||||
|
:exclusive true
|
||||||
|
:geometry (geometry :width "100%" :height "28px" :anchor "top center")
|
||||||
|
(bar))
|
||||||
|
|
||||||
|
(defwidget bar []
|
||||||
|
(centerbox
|
||||||
|
(start)
|
||||||
|
(middle)
|
||||||
|
(end)))
|
||||||
|
|
||||||
|
(defwidget start []
|
||||||
|
(workspaces))
|
||||||
|
|
||||||
|
(defwidget middle []
|
||||||
|
(literal :content "test"))
|
||||||
|
|
||||||
|
(defwidget end []
|
||||||
|
(literal :content "test"))
|
||||||
|
|
||||||
|
(defwidget workspaces []
|
||||||
|
(box :class "workspaces"
|
||||||
|
:space-evenly false
|
||||||
|
(for id in workspace-list
|
||||||
|
(button :class {active-workspace == id ? "active" : ""}
|
||||||
|
:onclick `hyprctl dispatch workspace ${id}`
|
||||||
|
id))))
|
|
@ -1,12 +1,13 @@
|
||||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
exec-once = xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources
|
exec-once = xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/Xresources
|
||||||
exec-once = waybar-loop
|
exec-once = eww daemon && eww open bar
|
||||||
exec-once = unclutter
|
exec-once = unclutter
|
||||||
exec-once = dunst
|
exec-once = dunst
|
||||||
exec-once = numlockx
|
exec-once = numlockx
|
||||||
exec-once = lxpolkit
|
exec-once = lxpolkit
|
||||||
exec-once = nitrogen --restore
|
exec-once = nitrogen --restore
|
||||||
exec-once = fcitx5 -d
|
exec-once = fcitx5 -d
|
||||||
|
exec-once = xsettingsd &
|
||||||
#exec-once = mpvpaper -vs -o "no-audio loop" VGA-1 /home/ziro/my\ Files/Wallpaper/HoloLive/Torii\ Gate/Torii\ Gate.webm &
|
#exec-once = mpvpaper -vs -o "no-audio loop" VGA-1 /home/ziro/my\ Files/Wallpaper/HoloLive/Torii\ Gate/Torii\ Gate.webm &
|
||||||
|
|
||||||
monitor=,preferred,auto,auto
|
monitor=,preferred,auto,auto
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue