Shorten status bar date

This commit is contained in:
Kiana Sheibani 2024-07-05 01:44:06 -04:00
parent da26a63998
commit 2933c110b6

View file

@ -59,7 +59,7 @@
:halign "end" :halign "end"
:hexpand true :hexpand true
:yalign 0.5 :yalign 0.5
:text {formattime(EWW_TIME, "%A, %Y-%m-%d")}))) :text {formattime(EWW_TIME, "%a, %Y-%m-%d")})))
;; Playerctl ;; Playerctl
@ -182,14 +182,16 @@
(defwidget bar_battery [] (defwidget bar_battery []
(bar_circular :class "bar-battery" (bar_circular :class "bar-battery"
:critical {EWW_BATTERY["BAT1"].capacity <= 15} :critical {EWW_BATTERY["BAT1"].capacity <= 15
:tooltip "Battery: ${EWW_BATTERY["BAT1"].capacity}%" && EWW_BATTERY["BAT1"].status != "Charging"}
:tooltip "Battery: ${EWW_BATTERY["BAT1"].capacity}%${
EWW_BATTERY["BAT1"].status == "Charging" ? " (Charging)" : ""}"
:value {EWW_BATTERY["BAT1"].capacity} :value {EWW_BATTERY["BAT1"].capacity}
:symbol {EWW_BATTERY["BAT1"].status == "Charging" ? "󰂄" : "󰁹"})) :symbol {EWW_BATTERY["BAT1"].status == "Charging" ? "󰂄" : "󰁹"}))
(defwidget bar_ram [] (defwidget bar_ram []
(bar_circular :class "bar-ram" (bar_circular :class "bar-ram"
:critical {EWW_RAM.used_mem_perc >= 95} :critical {EWW_RAM.used_mem_perc >= 80}
:tooltip "RAM: ${round(EWW_RAM.used_mem / 1073741824, 2) :tooltip "RAM: ${round(EWW_RAM.used_mem / 1073741824, 2)
} / ${round(EWW_RAM.total_mem / 1073741824, 2)} GB (${round(EWW_RAM.used_mem_perc, 2)}%)" } / ${round(EWW_RAM.total_mem / 1073741824, 2)} GB (${round(EWW_RAM.used_mem_perc, 2)}%)"
:value {EWW_RAM.used_mem_perc} :value {EWW_RAM.used_mem_perc}
@ -197,6 +199,7 @@
(defwidget bar_storage [] (defwidget bar_storage []
(bar_circular :class "bar-storage" (bar_circular :class "bar-storage"
:critical {EWW_DISK["/"].used_perc >= 95}
:tooltip "Storage: ${round(EWW_DISK["/"].used / 1073741824, 2) :tooltip "Storage: ${round(EWW_DISK["/"].used / 1073741824, 2)
} / ${round(EWW_DISK["/"].total / 1073741824, 0)} GB (${round(EWW_DISK["/"].used_perc, 2)}%)" } / ${round(EWW_DISK["/"].total / 1073741824, 0)} GB (${round(EWW_DISK["/"].used_perc, 2)}%)"
:value {EWW_DISK["/"].used_perc} :value {EWW_DISK["/"].used_perc}
@ -252,14 +255,14 @@
:halign "start" :halign "start"
:hexpand true :hexpand true
(bar_window :class-limit 60 (bar_window :class-limit 60
:title-limit 55))) :title-limit 50)))
(defwidget laptop_bar_left_wing [] (defwidget laptop_bar_left_wing []
(box :orientation "h" (box :orientation "h"
:space-evenly false :space-evenly false
:halign "end" :halign "end"
:hexpand true :hexpand true
(bar_time :width 195))) (bar_time :width 175)))
(defwidget laptop_bar_center [] (defwidget laptop_bar_center []
(bar_workspaces)) (bar_workspaces))
@ -268,7 +271,7 @@
(box :orientation "h" (box :orientation "h"
:space-evenly false :space-evenly false
:hexpand true :hexpand true
(bar_music :width 195 (bar_music :width 175
:artist-limit 30 :artist-limit 30
:title-limit 25))) :title-limit 25)))
@ -317,7 +320,7 @@
:space-evenly false :space-evenly false
:halign "end" :halign "end"
:hexpand true :hexpand true
(bar_time :width 195))) (bar_time :width 175)))
(defwidget desktop_bar_center [] (defwidget desktop_bar_center []
(bar_workspaces)) (bar_workspaces))
@ -326,7 +329,7 @@
(box :orientation "h" (box :orientation "h"
:space-evenly false :space-evenly false
:hexpand true :hexpand true
(bar_music :width 195 (bar_music :width 175
:artist-limit 30 :artist-limit 30
:title-limit 25))) :title-limit 25)))