aboutsummaryrefslogtreecommitdiff
path: root/.config/swaync
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2025-10-19 13:42:30 +0530
committerkrolxon <krolyxon@tutanota.com>2025-10-19 13:42:30 +0530
commit830aedef682508df018f64d3364b630409864479 (patch)
treeeda433016edd9217908ea88ef014b5ea4daa9e10 /.config/swaync
parentb17a3d98f755b0d2dcf5035d79ce771b4ecd258e (diff)
pywal: waybar, hyprland, cava, fuzzel, foot
Diffstat (limited to '.config/swaync')
-rw-r--r--.config/swaync/style.css370
1 files changed, 111 insertions, 259 deletions
diff --git a/.config/swaync/style.css b/.config/swaync/style.css
index bbe5dc8..29e2d30 100644
--- a/.config/swaync/style.css
+++ b/.config/swaync/style.css
@@ -1,324 +1,176 @@
-* {
- all: unset;
- font-size: 14px;
- font-family: "Ubuntu Nerd Font";
- transition: 200ms;
-}
-
-trough highlight {
- background: #cdd6f4;
-}
-
-scale {
- margin: 0 7px;
-}
-
-scale trough {
- margin: 0rem 1rem;
- min-height: 8px;
- min-width: 70px;
- border-radius: 12.6px;
-}
-
-trough slider {
- margin: -10px;
- border-radius: 12.6px;
- box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
- transition: all 0.2s ease;
- background-color: #89b4fa;
-}
-
-trough slider:hover {
- box-shadow: 0 0 2px rgba(0, 0, 0, 0.8), 0 0 8px #89b4fa;
-}
-
-trough {
- background-color: #313244;
-}
-
-/* notifications */
-.notification-background {
- box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px #45475a;
- border-radius: 12.6px;
- margin: 18px;
- background: #181825;
- color: #cdd6f4;
- padding: 0;
-}
-
-.notification-background .notification {
- padding: 7px;
- border-radius: 12.6px;
-}
+@import '../../.cache/wal/colors-waybar.css';
-.notification-background .notification.critical {
- box-shadow: inset 0 0 7px 0 #f38ba8;
-}
-
-.notification .notification-content {
- margin: 7px;
-}
-
-.notification .notification-content overlay {
- /* icons */
- margin: 4px;
-}
-
-.notification-content .summary {
- color: #cdd6f4;
-}
-
-.notification-content .time {
- color: #a6adc8;
-}
+@define-color text @foreground;
+@define-color bg @color1;
+@define-color selected @color6;
+@define-color hover alpha(@selected, .4);
-.notification-content .body {
- color: #bac2de;
-}
-
-.notification > *:last-child > * {
- min-height: 3.4em;
+* {
+ outline: none;
+ transition: 200ms;
}
-.notification-background .close-button {
- margin: 7px;
- padding: 2px;
- border-radius: 6.3px;
- color: #1e1e2e;
- background-color: #f38ba8;
+.notification-row {
+ outline: none;
+ margin: 0;
+ padding: 0px;
}
-.notification-background .close-button:hover {
- background-color: #eba0ac;
+.notification-row .notification-background .close-button {
+ /* The notification Close Button */
+ background: transparent;
+ color: @text;
+ text-shadow: none;
+ box-shadow: none;
+ margin-top: 2px;
+ margin-right: 2px;
+ padding: 0;
+ border: none;
+ border-radius: 100%;
+ min-width: 24px;
+ min-height: 24px;
}
-.notification-background .close-button:active {
- background-color: #f5c2e7;
+.notification-row .notification-background .close-button:hover {
+ box-shadow: none;
+ background: @hover;
+ transition: background 0.15s ease-in-out;
+ border: 0px;
}
-.notification .notification-action {
- border-radius: 7px;
- color: #cdd6f4;
- box-shadow: inset 0 0 0 1px #45475a;
- margin: 4px;
- padding: 8px;
- font-size: 0.2rem; /* controls the button size not text size*/
+.notification-row .notification-background .notification {
+ /* The actual notification */
+ background: @background;
}
-.notification .notification-action {
- background-color: #313244;
+.notification-row .notification-background .notification .notification-action, .notification-row .notification-background .notification .notification-default-action {
+ color: @text;
}
-.notification .notification-action:hover {
- background-color: #45475a;
+.notification-row .notification-background .notification .notification-action:hover, .notification-row .notification-background .notification .notification-default-action:hover {
+ -gtk-icon-effect: none;
+ background: @hover;
}
-.notification .notification-action:active {
- background-color: #585b70;
+.notification-group .notification-group-headers {
+ /* Notficiation Group Headers */
+ margin-top: 10px;
+ margin-bottom: 10px;
}
-.notification.critical progress {
- background-color: #f38ba8;
+.notification-group .notification-group-headers .notification-group-header {
+ font-size: 20px;
+ margin-left: 3px;
}
-.notification.low progress,
-.notification.normal progress {
- background-color: #89b4fa;
+.notification-group.collapsed .notification-row .notification {
+ background-color: @background;
}
-.notification progress,
-.notification trough,
-.notification progressbar {
- border-radius: 12.6px;
- padding: 3px 0;
+.notification-group.collapsed:hover .notification-row:not(:only-child) .notification {
+ /* Notification Group collapsed, hovered */
+ box-shadow: 0 0 0 1px alpha(@hover, 0.3), 0 1px 3px 1px alpha(@hover, 0.3), 0 2px 6px 2px alpha(@hover, 0.3);
}
-/* control center */
.control-center {
- box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px #313244;
- border-radius: 12.6px;
- background-color: #1e1e2e;
- color: #cdd6f4;
- padding: 14px;
-}
-
-.control-center .notification-background {
- border-radius: 7px;
- box-shadow: inset 0 0 0 1px #45475a;
- margin: 4px 10px;
-}
-
-.control-center .notification-background .notification {
- border-radius: 7px;
-}
-
-.control-center .notification-background .notification.low {
- opacity: 0.8;
+ /* The Control Center which contains the old notifications + widgets */
+ box-shadow: 0px 2px 5px black;
+ background: alpha(@background, .55);
+ border: 2px solid @selected;
}
-.control-center .widget-title > label {
- color: #cdd6f4;
- font-size: 1.3em;
+.control-center-clear-all {
+ /* Clear All button */
+ background: @bg;
}
-.control-center .widget-title button {
- border-radius: 7px;
- color: #cdd6f4;
- background-color: #313244;
- box-shadow: inset 0 0 0 1px #45475a;
- padding: 8px;
+.control-center-clear-all:hover {
+ background: @hover;
}
-.control-center .widget-title button:hover {
- background-color: #45475a;
+.control-center-clear-all:active {
+ background: @selected;
}
-.control-center .widget-title button:active {
- background-color: #585b70;
+/*** Widgets ***/
+/* Title widget */
+.widget-title {
+ background: none;
+ margin-top: 15px;
+ margin-left: 15px;
+ margin-right: 15px;
}
-.control-center .notification-group {
- margin-top: 10px;
-}
-
-scrollbar slider {
- margin: -3px;
- opacity: 0.8;
-}
-
-scrollbar trough {
- margin: 2px 0;
-}
-
-/* dnd */
+/* Do Not Disturb widget */
.widget-dnd {
- margin-top: 5px;
- border-radius: 8px;
- font-size: 1.1rem;
+ background: none;
+ margin-left: 15px;
+ margin-right: 15px;
}
.widget-dnd > switch {
- font-size: initial;
- border-radius: 8px;
- background: #313244;
- box-shadow: none;
-}
-
-.widget-dnd > switch:checked {
- background: #89b4fa;
-}
-
-.widget-dnd > switch slider {
- background: #45475a;
- border-radius: 8px;
-}
-
-/* mpris */
-.widget-mpris-player {
- background: #313244;
- border-radius: 12.6px;
- color: #cdd6f4;
-}
-
-.mpris-overlay {
- background-color: #313244;
- opacity: 0.9;
- padding: 15px 10px;
-}
-
-.widget-mpris-album-art {
- -gtk-icon-size: 100px;
- border-radius: 12.6px;
- margin: 0 10px;
+ background: @bg;
+ font-size: initial;
+ border-radius: 12px;
+ box-shadow: none;
+ padding: 2px;
}
-.widget-mpris-title {
- font-size: 1.2rem;
- color: #cdd6f4;
+.widget-dnd > switch:hover {
+ background: @hover;
}
-.widget-mpris-subtitle {
- font-size: 1rem;
- color: #bac2de;
-}
-
-.widget-mpris button {
- border-radius: 12.6px;
- color: #cdd6f4;
- margin: 0 5px;
- padding: 2px;
-}
-
-.widget-mpris button image {
- -gtk-icon-size: 1.8rem;
-}
-
-.widget-mpris button:hover {
- background-color: #313244;
-}
-
-.widget-mpris button:active {
- background-color: #45475a;
+.widget-dnd > switch:checked {
+ background: @selected;
}
-.widget-mpris button:disabled {
- opacity: 0.5;
+.widget-dnd > switch slider {
+ background: @text;
+ border-radius: 12px;
}
-.widget-menubar > box > .menu-button-bar > button > label {
- font-size: 3rem;
- padding: 0.5rem 2rem;
+/* Media Player widget */
+@define-color mpris-album-art-overlay rgba(0, 0, 0, 0.55);
+@define-color mpris-button-hover rgba(0, 0, 0, 0.50);
+.widget-mpris {
}
-.widget-menubar > box > .menu-button-bar > :last-child {
- color: #f38ba8;
+.widget-mpris .widget-mpris-player {
+ padding: 10px;
+ margin: 8px 15px;
+ background-color: @mpris-album-art-overlay;
+ box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.75);
+ border: 2px;
}
-.power-buttons button:hover,
-.powermode-buttons button:hover,
-.screenshot-buttons button:hover {
- background: #313244;
+.widget-mpris .widget-mpris-player .widget-mpris-title {
+ font-size: 16px;
}
-.control-center .widget-label > label {
- color: #cdd6f4;
- font-size: 2rem;
+.widget-mpris .widget-mpris-player .widget-mpris-subtitle {
+ font-size: 14px;
}
+/* Buttons widget */
.widget-buttons-grid {
- padding-top: 1rem;
-}
-
-.widget-buttons-grid > flowbox > flowboxchild > button label {
- font-size: 2.5rem;
-}
-
-.widget-volume {
- padding: 1rem 0;
-}
-
-.widget-volume label {
- color: #74c7ec;
- padding: 0 1rem;
-}
-
-.widget-volume trough highlight {
- background: #74c7ec;
+ background-color: alpha(@color2, 0.5);
}
-.widget-backlight trough highlight {
- background: #f9e2af;
+.widget-buttons-grid > flowbox > flowboxchild > button {
+ background: alpha(@color2, 0.5);
+ border-radius: 12px;
+ min-width: 45px;
}
-.widget-backlight label {
- font-size: 1.5rem;
- color: #f9e2af;
+.widget-buttons-grid > flowbox > flowboxchild > button:hover {
+ background: @hover;
}
-.widget-backlight .KB {
- padding-bottom: 1rem;
+.widget-buttons-grid > flowbox > flowboxchild > button:active {
+ background: @selected;
}
-.image {
- padding-right: 0.5rem;
+.widget-buttons-grid > flowbox > flowboxchild > button.toggle:checked {
+ /* style given to the active toggle button */
+ background: red;
}