eww: updated for newer version of nf
This commit is contained in:
parent
460260fc55
commit
ef1339289b
2 changed files with 38 additions and 14 deletions
15
eww/eww.scss
15
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 {
|
||||
|
|
37
eww/eww.yuck
37
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)
|
||||
|
|
Loading…
Reference in a new issue