51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
|
|
; Импорт скриптов
|
||
|
|
(defpoll TITLE :interval "0.1s" "/home/fox/.config/eww/title.sh")
|
||
|
|
(defpoll NUMBER :interval "0.1s" "/home/fox/.config/eww/number.sh")
|
||
|
|
(defpoll DATE :interval "40s" "date +'%H:%M %a, %b'") ;a, b
|
||
|
|
(defpoll VOLUME :interval "0.1s" "/home/fox/.config/eww/volume.sh")
|
||
|
|
(defpoll LANGUAGE :interval "0.1s" "/home/fox/.config/eww/language.sh")
|
||
|
|
(defpoll MUSIC :interval "0.1s" "/home/fox/.config/eww/music.sh")
|
||
|
|
|
||
|
|
; Основной модуль
|
||
|
|
(defwindow bar
|
||
|
|
:monitor 0
|
||
|
|
:geometry (geometry :x "0"
|
||
|
|
:y "15"
|
||
|
|
:width "680"
|
||
|
|
:height "45"
|
||
|
|
:anchor "bottom center")
|
||
|
|
:stacking "fg"
|
||
|
|
:exclusive true
|
||
|
|
:windowtype "dock"
|
||
|
|
:wm-ignore false
|
||
|
|
(box :class "bar1" (left) (center) (right)))
|
||
|
|
|
||
|
|
; Левый модуль
|
||
|
|
(defwidget left []
|
||
|
|
(box :orientation "h"
|
||
|
|
:valign "center"
|
||
|
|
:space-evenly "false"
|
||
|
|
(box :halign "center" :orientation "v" (label :class "ws-number-class" :text NUMBER))
|
||
|
|
(box :halign "start" :orientation "v" (label :class "ws-title-class" :text TITLE))))
|
||
|
|
|
||
|
|
; Центральный модуль
|
||
|
|
(defwidget center []
|
||
|
|
(box :orientation "h"
|
||
|
|
:halign "center"
|
||
|
|
:space-evenly "false"
|
||
|
|
(box (label :class "date-class" :text DATE))))
|
||
|
|
|
||
|
|
; Правый модуль
|
||
|
|
(defwidget right []
|
||
|
|
(eventbox :onclick "exec kitty"
|
||
|
|
(box :orientation "h"
|
||
|
|
:halign "end"
|
||
|
|
:valign "center"
|
||
|
|
:space-evenly "false"
|
||
|
|
:class "right"
|
||
|
|
(box (systray :spacing 5 :icon-size 15 :class "systray-class"))
|
||
|
|
(box (label :class "language-class" :text LANGUAGE))
|
||
|
|
(box (label :class "volume-class" :text VOLUME)))))
|
||
|
|
|
||
|
|
|