eww: Tweaks
This commit is contained in:
@ -14,7 +14,7 @@
|
|||||||
(defwindow bar1
|
(defwindow bar1
|
||||||
:monitor 1
|
:monitor 1
|
||||||
:geometry (geometry :height "100%"
|
:geometry (geometry :height "100%"
|
||||||
:width "50px"
|
:width "40px"
|
||||||
:anchor "center left")
|
:anchor "center left")
|
||||||
:stacking "fg"
|
:stacking "fg"
|
||||||
:exclusive true
|
:exclusive true
|
||||||
@ -41,6 +41,7 @@
|
|||||||
(temperature)
|
(temperature)
|
||||||
(battery)
|
(battery)
|
||||||
(box :class "thingy" (systray :orientation "v"))
|
(box :class "thingy" (systray :orientation "v"))
|
||||||
|
(kb_layout)
|
||||||
(date)
|
(date)
|
||||||
(clock)
|
(clock)
|
||||||
(pwr)
|
(pwr)
|
||||||
@ -94,7 +95,7 @@
|
|||||||
(button :class "clickable" :onclick "ba bluetoothctl disconnect" (label :text "---"))
|
(button :class "clickable" :onclick "ba bluetoothctl disconnect" (label :text "---"))
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(label :text "BLT")
|
(label :text "BLU")
|
||||||
(revealer :transition "slideup"
|
(revealer :transition "slideup"
|
||||||
:reveal {!show_bluetooth}
|
:reveal {!show_bluetooth}
|
||||||
(label :text "---")
|
(label :text "---")
|
||||||
@ -120,7 +121,7 @@
|
|||||||
(label :text "VOL")
|
(label :text "VOL")
|
||||||
(revealer :transition "slideup"
|
(revealer :transition "slideup"
|
||||||
:reveal {!show_volume}
|
:reveal {!show_volume}
|
||||||
(label :text volume_out)
|
(label :text {is_muted ? "MM" : volume_out})
|
||||||
)
|
)
|
||||||
)))
|
)))
|
||||||
|
|
||||||
@ -129,7 +130,7 @@
|
|||||||
:valign "end"
|
:valign "end"
|
||||||
:class "battery thingy"
|
:class "battery thingy"
|
||||||
:visible {current_temp != ""}
|
:visible {current_temp != ""}
|
||||||
(label :text "TMP")
|
(label :text "TEM")
|
||||||
(label :text "${current_temp / 1000}°")
|
(label :text "${current_temp / 1000}°")
|
||||||
))
|
))
|
||||||
|
|
||||||
@ -151,6 +152,13 @@
|
|||||||
;(label :text "${bat_charge}%")
|
;(label :text "${bat_charge}%")
|
||||||
))
|
))
|
||||||
|
|
||||||
|
(defwidget kb_layout []
|
||||||
|
(button :onclick "niri msg action switch-layout next"
|
||||||
|
:hexpand true
|
||||||
|
:class "thingy clickable"
|
||||||
|
(label :text "KBL")
|
||||||
|
))
|
||||||
|
|
||||||
(defwidget date []
|
(defwidget date []
|
||||||
(tooltip :halign "fill"
|
(tooltip :halign "fill"
|
||||||
(calendar :class "calendar")
|
(calendar :class "calendar")
|
||||||
@ -197,8 +205,9 @@
|
|||||||
(defvar show_volume false)
|
(defvar show_volume false)
|
||||||
(defvar show_bluetooth false)
|
(defvar show_bluetooth false)
|
||||||
|
|
||||||
(defpoll workspaces :interval "1s" "eww-workspaces")
|
(defpoll workspaces :interval "1s" "wmutils workspaces")
|
||||||
(defpoll volume_out :interval "1s" "pamixer --get-volume")
|
(defpoll volume_out :interval "1s" "pamixer --get-volume")
|
||||||
|
(defpoll is_muted :interval "1s" "pamixer --get-mute")
|
||||||
(defpoll vpn_status :interval "1s" "mullvad-status")
|
(defpoll vpn_status :interval "1s" "mullvad-status")
|
||||||
(defpoll current_minute :interval "1s" "date +%M")
|
(defpoll current_minute :interval "1s" "date +%M")
|
||||||
(defpoll current_hour :interval "1s" "date +%H")
|
(defpoll current_hour :interval "1s" "date +%H")
|
||||||
|
|||||||
Reference in New Issue
Block a user