Skip to content

Commit

Permalink
idle inhibitor widget
Browse files Browse the repository at this point in the history
  • Loading branch information
LBCrion committed Feb 6, 2022
1 parent 6a4dc12 commit db9600c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions config/idle.widget
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
function("ToggleInhibitor") {
[!IdleInhibit] IdleInhibit "on"
[!IdleInhibit] SetValue "icons/misc/lock.svg"
[!IdleInhibit] SetTooltip "Idle Inhibit: On"
[IdleInhibit] IdleInhibit "off"
[IdleInhibit] SetValue "icons/misc/unlock.svg"
[IdleInhibit] SetTooltip "Idle Inhibit: Off"
}

layout {
button {
style = "idle_inhibit"
value = "icons/misc/unlock.svg"
action[0] = Function "ToggleInhibitor"
action[1] = Function "ToggleInhibitor"
}
}

#CSS

button#mpd, button#mpd *, button#mpd ** {
-GtkWidget-hexpand: true;
-GtkWidget-vexpand: true;
}

0 comments on commit db9600c

Please sign in to comment.