New backup 2025-11-29 17:15:03

This commit is contained in:
Penelope Gwen 2025-11-29 17:15:03 -08:00
parent ead971c066
commit d10a6a8802
3 changed files with 16 additions and 7 deletions

View file

@ -10,7 +10,7 @@
:text " ${jq(scratchpadArray,'. | length')} ${reveal_scratchpad ? '' : ''}")
(scratchpad_children :array scratchpadArray)))
(deflisten scratchpadArray :initial "${[{"icon": "/usr/share/icons/breeze-dark/mimetypes/32/unknown.svg", "name": "placeholder", "title": "placeholder", "win_id": "0"}]}"
(deflisten scratchpadArray :initial "${[{"icon": "/usr/share/icons/breeze-dark/mimetypes/32/unknown.svg", "name": "placeholder", "title": "placeholder", "win_id": "0", "visible": "false"}]}"
'scripts/bar/scratchpad')
(defwidget scratchpad_children [array]
(box :orientation "h"
@ -18,7 +18,7 @@
:space-evenly false
(for entry in array
(button :onclick 'swaymsg [con_id=${entry.win_id}] scratchpad show'
:class "${(entry.visible == 'true') ? visible : hidden}"
:class "${(entry.visible == 'true') ? 'active' : 'inactive'}"
:tooltip "${entry.name}\n${entry.title}"
(image :path {entry.icon}
:image-width 20

View file

@ -11,6 +11,9 @@
min-width: $bar-module-width;
transition: all 0.3s;
background-color: rgba($bar-bg-color,0.5);
& image {
opacity: 0.3;
}
&:hover {
background: linear-gradient(rgba($bar-bg-color,0.5) 15%, rgba($module-color,0.5));
}
@ -19,6 +22,9 @@
&:hover {
background: linear-gradient(mix(rgba($bar-bg-color,0.5), rgba($module-color,0.5)) 15%, rgba($bar-bg-color,0.5));
}
& image {
opacity: 1;
}
}
&.inactive {
background-color: rgba($bar-bg-color,0.3);
@ -26,6 +32,9 @@
&:hover {
background: linear-gradient(rgba($bar-bg-color,0.3) 15%, rgba($module-color,0.3));
}
// & image {
// opacity: 0.3;
// }
}
}
.revealer-preview {

View file

@ -24,11 +24,6 @@ ShowSelector=0
StartWithLastProfile=1
Version=2
[Profile4]
Name=testing
IsRelative=1
Path=4z689ygf.testing
[Install6C4726F70D182CF7]
Default=penelope
Locked=1
@ -38,3 +33,8 @@ Name=School
IsRelative=1
Path=school
[Profile4]
Name=testing
IsRelative=1
Path=4z689ygf.testing