add lockscreen

This commit is contained in:
2025-05-06 22:54:36 +02:00
parent 11358663fc
commit 23010ee036
13 changed files with 129 additions and 21 deletions

View File

@@ -254,6 +254,13 @@
:class "text separator"
:text "|"))
(defwidget idle_inhibitor []
(box :class "idle_inhibitor"
:space-evenly false
(button :class "icon"
:onclick "systemctl --user is-active idle-inhibitor.service && systemctl --user stop idle-inhibitor.service || systemctl --user start idle-inhibitor.service"
(label :text "${idle_inhibitor == 'start' ? '󰈈' : '󰛐' }"))))
;; /-- Bar -->
(defwindow bar []
:geometry (geometry
@@ -266,6 +273,8 @@
:reserve (struts
:distance "25px"
:side "top")
:exclusive true
:layer "top"
:windowtype "dock"
(box
:orientation "horizontal"
@@ -277,6 +286,7 @@
(widgetLogSeperator)
(widgetWindows)
(box :hexpand true)
(idle_inhibitor)
(widgetSpeaker)
(widgetSeperator)
(widgetBacklight)

View File

@@ -0,0 +1,6 @@
socat - UNIX-CONNECT:"$XDG_RUNTIME_DIR"/river/status | while read -r line; do
workspace=$(echo "$line" | jq -r '.workspace')
layout=$(echo "$line" | jq -r '.layout')
title=$(echo "$line" | jq -r '.title')
echo "WS: $workspace | Layout: $layout | $title"
done