New backup 2025-09-01 12:30:01

This commit is contained in:
Penelope Gwen 2025-09-01 12:30:01 -07:00
parent bb52727b75
commit 66a49c33fe
2 changed files with 28 additions and 21 deletions

View file

@ -8,7 +8,7 @@
(eventbox (eventbox
:onhover "${EWW_CMD} update wsreveal=true" :onhover "${EWW_CMD} update wsreveal=true"
:onhoverlost "${EWW_CMD} update wsreveal=false" :onhoverlost "${EWW_CMD} update wsreveal=false"
(box :class "workspaces" (box :class "workspaces ${((activeWorkspace > '30') ? 'profile-work' : ((activeWorkspace > '20') ? 'profile-school' : ((activeWorkspace > '10') ? 'profile-development' : ((activeWorkspace > '0') ? 'profile-personal' : ''))))}"
:orientation "h" :orientation "h"
:space-evenly false :space-evenly false
:halign "start" :halign "start"
@ -42,7 +42,7 @@
(defwidget workspace [ws side ?lastws ?firstws] (defwidget workspace [ws side ?lastws ?firstws]
(button :onclick `swaymsg workspace "${ws.name}"` (button :onclick `swaymsg workspace "${ws.name}"`
:class '${side} ${ws.num == lastws ? "last-workspace" : (ws.num == firstws ? "first-workspace" : "middle-workspace")} ${}' :class '${side} ${ws.num == lastws ? "last-workspace" : (ws.num == firstws ? "first-workspace" : "middle-workspace")} ${((ws.num > '30') ? 'profile-work' : ((ws.num > '20') ? 'profile-school' : ((ws.num > '10') ? 'profile-development' : ((ws.num > '0') ? 'profile-personal' : ''))))}'
(box (box
'${replace(ws.name,".*:","")}' '${replace(ws.name,".*:","")}'
(label (label

View file

@ -1,13 +1,12 @@
$personal-color: $bar-bg-color;
$development-color: mix($color9, $color12);
$school-color: mix($color5, $color3);
$work-color: mix($color5, $color4, 30%);
.profile, .profile,
.workspaces { .workspaces {
border: 2px solid $bar-bg-color; border: 2px solid $bar-bg-color;
font-weight: bold; font-weight: bold;
}
.profile {
margin-left: 10px;
border-right: 0px solid transparent;
border-radius: $bar-module-border-radius 0px 0px $bar-module-border-radius;
color: $bar-bg-color;
&.profile-development, &.profile-development,
&.profile-school, &.profile-school,
&.profile-work { &.profile-work {
@ -17,18 +16,21 @@
background-color: transparent; background-color: transparent;
} }
&.profile-development { &.profile-development {
background-color: mix($color9, $color12); border-color: $development-color;
border-color: mix($color9, $color12);
} }
&.profile-school { &.profile-school {
background-color: mix($color5, $color3); border-color: $school-color;
border-color: mix($color5, $color3);
} }
&.profile-work { &.profile-work {
background-color: mix($color5, $color4, 30%); border-color: $work-color;
border-color: mix($color5, $color4, 30%);
} }
} }
.profile {
margin-left: 10px;
border-right: 0px solid transparent;
border-radius: $bar-module-border-radius 0px 0px $bar-module-border-radius;
color: $bar-bg-color;
}
.workspaces { .workspaces {
box.ws-center { box.ws-center {
@ -36,12 +38,21 @@
background-color: $bar-bg-color; background-color: $bar-bg-color;
color: $bar-module-fg-color; color: $bar-module-fg-color;
border-radius: 0px $bar-module-bg-border-radius $bar-module-bg-border-radius 0px; border-radius: 0px $bar-module-bg-border-radius $bar-module-bg-border-radius 0px;
&.profile-personal {
background-color: $personal-color;
}
&.profile-development {
background-color: $development-color;
}
&.profile-school {
background-color: $school-color;
}
&.profile-work {
background-color: $work-color;
}
} }
&.true>box>button { &.true>box>button {
// &.first-workspace,
// &.middle-workspace {
border-radius: 0px; border-radius: 0px;
// }
&.last-workspace { &.last-workspace {
border-radius: 0px $bar-module-bg-border-radius $bar-module-bg-border-radius 0px; border-radius: 0px $bar-module-bg-border-radius $bar-module-bg-border-radius 0px;
} }
@ -86,9 +97,5 @@
padding: 0px; padding: 0px;
font-size: 0.6em; font-size: 0.6em;
} }
/* &:hover {
text-shadow: $bar-bg-color;
color: darker($bar-bg-color);
}*/
} }
} }