New backup 2026-01-22 10:37:06

This commit is contained in:
Penelope Gwen 2026-01-22 10:37:06 -08:00
parent 9ec82385dd
commit 1686fc8c36
9 changed files with 62 additions and 36 deletions

View file

@ -64,7 +64,8 @@
(sysdisk)
(sysmem)
(clock)
(tray)))
(tray)
(notification_center)))
(include "variables/bar/profile-info.yuck")
(include "variables/bar/sway-info.yuck")
@ -95,3 +96,4 @@
(include "modules/bar/sysmem.yuck")
(include "modules/bar/clock.yuck")
(include "modules/bar/tray.yuck")
(include "modules/bar/notification-center.yuck")

View file

@ -0,0 +1,10 @@
(deflisten notification_center_info :initial '{ "count": 0, "dnd": false, "visible": false, "inhibited": false }'
"swaync-client -s")
(defwidget notification_center []
(box
:class "notification-center ${(jq(notification_center_info,'.count','r') > 0 ) ? 'active' : 'inactive'}"
(button :onclick 'swaync-client -t'
:onrightclick 'swaync-client -d'
:tooltip "${jq(notification_center_info,'.count','r')} unread notifications"
"${!jq(notification_center_info,'.dnd','r') ? '' : ''}")))

View file

@ -3,5 +3,5 @@
(defwidget profile []
(button :onclick "sdu profile switch next"
:tooltip {jq(profile_info,'.name','r')}
:class "profile ${((jq(profile_info,'.name','r') == 'Work') ? 'profile-work' : ((jq(profile_info,'.name','r') == 'School') ? 'profile-school' : ((jq(profile_info,'.name','r') == 'Development') ? 'profile-development' : ((jq(profile_info,'.name','r') == 'Personal') ? 'profile-personal' : ''))))}"
:class "profile profile-${(jq(profile_info,'.name','r'))}"
{jq(profile_info,'.icon','r')}))

View file

@ -42,7 +42,8 @@
(defwidget workspace [ws side ?lastws ?firstws]
(button :onclick `swaymsg workspace "${ws.name}"`
: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' : ''))))}'
; :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' : ''))))}'
:class '${side} ${ws.num == lastws ? "last-workspace" : (ws.num == firstws ? "first-workspace" : "middle-workspace")} profile-${jq(ws,'.profile_name','r')}'
(box
'${replace(ws.name,".*:","")}'
(label

View file

@ -96,6 +96,7 @@ $transition-time: 0.3s;
@import "./bar/sys.scss";
@import "./bar/clock.scss";
@import "./bar/tray.scss";
@import "./bar/notification-center.scss";
/* .chevron box {
border: 2px solid transparent;

View file

@ -0,0 +1,10 @@
.notification-center {
$module-bg-color: rgba($bar-bg-color,0.5);
$module-fg-color: $bar-fg-color;
margin: 0px 5px;
@import "./styles/button.scss";
&.inactive {
opacity: 0.5;
}
}

View file

@ -1,22 +1,22 @@
$personal-color: $bar-bg-color;
$development-color: mix($color9, $color12);
$school-color: mix($color5, $color3);
$School-color: mix($color5, $color3);
$work-color: mix($color5, $color4, 30%);
.profile,
.workspaces {
border: 2px solid $bar-bg-color;
font-weight: bold;
&.profile-personal {
&.profile-Penelope {
border-color: $personal-color;
}
&.profile-development {
&.profile-Development {
border-color: $development-color;
}
&.profile-school {
border-color: $school-color;
&.profile-School {
border-color: $School-color;
}
&.profile-work {
&.profile-Work {
border-color: $work-color;
}
}
@ -27,21 +27,21 @@ $work-color: mix($color5, $color4, 30%);
color: $bar-bg-color;
padding: 0px 10px;
transition: 0.3s all;
&.profile-development,
&.profile-school,
&.profile-work {
&.profile-Development,
&.profile-School,
&.profile-Work {
color: $bar-module-fg-color;
}
&.profile-personal {
&.profile-Penelope {
background-color: transparent;
}
&.profile-development {
&.profile-Development {
background-color: $development-color;
}
&.profile-school {
background-color: $school-color;
&.profile-School {
background-color: $School-color;
}
&.profile-work {
&.profile-Work {
background-color: $work-color;
}
}
@ -52,19 +52,19 @@ $work-color: mix($color5, $color4, 30%);
background-color: $bar-bg-color;
color: $bar-module-fg-color;
border-radius: 0px $bar-module-bg-border-radius $bar-module-bg-border-radius 0px;
&.profile-personal {
&.profile-Penelope {
background-color: $personal-color;
border-color: $personal-color;
}
&.profile-development {
&.profile-Development {
background-color: $development-color;
border-color: $development-color;
}
&.profile-school {
background-color: $school-color;
border-color: $school-color;
&.profile-School {
background-color: $School-color;
border-color: $School-color;
}
&.profile-work {
&.profile-Work {
background-color: $work-color;
border-color: $work-color;
}
@ -100,34 +100,34 @@ $work-color: mix($color5, $color4, 30%);
}
&>box>box>button {
color: $bar-bg-color;
&.profile-personal {
&.profile-Penelope {
color: $personal-color;
border-color: $personal-color;
}
&.profile-development {
&.profile-Development {
color: $development-color;
border-color: $development-color;
}
&.profile-school {
color: $school-color;
border-color: $school-color;
&.profile-School {
color: $School-color;
border-color: $School-color;
}
&.profile-work {
&.profile-Work {
color: $work-color;
border-color: $work-color;
}
&:hover {
background-color: rgba($bar-bg-color,0.5);
&.profile-personal {
&.profile-Penelope {
background-color: rgba($personal-color,0.5);
}
&.profile-development {
&.profile-Development {
background-color: rgba($development-color,0.5);
}
&.profile-school {
background-color: rgba($school-color,0.5);
&.profile-School {
background-color: rgba($School-color,0.5);
}
&.profile-work {
&.profile-Work {
background-color: rgba($work-color,0.5);
}
}

View file

@ -169,8 +169,8 @@ RunPrefix=
SetEditor=false
[MainWindow]
1920x1200 screen: Height=552
1920x1200 screen: Width=855
1920x1200 screen: Height=352
1920x1200 screen: Width=453
2 screens: Height=1119
2 screens: Width=490
2048x1280 screen: Height=1030

View file

@ -1 +1,3 @@
user_pref("privacy.resistFingerprinting.exemptedDomains", "*.pogmom.me,*.pog.mom,app.slack.com,na01.alma.exlibrisgroup.com,mail.google.com,*.livechatinc.com,*.lanecc.edu");
user_pref("dom.webgpu.enabled",true);