aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-12-27 20:58:22 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-12-27 20:58:22 +0900
commit33d4cd47ce639aeb39991b944895477a0e3b1745 (patch)
treee1d2b1263979d5bc161225f7f9ed33c86814599c /config/hypr
parent1e2a3b25aa760885ee326433ef0ab176e39c73bc (diff)
updated swaync, Settings animation and DarkLight.sh
Diffstat (limited to 'config/hypr')
-rw-r--r--config/hypr/configs/Settings.conf16
-rwxr-xr-xconfig/hypr/scripts/DarkLight.sh15
2 files changed, 21 insertions, 10 deletions
diff --git a/config/hypr/configs/Settings.conf b/config/hypr/configs/Settings.conf
index 2ad370ad..7107d408 100644
--- a/config/hypr/configs/Settings.conf
+++ b/config/hypr/configs/Settings.conf
@@ -1,6 +1,7 @@
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
## refer to Hyprland wiki for more info https://wiki.hyprland.org/Configuring/Variables
+
# Sourcing colors generated by pywal
source = $HOME/.cache/wal/colors-hyprland
# blurls = waybar
@@ -26,7 +27,7 @@ general {
border_size = 2
resize_on_border = true
- col.active_border = $color0 $color2 $color4 $color6 $color8 45deg
+ col.active_border = $color0 $color2 $color4 $color6 $color8 90deg
col.inactive_border = $backgroundCol
layout = master
@@ -78,13 +79,14 @@ animations {
bezier = bounce, 1.1, 1.6, 0.1, 0.85
bezier = sligshot, 1, -1, 0.15, 1.25
bezier = nice, 0, 6.9, 0.5, -4.20
-
- animation = windowsIn, 1, 5, slow, popin
- animation = windowsOut, 1, 5, winOut, popin
+
+ animation = windows, 1, 6, wind, slide
+ animation = windowsIn, 1, 6, winIn, slide
+ animation = windowsOut, 1, 5, winOut, slide
animation = windowsMove, 1, 5, wind, slide
- animation = border, 1, 10, linear
- animation = borderangle, 1, 100, linear, loop
- animation = fade, 1, 5, overshot
+ animation = border, 1, 1, linear
+ animation = borderangle, 1, 150, linear, loop
+ animation = fade, 1, 10, default
animation = workspaces, 1, 5, wind
animation = windows, 1, 5, bounce, popin
}
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh
index a2b7af70..ec8c4473 100755
--- a/config/hypr/scripts/DarkLight.sh
+++ b/config/hypr/scripts/DarkLight.sh
@@ -1,10 +1,11 @@
#!/bin/bash
-#set -x
+set -x
# Paths
wallpaper_base_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers"
dark_wallpapers="$wallpaper_base_path/Dark"
light_wallpapers="$wallpaper_base_path/Light"
hypr_config_path="$HOME/.config/hypr"
+swaync_style="$HOME/.config/swaync/style.css"
SCRIPTSDIR="$HOME/.config/hypr/scripts"
notif="$HOME/.config/swaync/images/bell.png"
dark_rofi_pywal="$HOME/.cache/wal/colors-rofi-dark.rasi"
@@ -61,6 +62,15 @@ set_waybar_style "$next_mode"
notify_user "$next_mode"
+# swaync color change
+if [ "$next_mode" = "Dark" ]; then
+ sed -i '/@define-color noti-bg/s/rgba([0-9]*,\s*[0-9]*,\s*[0-9]*,\s*[0-9.]*);/rgba(0, 0, 0, 0.8);/' "${swaync_style}"
+ sed -i '/@define-color noti-bg-alt/s/#.*;/#111111;/' "${swaync_style}"
+else
+ sed -i '/@define-color noti-bg/s/rgba([0-9]*,\s*[0-9]*,\s*[0-9]*,\s*[0-9.]*);/rgba(255, 255, 255, 0.9);/' "${swaync_style}"
+ sed -i '/@define-color noti-bg-alt/s/#.*;/#F0F0F0;/' "${swaync_style}"
+fi
+
# Set Dynamic Wallpaper for Dark or Light Mode
if [ "$next_mode" = "Dark" ]; then
next_wallpaper="$(find "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)"
@@ -177,8 +187,7 @@ sleep 1
${SCRIPTSDIR}/Refresh.sh
# Display notifications for theme and icon changes
-notify-send -u normal -i "$notif" "Themes are set to $selected_theme"
-notify-send -u normal -i "$notif" "Icon themes set to $selected_icon"
+notify-send -u normal -i "$notif" "Themes in $next_mode Mode"
exit 0
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage