6 lines
374 B
Text
6 lines
374 B
Text
(defvar inhibit_active false)
|
|
|
|
(defwidget idleinhibit []
|
|
(button :onclick {inhibit_active ? 'killall eww-idle-inhibit;eww update inhibit_active=false' : 'systemd-inhibit --what="idle" --mode="block" scripts/bar/eww-idle-inhibit & eww update inhibit_active=true'}
|
|
:class "idle-inhibitor ${inhibit_active ? 'active' : 'inactive'}"
|
|
{inhibit_active ? "" : ""}))
|