diff --git a/.config/eww/eww.yuck b/.config/eww/eww.yuck new file mode 100644 index 0000000..10a53e6 --- /dev/null +++ b/.config/eww/eww.yuck @@ -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)))) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 712d320..2e04dd8 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -1,12 +1,13 @@ exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP 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 = dunst exec-once = numlockx exec-once = lxpolkit exec-once = nitrogen --restore 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 & monitor=,preferred,auto,auto