added dunst state and cleaned up some other widgets
This commit is contained in:
parent
539c901944
commit
295a83b227
2 changed files with 28 additions and 2 deletions
22
eww/eww.yuck
22
eww/eww.yuck
|
@ -29,9 +29,13 @@
|
|||
"/home/val/.config/eww/scripts/lan.sh"
|
||||
)
|
||||
(defpoll SCREENSAVER
|
||||
:interval "3s"
|
||||
:interval "2s"
|
||||
"/home/val/.config/eww/scripts/screensaver.sh"
|
||||
)
|
||||
(defpoll NOTIFICATION
|
||||
:interval "2s"
|
||||
"/home/val/.config/eww/scripts/dunst.sh"
|
||||
)
|
||||
;;(defpoll PLAYING
|
||||
;; :interval "50ms"
|
||||
;; "playerctl status"
|
||||
|
@ -109,7 +113,7 @@
|
|||
)
|
||||
)
|
||||
)
|
||||
(defwidget redshift []
|
||||
(defwidget notification []
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly false
|
||||
|
@ -117,6 +121,19 @@
|
|||
:spacing "3"
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "dunstctl set-paused toggle"
|
||||
NOTIFICATION
|
||||
)
|
||||
)
|
||||
)
|
||||
(defwidget redshift []
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(button
|
||||
:class "icon lg"
|
||||
:onclick "exec ~/.script/sysmenu.py redshift &"
|
||||
REDSHIFT
|
||||
)
|
||||
|
@ -170,6 +187,7 @@
|
|||
:class "right_modules"
|
||||
(keyboard)
|
||||
(screensaver)
|
||||
(notification)
|
||||
(redshift)
|
||||
(wifi)
|
||||
(sidebar_toggle)
|
||||
|
|
8
eww/scripts/dunst.sh
Executable file
8
eww/scripts/dunst.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
if [[ "`dunstctl is-paused`" == "true" ]]; then
|
||||
echo ''
|
||||
else
|
||||
echo ''
|
||||
fi
|
||||
|
Loading…
Reference in a new issue