From f606e7f3783ec7a19518e6c5c7f3ccd56362b59e Mon Sep 17 00:00:00 2001 From: atagen Date: Mon, 14 Aug 2023 13:04:03 +1000 Subject: [PATCH] tweak swaync --- home/dots/fuzzel/fuzzel.ini | 17 -------------- home/dots/swaync/style.css | 46 ++++++++++++++++++------------------- home/home.nix | 6 ++++- rhizome-vps | 2 +- 4 files changed, 29 insertions(+), 42 deletions(-) delete mode 100644 home/dots/fuzzel/fuzzel.ini diff --git a/home/dots/fuzzel/fuzzel.ini b/home/dots/fuzzel/fuzzel.ini deleted file mode 100644 index 570a865..0000000 --- a/home/dots/fuzzel/fuzzel.ini +++ /dev/null @@ -1,17 +0,0 @@ -dpi-aware=no -font=Montreux Classic:size=14 -icon-theme=Papirus-Dark -terminal=kitty -[dmenu] -exit-immediately-if-empty=yes -[border] -width=3 -radius=24 -[colors] -background="060604FF" -text="d3dae3FF" -selection="ed244eFF" -selection-text="d3dae3ff" -selection-match="71f79fff" -match="27ae60FF" -border="2f343fFF" diff --git a/home/dots/swaync/style.css b/home/dots/swaync/style.css index 9045474..9f68917 100644 --- a/home/dots/swaync/style.css +++ b/home/dots/swaync/style.css @@ -4,7 +4,7 @@ @define-color cc-bg #PANELBG; -@define-color noti-border-color #BORDER; +@define-color noti-border-color #COLBORDER; @define-color noti-bg #NOTIBGNORM; @define-color noti-bg-hover #NOTIBGHOVER; @define-color noti-bg-focus #NOTIBGFOCUS; @@ -21,7 +21,7 @@ transition: all 200ms ease; outline: none; margin-bottom: 4px; - border-radius: 24px; + border-radius: #ROUNDINGpx; } .control-center .notification-row:focus, @@ -32,8 +32,8 @@ .notification-row:focus .notification, .notification-row:hover .notification { - box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.5); - box-shadow: 0px 0px 0px 3px @bg-selected; + // box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.5); + // box-shadow: 0px 0px 0px 3px @bg-selected; } .control-center .notification { @@ -46,9 +46,9 @@ .notification { transition: all 200ms ease; - border-radius: 24px; + border-radius: #ROUNDINGpx; margin: 6px 6px; - box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.5); + // box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.5); padding: 0; } @@ -75,7 +75,7 @@ .notification-content { background: transparent; padding: 6px; - border-radius: 24px; + border-radius: #ROUNDINGpx; } .close-button { @@ -105,7 +105,7 @@ margin: 0; box-shadow: none; background: @noti-bg; - border: 3px solid @noti-border-color; + border: #BORDERpx solid @noti-border-color; color: white; transition: all 200ms ease; } @@ -117,7 +117,7 @@ } .notification-default-action { - border-radius: 24px; + border-radius: #ROUNDINGpx; } /* When alternative actions are visible */ @@ -178,11 +178,11 @@ .control-center { background: @cc-bg; - border-radius: 24px; + border-radius: #ROUNDINGpx; background-clip: border-box; padding: 4px; - box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7), - 0 2px 6px 2px rgba(0, 0, 0, 0.3); + // box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7), + // 0 2px 6px 2px rgba(0, 0, 0, 0.3); } .control-center-list { @@ -214,7 +214,7 @@ color: white; text-shadow: none; background: @noti-bg; - border: 3px solid @noti-border-color; + border: #BORDERpx solid @noti-border-color; box-shadow: none; border-radius: 24px; } @@ -229,9 +229,9 @@ } .widget-dnd > switch { font-size: initial; - border-radius: 24px; + border-radius: #ROUNDINGpx; background: @noti-bg; - border: 3px solid @noti-border-color; + border: #BORDERpx solid @noti-border-color; box-shadow: none; } .widget-dnd > switch:checked { @@ -239,7 +239,7 @@ } .widget-dnd > switch slider { background: @noti-bg-hover; - border-radius: 24px; + border-radius: #ROUNDINGpx; } /* Label widget */ @@ -258,7 +258,7 @@ padding: 8px; margin: 8px; background-color: @noti-bg; - border-radius: 24px; + border-radius: #ROUNDINGpx; } .widget-mpris-title { font-weight: bold; @@ -272,13 +272,13 @@ .widget-buttons-grid { padding: 8px; margin: 8px; - border-radius: 24px; + border-radius: #ROUNDINGpx; background-color: @noti-bg; } .widget-buttons-grid>flowbox>flowboxchild>button{ background: @noti-bg; - border-radius: 24px; + border-radius: #ROUNDINGpx; } .widget-buttons-grid>flowbox>flowboxchild>button:hover { @@ -318,7 +318,7 @@ background-color: @noti-bg; padding: 8px; margin: 8px; - border-radius: 24px; + border-radius: #ROUNDINGpx; } /* Backlight widget */ @@ -326,7 +326,7 @@ background-color: @noti-bg; padding: 8px; margin: 8px; - border-radius: 24px; + border-radius: #ROUNDINGpx; } /* Title widget */ @@ -339,9 +339,9 @@ color: white; text-shadow: none; background: @noti-bg; - border: 3px solid @noti-border-color; + border: #BORDERpx solid @noti-border-color; box-shadow: none; - border-radius: 24px; + border-radius: #ROUNDINGpx; } .widget-inhibitors > button:hover { background: @noti-bg-hover; diff --git a/home/home.nix b/home/home.nix index 8b86767..30c44ba 100644 --- a/home/home.nix +++ b/home/home.nix @@ -426,7 +426,7 @@ in { text = with palette-hex; (builtins.replaceStrings [ "#PANELBG" - "#BORDER" + "#COLBORDER" "#NOTIBGNORM" "#NOTIBGHOVER" "#NOTIBGFOCUS" @@ -434,6 +434,8 @@ in { "#NOTIBGHVERCLOSE" "#BGSELECTED" "#FONT" + "#BORDER" + "#ROUNDING" ] [ util.bg @@ -445,6 +447,8 @@ in { bright.black bright.black pkgs.rice.fonts.sans.name + pkgs.rice.borders.thickness + pkgs.rice.borders.rounding ] (builtins.readFile dots/swaync/style.css)); }; diff --git a/rhizome-vps b/rhizome-vps index 875c712..6087a24 160000 --- a/rhizome-vps +++ b/rhizome-vps @@ -1 +1 @@ -Subproject commit 875c712c612f02d090e9f502dc92ac0a9c8a730e +Subproject commit 6087a2475d7c374934fde85b94e0939bc51be011