diff options
Diffstat (limited to 'config/hypr/scripts')
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 2 | ||||
| -rwxr-xr-x | config/hypr/scripts/LidSwitch.sh | 9 | ||||
| -rwxr-xr-x | config/hypr/scripts/Wallpaper.sh | 44 |
3 files changed, 3 insertions, 52 deletions
diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 7cc061f1..53e1c7d5 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -42,7 +42,7 @@ 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}/styles/dunstrc" +ln -sf "${dunst_config}/styles/dunstrc-${next_mode}" "${dunst_config}/dunstrc" # Symlink for rofi theme if [ "$next_mode" = "dark" ]; then diff --git a/config/hypr/scripts/LidSwitch.sh b/config/hypr/scripts/LidSwitch.sh deleted file mode 100755 index 76bce1f2..00000000 --- a/config/hypr/scripts/LidSwitch.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if grep open /proc/acpi/button/lid/LID/state; then - hyprctl keyword monitor "eDP-1, preferred, auto, 1" -else - if [[ `hyprctl monitors | grep "Monitor" | wc -l` != 1 ]]; then - hyprctl keyword monitor "eDP-1, disable" - fi -fi
\ No newline at end of file diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh index 20c367cc..d5ea4645 100755 --- a/config/hypr/scripts/Wallpaper.sh +++ b/config/hypr/scripts/Wallpaper.sh @@ -4,48 +4,8 @@ DIR=$HOME/Pictures/wallpapers/ PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \))) RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]} -change_swaybg(){ - pkill swww - pkill swaybg - swaybg -m fill -i ${RANDOMPICS} -} - -change_swww(){ - pkill swaybg - swww query || swww init - swww img ${RANDOMPICS} --transition-fps 30 --transition-type any --transition-duration 3 -} - -change_current(){ - if pidof swaybg >/dev/null; then - change_swaybg - else - change_swww - fi -} - -switch(){ - if pidof swaybg >/dev/null; then - change_swww - else - change_swaybg - fi -} - -case "$1" in - "swaybg") - change_swaybg - ;; - "swww") - change_swww - ;; - "s") - switch - ;; - *) - change_current - ;; -esac +swww query || swww init +swww img ${RANDOMPICS} --transition-fps 30 --transition-type any --transition-duration 3 exec $HOME/.config/hypr/scripts/PywalSwww.sh & sleep 1 |
