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"
|
"/home/val/.config/eww/scripts/lan.sh"
|
||||||
)
|
)
|
||||||
(defpoll SCREENSAVER
|
(defpoll SCREENSAVER
|
||||||
:interval "3s"
|
:interval "2s"
|
||||||
"/home/val/.config/eww/scripts/screensaver.sh"
|
"/home/val/.config/eww/scripts/screensaver.sh"
|
||||||
)
|
)
|
||||||
|
(defpoll NOTIFICATION
|
||||||
|
:interval "2s"
|
||||||
|
"/home/val/.config/eww/scripts/dunst.sh"
|
||||||
|
)
|
||||||
;;(defpoll PLAYING
|
;;(defpoll PLAYING
|
||||||
;; :interval "50ms"
|
;; :interval "50ms"
|
||||||
;; "playerctl status"
|
;; "playerctl status"
|
||||||
|
@ -109,7 +113,7 @@
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(defwidget redshift []
|
(defwidget notification []
|
||||||
(box
|
(box
|
||||||
:class "module"
|
:class "module"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
|
@ -117,6 +121,19 @@
|
||||||
:spacing "3"
|
:spacing "3"
|
||||||
(button
|
(button
|
||||||
:class "icon"
|
: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 &"
|
:onclick "exec ~/.script/sysmenu.py redshift &"
|
||||||
REDSHIFT
|
REDSHIFT
|
||||||
)
|
)
|
||||||
|
@ -170,6 +187,7 @@
|
||||||
:class "right_modules"
|
:class "right_modules"
|
||||||
(keyboard)
|
(keyboard)
|
||||||
(screensaver)
|
(screensaver)
|
||||||
|
(notification)
|
||||||
(redshift)
|
(redshift)
|
||||||
(wifi)
|
(wifi)
|
||||||
(sidebar_toggle)
|
(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