New backup 2025-09-01 10:45:01

This commit is contained in:
Penelope Gwen 2025-09-01 10:45:01 -07:00
parent 477ccec714
commit 3a31d47789
4 changed files with 20 additions and 7 deletions

View file

@ -1,6 +1,7 @@
(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'}
(box
:class "idle-inhibitor ${inhibit_active ? 'active' : 'inactive'}"
{inhibit_active ? "" : ""}))
(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'}
{inhibit_active ? "" : ""})))

View file

@ -1,4 +1,5 @@
$bar-reveal-children-bg-color: rgba($color0, 0.2);
$transition-time: 0.3s;
.bar.horizontal {
font-size: 1.05em;
@ -152,7 +153,7 @@ $bar-reveal-children-bg-color: rgba($color0, 0.2);
}*/
.scratchpad {
margin-left: 10px;
// margin-left: 10px;
&>widget>box>box>label {
padding: 0px 10px;
}
@ -219,9 +220,9 @@ $bar-reveal-children-bg-color: rgba($color0, 0.2);
.chevron box {
border: 2px solid transparent;
}
.inactive {
/* .inactive {
opacity: 0.5;
}
}*/
// HOTFIXES

View file

@ -1,7 +1,11 @@
.idle-inhibitor {
$module-button-bg-color: $color1;
$module-button-fg-color: $color2;
$module-button-bg-color: $bar-bg-color;
$module-button-fg-color: $bar-module-fg-color;
margin: 0px 10px;
// padding: 0px 6px;
@import "./styles/button.scss";
&.inactive {
opacity: 0.6;
}
}

View file

@ -1,4 +1,11 @@
button {
border-radius: $bar-module-border-radius;
padding: 0px 10px;
color: $module-button-fg-color;
background-color: $module-button-bg-color;
&:hover {
background-color: rgba($module-button-bg-color,0.7);
}
transition: all $transition-time;
}