New backup 2025-03-03 23:15:01

This commit is contained in:
Penelope Gwen 2025-03-03 23:15:01 -08:00
parent ab2783c58e
commit 1c277c82d4
3 changed files with 22 additions and 34 deletions

View file

@ -10,34 +10,6 @@
// color: #b0b4bc; // color: #b0b4bc;
padding: 5px 0px; padding: 5px 0px;
} }
// Styles on classes (see eww.yuck for more information)
.sidestuff slider {
all: unset;
color: #ffd5cd;
}
.metric scale trough highlight {
all: unset;
background-color: #D35D6E;
color: #000000;
border-radius: 10px;
}
.metric scale trough {
all: unset;
background-color: #4e4e4e;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 10px;
margin-right: 20px;
}
.label-ram {
font-size: large;
}
circular-progress { circular-progress {
color: $color1; color: $color1;
background-color: $color2; background-color: $color2;
@ -49,6 +21,9 @@ circular-progress {
border-radius: 8px; border-radius: 8px;
margin: 0px 2px; margin: 0px 2px;
} }
.revealer-on-hover>widget>box>box>* {
padding: 5px;
}
.reveal_children>box, .reveal_children>box,
.reveal_children>button { .reveal_children>button {
border-left: 2px solid $color1; border-left: 2px solid $color1;
@ -62,9 +37,11 @@ circular-progress {
padding: 2px; padding: 2px;
border-radius: 8px; border-radius: 8px;
margin: 0px 2px; margin: 0px 2px;
padding: 5px;
} }
label { label {
margin-top: 2px; margin-top: 2px;
// background-color: blue;
} }
.workspaces { .workspaces {
background-color: #B87A7A; background-color: #B87A7A;
@ -76,7 +53,7 @@ label {
border: 2px solid $color1; border: 2px solid $color1;
color: $color0; color: $color0;
margin: 0px 0px; margin: 0px 0px;
padding: 2px; padding: 5px;
} }
.workspaces button:hover { .workspaces button:hover {
background-color: $color1; background-color: $color1;
@ -91,12 +68,10 @@ label {
border-radius:8px 0px 0px 8px; border-radius:8px 0px 0px 8px;
} }
.workspaces button:last-child, .workspaces button:last-child,
.revealer-on-hover>widget>box>box:last-child,
.reveal_children>box:last-child { .reveal_children>box:last-child {
border-radius:0px 8px 8px 0px; border-radius:0px 8px 8px 0px;
} }
.workspaces button:only-child, .workspaces button:only-child,
.revealer-on-hover>widget>box>box:only-child,
.reveal_children>box:only-child { .reveal_children>box:only-child {
border-radius:8px; border-radius:8px;
} }

View file

@ -12,7 +12,7 @@
(bluetooth) (bluetooth)
(sysdisk) (sysdisk)
(sysmem) (sysmem)
{formattime(EWW_TIME,"%b %d, %Y %H:%M")} (clock)
(systemtray))) (systemtray)))
(deflisten workspacesArray :initial "${[1]}" (deflisten workspacesArray :initial "${[1]}"
@ -29,6 +29,10 @@
:class {entry.focused ? "focused" : ""} :class {entry.focused ? "focused" : ""}
`${replace(entry.name,".*:","")}`)))) `${replace(entry.name,".*:","")}`))))
(defwidget clock []
(button :onclick 'notify-send "test"'
{formattime(EWW_TIME,"%b %d, %Y | %H:%M")}))
(defwidget network [] (defwidget network []
(button :onclick 'nm-connection-editor' (button :onclick 'nm-connection-editor'
"🖧")) "🖧"))
@ -95,10 +99,10 @@
:orientation "h" :orientation "h"
:space-evenly false :space-evenly false
:halign "center" :halign "center"
(button :onclick 'notify-send "test home"' (button :onclick 'scripts/nmcli-vpn "HomeVPN"'
:class {home_vpn_active ? "active" : ""} :class {home_vpn_active ? "active" : ""}
{home_vpn_active ? "" : ""}) {home_vpn_active ? "" : ""})
(button :onclick 'notify-send "test proton"' (button :onclick 'scripts/nmcli-vpn "Proton SE-NL"'
:class {proton_vpn_active ? "active" : ""} :class {proton_vpn_active ? "active" : ""}
{proton_vpn_active ? "" : ""}))) {proton_vpn_active ? "" : ""})))

View file

@ -0,0 +1,9 @@
#!/bin/bash
if $(nmcli -g GENERAL.STATE c s "${1}"|grep -q '\bactiv'); then
echo "going down"
nmcli connection down "${1}"
else
echo "going up"
nmcli connection up "${1}"
fi