From 5c51cff35311b53e7f33a7bdaf14730588c4a37a Mon Sep 17 00:00:00 2001 From: Michel Fedde Date: Tue, 8 Apr 2025 22:04:55 +0200 Subject: [PATCH] Adds styling for hyprswitch --- .config/hyprswitch/style/style.scss | 21 +++++++++++++++++++++ .config/theming/compile.sh | 5 +++-- .config/theming/library/_variables.scss | 6 +++--- .config/theming/update.sh | 4 ++++ .gitignore | 3 +++ 5 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 .config/hyprswitch/style/style.scss diff --git a/.config/hyprswitch/style/style.scss b/.config/hyprswitch/style/style.scss new file mode 100644 index 0000000..6838005 --- /dev/null +++ b/.config/hyprswitch/style/style.scss @@ -0,0 +1,21 @@ +@import "../../theming/library/entry.scss"; + +:root { + --bg-color: #{$background}; + --bg-color-hover: #{$background}; + + --border-color-active: #{$color1}; +} + +* { + color: $foreground; +} + +.workspace:hover { + box-shadow: $box-shadow-inner; +} + +.workspace:hover, +.client:hover { + border: 3px solid #{$color5}; +} diff --git a/.config/theming/compile.sh b/.config/theming/compile.sh index 7568412..714d156 100755 --- a/.config/theming/compile.sh +++ b/.config/theming/compile.sh @@ -1,7 +1,8 @@ #!/bin/env sh -sass \ +sass --no-source-map \ $HOME/.config/swaync/style/style.scss:$HOME/.config/swaync/style.css \ $HOME/.config/waybar/scss/style.scss:$HOME/.config/waybar/style.css \ $HOME/.config/nwg-drawer/style/style.scss:$HOME/.config/nwg-drawer/drawer.css \ - $HOME/.config/anyrun/style/entry.scss:$HOME/.config/anyrun/style.css + $HOME/.config/anyrun/style/entry.scss:$HOME/.config/anyrun/style.css \ + $HOME/.config/hyprswitch/style/style.scss:$HOME/.config/hyprswitch/style.css diff --git a/.config/theming/library/_variables.scss b/.config/theming/library/_variables.scss index 013e58e..3816eeb 100644 --- a/.config/theming/library/_variables.scss +++ b/.config/theming/library/_variables.scss @@ -1,5 +1,5 @@ $border-radius: 0.3rem; -$box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset; -$box-shadow-inner: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px; -$box-shadow-outer: rgba(0, 0, 0, 0.35) 0px 5px 15px; +$box-shadow: rgba($color10, 0.25) 0px 50px 100px -20px, rgba($foreground, 0.3) 0px 30px 60px -30px, rgba($color11, 0.35) 0px -2px 6px 0px inset; +$box-shadow-inner: rgba($foreground, 0.17) 0px -23px 25px 0px inset, rgba($foreground, 0.15) 0px -36px 30px 0px inset, rgba($foreground, 0.1) 0px -79px 40px 0px inset, rgba($foreground, 0.06) 0px 2px 1px, rgba($foreground, 0.09) 0px 4px 2px, rgba($foreground, 0.09) 0px 8px 4px, rgba($foreground, 0.09) 0px 16px 8px, rgba($foreground, 0.09) 0px 32px 16px; +$box-shadow-outer: rgba($foreground, 0.35) 0px 5px 15px; diff --git a/.config/theming/update.sh b/.config/theming/update.sh index 30b9df0..9b3b34b 100755 --- a/.config/theming/update.sh +++ b/.config/theming/update.sh @@ -6,3 +6,7 @@ swaync-client --reload-css killall waybar killall pactl nohup waybar & + +# Reload hyprswitch +killall hyprswitch +nohup hyprswitch init --custom-css "$HOME/.config/hyprswitch/style.css" & diff --git a/.gitignore b/.gitignore index b91b81d..89a227c 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,9 @@ !/.config/anyrun /.config/anyrun/style.css /.config/anyrun/style.css.map +!/.config/hyprswitch +/.config/hyprswitch/style.css +/.config/hyprswitch/style.css.map !/.ssh/ /.ssh/*