From 2074ff4ec50d2884dd96e036e35419d6bde0620c Mon Sep 17 00:00:00 2001 From: Fernando Araoz Date: Thu, 16 Jan 2025 20:32:21 -0500 Subject: [PATCH] feat: eww --- config/eww/eww.scss | 21 ++++++++++++++ config/eww/eww.yuck | 55 ++++++++++++++++++++++++++++++++++++ config/river/init | 5 ++++ deps.txt => requirements.txt | 4 +++ 4 files changed, 85 insertions(+) create mode 100644 config/eww/eww.scss create mode 100644 config/eww/eww.yuck rename deps.txt => requirements.txt (56%) diff --git a/config/eww/eww.scss b/config/eww/eww.scss new file mode 100644 index 0000000..637f00a --- /dev/null +++ b/config/eww/eww.scss @@ -0,0 +1,21 @@ +* { + all:unset; + font-family: "IosevkaTermSlab Nerd Font", "monospace"; + font-size: 15px; + font-weight: bold; +} + +.bar { + background-color: black; + color: #fafafa; +} + +.single-tag { + font-family: "Noto Sans CJK JP Black", "Iwata SeichouG W05 B", "monospace"; + background-color: #431407; + color: #fed7aa; + padding-left: 4px; + padding-right: 4px; + border-radius: 2px; +} + diff --git a/config/eww/eww.yuck b/config/eww/eww.yuck new file mode 100644 index 0000000..b1d7064 --- /dev/null +++ b/config/eww/eww.yuck @@ -0,0 +1,55 @@ +(defwindow bar + :monitor 0 + :exclusive true + :class "bar" + :windowtype "dock" + :geometry (geometry :x "0%" + :y "0%" + :width "100%" + :height "20px" + :anchor "top center") + (bar)) + +; +; variables +; + +(defvar tags "[1,2,3,4,5]") +(defvar tagSymbols `["一","二","三","四","五"]`) + + +(defwidget bar [] + (centerbox + :orientation "h" + (left) + "This is *the* bar" + ":D")) + +; +; +; LEFT +; +; +(defwidget left [] + (box + :class "left-side" + :orientation "h" + :space-evenly false + :halign "start" + :spacing 3 + (tags))) + +; +; Widget that just prints all tags :D +; +(defwidget tags [] + (box + :spacing 4 + (for idx in tags + (tag :id idx + :symbol `${tagSymbols[idx - 1]}`)))) + +(defwidget tag [id symbol] + (box :class "single-tag" + {symbol})) + diff --git a/config/river/init b/config/river/init index bfebc4b..7888afa 100755 --- a/config/river/init +++ b/config/river/init @@ -193,3 +193,8 @@ rivertile -view-padding 6 -outer-padding 6 & # BAR # waybar & + +# +# wallpaper: TODO +# + diff --git a/deps.txt b/requirements.txt similarity index 56% rename from deps.txt rename to requirements.txt index 91ddc7b..f57ad3f 100644 --- a/deps.txt +++ b/requirements.txt @@ -1,5 +1,9 @@ foot fuzzel river waybar tmux +# notifications +# https://wiki.archlinux.org/title/Desktop_notifications +libnotify mako + brightnessctl # Make sure you're in the video group: # sudo usermod -aG video $USER