Compare commits

..

2 commits

Author SHA1 Message Date
20e0792b92
add shell aliases 2024-03-27 07:06:01 +01:00
9f71386f7f
align yuck 2024-03-27 07:04:40 +01:00
3 changed files with 23 additions and 19 deletions

View file

@ -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

View file

@ -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

View file

@ -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 () {