eww: updated for newer version of nf

This commit is contained in:
Valerie Wolfe 2023-05-05 19:39:08 -04:00
parent 460260fc55
commit ef1339289b
2 changed files with 38 additions and 14 deletions

View file

@ -41,18 +41,25 @@
.icon { .icon {
font-family: "FiraCode Nerd Font", monospace; font-family: "FiraCode Nerd Font", monospace;
font-weight: normal; font-weight: normal;
font-size: 24px; font-size: 16px;
margin: 0 2px;
} }
.big { .big {
font-size: 28px; font-size: 20px;
}
.xl {
font-size: 24px;
} }
.small { .small {
font-size: 20px; font-size: 12px;
}
.md {
font-size: 14px;
} }
.icon-sm, .icon-sm label { .icon-sm, .icon-sm label {
font-family: "FiraCode Nerd Font", monospace; font-family: "FiraCode Nerd Font", monospace;
font-weight: normal; font-weight: normal;
font-size: 16px; font-size: 12px;
} }
.bg { .bg {

View file

@ -12,8 +12,7 @@
(defvar sidebar_rev false) (defvar sidebar_rev false)
(defvar WM_MODE "default") (defvar WM_MODE "default")
(defpoll (defpoll DATETIME
DATETIME
:interval "2s" :interval "2s"
"date +\"%a %b %d %I:%M %p\"" "date +\"%a %b %d %I:%M %p\""
) )
@ -29,10 +28,14 @@
:interval "2s" :interval "2s"
"/home/val/.config/eww/scripts/lan.sh" "/home/val/.config/eww/scripts/lan.sh"
) )
(defpoll PLAYING (defpoll SCREENSAVER
:interval "50ms" :interval "3s"
"playerctl status" "/home/val/.config/eww/scripts/screensaver.sh"
) )
;;(defpoll PLAYING
;; :interval "50ms"
;; "playerctl status"
;;)
(deflisten i3-workspace "/home/val/.config/eww/bin/i3-ws") (deflisten i3-workspace "/home/val/.config/eww/bin/i3-ws")
@ -43,7 +46,7 @@
:space-evenly false :space-evenly false
:halign "start" :halign "start"
(button (button
:class "icon" :class "icon md"
:onclick "exec ~/.script/sysmenu.py system &" :onclick "exec ~/.script/sysmenu.py system &"
"" ""
) )
@ -83,16 +86,29 @@
:orientation "h" :orientation "h"
:spacing "3" :spacing "3"
(revealer (revealer
:reveal {KEYBOARD != ""} :reveal {KEYBOARD != "󰌌"}
:transition "slideleft" :transition "slideleft"
:duration "350ms" :duration "350ms"
(button (button
:class "icon" :class "icon big"
KEYBOARD 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 [] (defwidget redshift []
(box (box
:class "module" :class "module"
@ -126,9 +142,9 @@
:orientation "h" :orientation "h"
:spacing "3" :spacing "3"
(button (button
:class "icon-sm" :class "icon"
:onclick "/home/val/.config/eww/scripts/toggle_sidebar.sh" :onclick "/home/val/.config/eww/scripts/toggle_sidebar.sh"
{sidebar_rev ? "" : "﬿"} {sidebar_rev ? "󰅗" : "󰙀"}
) )
) )
) )
@ -153,6 +169,7 @@
:halign "end" :halign "end"
:class "right_modules" :class "right_modules"
(keyboard) (keyboard)
(screensaver)
(redshift) (redshift)
(wifi) (wifi)
(sidebar_toggle) (sidebar_toggle)