Compare commits
2 commits
e79e9fca82
...
20e0792b92
Author | SHA1 | Date | |
---|---|---|---|
20e0792b92 | |||
9f71386f7f |
3 changed files with 23 additions and 19 deletions
|
@ -5,19 +5,21 @@
|
||||||
(include "./widgets/resources/eww.yuck")
|
(include "./widgets/resources/eww.yuck")
|
||||||
|
|
||||||
(defwindow top-bar
|
(defwindow top-bar
|
||||||
:monitor 0
|
:monitor 0
|
||||||
:geometry (geometry :x "0%"
|
:geometry (geometry :x "0%"
|
||||||
:y "10px"
|
:y "10px"
|
||||||
:width "98.8%"
|
:width "98.8%"
|
||||||
:height "30px"
|
:height "30px"
|
||||||
:anchor "top center")
|
:anchor "top center")
|
||||||
:stacking "fg"
|
:stacking "fg"
|
||||||
:exclusive true
|
:exclusive true
|
||||||
(centerbox
|
(centerbox
|
||||||
:class "bar"
|
:class "bar"
|
||||||
(left)
|
(left)
|
||||||
(center)
|
(center)
|
||||||
(right)))
|
(right)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
(defwidget left []
|
(defwidget left []
|
||||||
(box
|
(box
|
||||||
|
|
|
@ -4,22 +4,22 @@
|
||||||
|
|
||||||
(defvar GB 1024000000)
|
(defvar GB 1024000000)
|
||||||
(defvar MB 1024000)
|
(defvar MB 1024000)
|
||||||
|
|
||||||
; DATE + TIME
|
; DATE + TIME
|
||||||
|
|
||||||
(defpoll time :interval "5s"
|
(defpoll time :interval "5s"
|
||||||
:initial ""
|
:initial ""
|
||||||
`date +%H:%M`)
|
`date +%H:%M`)
|
||||||
(defpoll date :interval "60s"
|
(defpoll date :interval "60s"
|
||||||
:initial ""
|
:initial ""
|
||||||
`date "+%A | %m-%d-%+4Y"`)
|
`date "+%A | %m-%d-%+4Y"`)
|
||||||
|
|
||||||
(defwidget datetime []
|
(defwidget datetime []
|
||||||
(eventbox
|
(eventbox
|
||||||
:tooltip date
|
:tooltip date
|
||||||
(label
|
(label
|
||||||
:class "text time"
|
:class "text time"
|
||||||
:text time)
|
:text time)
|
||||||
))
|
))
|
||||||
|
|
||||||
; CPU
|
; CPU
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
:tooltip hostname
|
:tooltip hostname
|
||||||
(label
|
(label
|
||||||
:text status-icon
|
:text status-icon
|
||||||
:class "network_icon")))
|
:class "network_icon")))
|
||||||
|
|
||||||
; BLUETOOTH
|
; BLUETOOTH
|
||||||
(defwidget bluetooth []
|
(defwidget bluetooth []
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
:onclick "blueman-manager &"
|
:onclick "blueman-manager &"
|
||||||
(label
|
(label
|
||||||
:text ""
|
:text ""
|
||||||
:class "bluetooth_icon")))
|
:class "bluetooth_icon")))
|
||||||
|
|
||||||
; VOLUME
|
; VOLUME
|
||||||
|
|
||||||
|
@ -87,6 +87,6 @@
|
||||||
:spacing "3"
|
:spacing "3"
|
||||||
(label
|
(label
|
||||||
:class "volume_text"
|
:class "volume_text"
|
||||||
:text "${volume_percent <= 33 ? "" : volume_percent <= 66 ? "" : ""} ${volume_percent}%")
|
:text "${volume_percent <= 33 ? "" : volume_percent <= 66 ? "" : ""} ${volume_percent}%")
|
||||||
)))
|
)))
|
||||||
; TODO add mic widget
|
; TODO add mic widget
|
|
@ -100,6 +100,8 @@
|
||||||
ll = "eza -l";
|
ll = "eza -l";
|
||||||
l = "eza -lah";
|
l = "eza -lah";
|
||||||
code = "codium";
|
code = "codium";
|
||||||
|
alg = "code ~/Git/algprog/tex";
|
||||||
|
nixos = "code ~/Git/nixos";
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
function rebuild () {
|
function rebuild () {
|
||||||
|
|
Loading…
Reference in a new issue