From 9e7b47f1b8dafbfadee3863355b3785384ffe436 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 27 Nov 2023 12:04:47 +0900 Subject: Here are changes made 1.) Use pywal for dunst colors. However, seems backgrounds are not changing. Perhaps only on OpenSuse? 2.) Deleted preconfigured style for dunst. to align with #1 changes 3.) Rewrite some scripts to align with PywalDunst. 4.) New script created for Dunst-Pywal called PywalDunst.sh 5.) Random wallpaper auto change is not increased timing to change every 15 mins 6.) Some scripts are re-written --- config/hypr/scripts/DarkLight.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'config/hypr/scripts/DarkLight.sh') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 53e1c7d5..b734abc3 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -4,12 +4,11 @@ set -x wallpaper_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers" hypr_config_path="$HOME/.config/hypr" waybar_config="$HOME/.config/waybar" -dunst_config="$HOME/.config/dunst" +SCRIPTSDIR="$HOME/.config/hypr/scripts" dark_rofi_pywal="$HOME/.cache/wal/colors-rofi-dark.rasi" light_rofi_pywal="$HOME/.cache/wal/colors-rofi-light.rasi" - # Tokyo Night light_gtk_theme="Tokyonight-Light-B" dark_gtk_theme="Tokyonight-Dark-B" @@ -23,7 +22,7 @@ swww query || swww init # Set swww options swww="swww img" -effect="--transition-bezier .43,1.19,1,.4 --transition-fps 60 --transition-type grow --transition-pos 0.925,0.977 --transition-duration 2" +effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type random --transition-pos 0.925,0.977 --transition-duration 2" # Define functions for notifying user and updating symlinks notify_user() { @@ -41,8 +40,6 @@ fi path_param=$(echo $next_mode | sed 's/.*/\u&/') notify_user "$next_mode" -#ln -sf "${waybar_config}/style/style-pywal.css" "${waybar_config}/style.css" -ln -sf "${dunst_config}/styles/dunstrc-${next_mode}" "${dunst_config}/dunstrc" # Symlink for rofi theme if [ "$next_mode" = "dark" ]; then @@ -71,6 +68,8 @@ $swww "${next_wallpaper}" $effect echo "$next_mode" > ~/.cache/.wallpaper_mode echo "$next_wallpaper" > ~/.cache/.current_wallpaper -exec ~/.config/hypr/scripts/PywalSwww.sh & +${SCRIPTSDIR}/PywalSwww.sh & sleep 2 -exec ~/.config/hypr/scripts/Refresh.sh & \ No newline at end of file +${SCRIPTSDIR}/Refresh.sh & +sleep 1 +${SCRIPTSDIR}/PywalDunst.sh \ No newline at end of file -- cgit v1.2.3 From da34f03bab6b200c699be2a9b3aaf727d1c87a2a Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 27 Nov 2023 13:27:28 +0900 Subject: updated dunts and Dark Light script --- config/dunst/dunstrc | 14 +++++++------- config/dunst/images/bell.png | Bin 0 -> 51752 bytes config/dunst/images/notification.png | Bin 159081 -> 0 bytes config/dunst/images/notification2.png | Bin 275942 -> 0 bytes config/dunst/images/notification3.png | Bin 250334 -> 0 bytes config/dunst/images/notification4.png | Bin 18432 -> 0 bytes config/dunst/reload | 13 ------------- config/hypr/scripts/DarkLight.sh | 6 ++++-- 8 files changed, 11 insertions(+), 22 deletions(-) create mode 100644 config/dunst/images/bell.png delete mode 100644 config/dunst/images/notification.png delete mode 100644 config/dunst/images/notification2.png delete mode 100644 config/dunst/images/notification3.png delete mode 100755 config/dunst/images/notification4.png delete mode 100755 config/dunst/reload (limited to 'config/hypr/scripts/DarkLight.sh') diff --git a/config/dunst/dunstrc b/config/dunst/dunstrc index 9f054293..c1f4e403 100755 --- a/config/dunst/dunstrc +++ b/config/dunst/dunstrc @@ -67,10 +67,10 @@ # Defines width in pixels of frame around the notification window. # Set to 0 to disable. - frame_width = 3 + frame_width = 2 # Defines color of the frame around the notification window. - frame_color = "#158E15" + frame_color = "#7F8153" # Define a color for the separator. # possible values are: @@ -283,17 +283,17 @@ # Otherwise the "#" and following would be interpreted as a comment. timeout = 2 # Icon for notifications with low urgency, uncomment to enable - icon = ~/.config/hypr/dunst/images/notification2.png + icon = $HOME/.config/dunst/images/bell.png [urgency_normal] timeout = 5 # Icon for notifications with normal urgency, uncomment to enable - icon = ~/.config/hypr/dunst/images/notification2.png + icon = $HOME/.config/dunst/images/bell.png [urgency_critical] timeout = 0 # Icon for notifications with critical urgency, uncomment to enable - icon = ~/.config/hypr/dunst/images/notification2.png + icon = $HOME/.config/dunst/images/bell.png # Every section that isn't one of the above is interpreted as a rules to # override settings for certain messages. @@ -310,8 +310,8 @@ # summary # # and you can override the - background = "#0C0C0C" - foreground = "#80ef80" + background = "#080A10" + foreground = "#f1f1bc" # format # frame_color # fullscreen diff --git a/config/dunst/images/bell.png b/config/dunst/images/bell.png new file mode 100644 index 00000000..d9fea964 Binary files /dev/null and b/config/dunst/images/bell.png differ diff --git a/config/dunst/images/notification.png b/config/dunst/images/notification.png deleted file mode 100644 index 48f6e3cc..00000000 Binary files a/config/dunst/images/notification.png and /dev/null differ diff --git a/config/dunst/images/notification2.png b/config/dunst/images/notification2.png deleted file mode 100644 index 557777d3..00000000 Binary files a/config/dunst/images/notification2.png and /dev/null differ diff --git a/config/dunst/images/notification3.png b/config/dunst/images/notification3.png deleted file mode 100644 index 40303e2f..00000000 Binary files a/config/dunst/images/notification3.png and /dev/null differ diff --git a/config/dunst/images/notification4.png b/config/dunst/images/notification4.png deleted file mode 100755 index 4f3a210c..00000000 Binary files a/config/dunst/images/notification4.png and /dev/null differ diff --git a/config/dunst/reload b/config/dunst/reload deleted file mode 100755 index 9e8ee076..00000000 --- a/config/dunst/reload +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -pkill dunst -dunst -config ~/.config/dunst/dunstrc & - -notify-send -u critical "Test message: critical test 1" -notify-send -u normal "Test message: normal test 2" -notify-send -u low "Test message: low test 3" -notify-send -u critical "Test message: critical test 4" -notify-send -u normal "Test message: normal test 5" -notify-send -u low "Test message: low test 6" -notify-send -u critical "Test message: critical test 7" -notify-send -u normal "Test message: normal test 8" -notify-send -u low "Test message: low test 9" diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index b734abc3..e91f07a2 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -5,6 +5,8 @@ wallpaper_path="$HOME/Pictures/wallpapers/Dynamic-Wallpapers" hypr_config_path="$HOME/.config/hypr" waybar_config="$HOME/.config/waybar" SCRIPTSDIR="$HOME/.config/hypr/scripts" +dunst_notif="$HOME/.config/dunst/images/bell.png" + dark_rofi_pywal="$HOME/.cache/wal/colors-rofi-dark.rasi" light_rofi_pywal="$HOME/.cache/wal/colors-rofi-light.rasi" @@ -24,9 +26,9 @@ swww query || swww init swww="swww img" effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type random --transition-pos 0.925,0.977 --transition-duration 2" -# Define functions for notifying user and updating symlinks + notify_user() { - notify-send -h string:x-canonical-private-synchronous:sys-notify -u normal "Switching to $1 mode" + dunstify -u normal -i "$dunst_notif" "Switching to $1 mode" } # Determine the current wallpaper mode by checking a configuration file -- cgit v1.2.3 From f981d4fbbfb5f853b491a062e6e9017669102115 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 27 Nov 2023 13:46:04 +0900 Subject: updated dark light script --- config/hypr/scripts/DarkLight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/scripts/DarkLight.sh') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index e91f07a2..3c32778d 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -24,7 +24,7 @@ swww query || swww init # Set swww options swww="swww img" -effect="--transition-bezier .43,1.19,1,.4 --transition-fps 30 --transition-type random --transition-pos 0.925,0.977 --transition-duration 2" +effect="--transition-bezier .43,1.19,1,.4 --transition-fps 60 --transition-type grow --transition-pos 0.925,0.977 --transition-duration 2" notify_user() { -- cgit v1.2.3