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