From ef1339289b8a316485236b339725740fd6755df3 Mon Sep 17 00:00:00 2001 From: Valerie Date: Fri, 5 May 2023 19:39:08 -0400 Subject: [PATCH] eww: updated for newer version of nf --- eww/eww.scss | 15 +++++++++++---- eww/eww.yuck | 37 +++++++++++++++++++++++++++---------- 2 files changed, 38 insertions(+), 14 deletions(-) diff --git a/eww/eww.scss b/eww/eww.scss index 3846045..09eb8e9 100644 --- a/eww/eww.scss +++ b/eww/eww.scss @@ -41,18 +41,25 @@ .icon { font-family: "FiraCode Nerd Font", monospace; font-weight: normal; - font-size: 24px; + font-size: 16px; + margin: 0 2px; } .big { - font-size: 28px; + font-size: 20px; +} +.xl { + font-size: 24px; } .small { - font-size: 20px; + font-size: 12px; +} +.md { + font-size: 14px; } .icon-sm, .icon-sm label { font-family: "FiraCode Nerd Font", monospace; font-weight: normal; - font-size: 16px; + font-size: 12px; } .bg { diff --git a/eww/eww.yuck b/eww/eww.yuck index d675a20..916491e 100644 --- a/eww/eww.yuck +++ b/eww/eww.yuck @@ -12,8 +12,7 @@ (defvar sidebar_rev false) (defvar WM_MODE "default") -(defpoll - DATETIME +(defpoll DATETIME :interval "2s" "date +\"%a %b %d %I:%M %p\"" ) @@ -29,10 +28,14 @@ :interval "2s" "/home/val/.config/eww/scripts/lan.sh" ) -(defpoll PLAYING - :interval "50ms" - "playerctl status" +(defpoll SCREENSAVER + :interval "3s" + "/home/val/.config/eww/scripts/screensaver.sh" ) +;;(defpoll PLAYING +;; :interval "50ms" +;; "playerctl status" +;;) (deflisten i3-workspace "/home/val/.config/eww/bin/i3-ws") @@ -43,7 +46,7 @@ :space-evenly false :halign "start" (button - :class "icon" + :class "icon md" :onclick "exec ~/.script/sysmenu.py system &" "" ) @@ -83,16 +86,29 @@ :orientation "h" :spacing "3" (revealer - :reveal {KEYBOARD != ""} + :reveal {KEYBOARD != "󰌌"} :transition "slideleft" :duration "350ms" (button - :class "icon" + :class "icon big" KEYBOARD ) ) ) ) +(defwidget screensaver [] + (box + :class "module" + :space-evenly false + :orientation "h" + :spacing "3" + (button + :class "icon" + :onclick "~/.config/eww/scripts/toggle_screensaver.sh" + SCREENSAVER + ) + ) +) (defwidget redshift [] (box :class "module" @@ -126,9 +142,9 @@ :orientation "h" :spacing "3" (button - :class "icon-sm" + :class "icon" :onclick "/home/val/.config/eww/scripts/toggle_sidebar.sh" - {sidebar_rev ? "" : "﬿"} + {sidebar_rev ? "󰅗" : "󰙀"} ) ) ) @@ -153,6 +169,7 @@ :halign "end" :class "right_modules" (keyboard) + (screensaver) (redshift) (wifi) (sidebar_toggle)