diff --git a/configs/hyprland/hypr/scripts/mpvpaper-random.sh b/configs/hyprland/hypr/scripts/mpvpaper-random.sh index 05081f4..d55e70d 100755 --- a/configs/hyprland/hypr/scripts/mpvpaper-random.sh +++ b/configs/hyprland/hypr/scripts/mpvpaper-random.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -source $HOME/.config/scripts/env.sh +source ~/.config/scripts/env.sh files=($(find "${LIVE_WALLPAPERS_DIR}" -type f)) diff --git a/configs/hyprland/hypr/scripts/presetup.sh b/configs/hyprland/hypr/scripts/presetup.sh deleted file mode 100755 index 838aa05..0000000 --- a/configs/hyprland/hypr/scripts/presetup.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -chmod +x *.sh diff --git a/configs/hyprland/hypr/scripts/rofi-launch.sh b/configs/hyprland/hypr/scripts/rofi-launch.sh index f7c9378..8c52f28 100755 --- a/configs/hyprland/hypr/scripts/rofi-launch.sh +++ b/configs/hyprland/hypr/scripts/rofi-launch.sh @@ -1,19 +1,15 @@ #!/usr/bin/env bash -export launcher_type="2" -export clipboard_type="1" -export wallpaper_type="1" -export powermenu_type="2" -export rofi_dir="$HOME/.config/rofi" +source ~/.config/scripts/env.sh pkill rofi case $1 in -d) exec $rofi_dir/launchers/type-$launcher_type/launcher.sh ;; -c) exec $rofi_dir/clipboard/type-$clipboard_type/clipboard.sh ;; -w) exec $rofi_dir/wallpaper/type-$wallpaper_type/wallpaper.sh ;; -p) exec $rofi_dir/applets/bin/powermenu.sh ;; -s) exec $rofi_dir/applets/bin/screenshot.sh ;; +d) exec $ROFI_DIR/launchers/type-$LAUNCHER_TYPE/launcher.sh ;; +c) exec $ROFI_DIR/clipboard/type-$CLIPBOARD_TYPE/clipboard.sh ;; +w) exec $ROFI_DIR/wallpaper/type-$WALLPAPER_TYPE/wallpaper.sh ;; +p) exec $ROFI_DIR/applets/bin/powermenu.sh ;; +s) exec $ROFI_DIR/applets/bin/screenshot.sh ;; h) echo -e "rofilaunch.sh [action]\nwhere action," echo "d : drun mode" diff --git a/configs/hyprland/hypr/scripts/swaybg-random.sh b/configs/hyprland/hypr/scripts/swaybg-random.sh index 7f6d97f..e3261a6 100755 --- a/configs/hyprland/hypr/scripts/swaybg-random.sh +++ b/configs/hyprland/hypr/scripts/swaybg-random.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -source $HOME/.config/scripts/env.sh +source ~/.config/scripts/env.sh files=($(find "${WALLPAPERS_DIR}" -type f)) diff --git a/configs/hyprland/hypr/scripts/swww-random.sh b/configs/hyprland/hypr/scripts/swww-random.sh index d1b36f1..199e5da 100755 --- a/configs/hyprland/hypr/scripts/swww-random.sh +++ b/configs/hyprland/hypr/scripts/swww-random.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -source $HOME/.config/scripts/env.sh +source ~/.config/scripts/env.sh files=($(find "${WALLPAPERS_DIR}" -type f)) diff --git a/configs/hyprland/hypr/scripts/wallpaper-daemon.sh b/configs/hyprland/hypr/scripts/wallpaper-daemon.sh index a941020..35dce5d 100755 --- a/configs/hyprland/hypr/scripts/wallpaper-daemon.sh +++ b/configs/hyprland/hypr/scripts/wallpaper-daemon.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -source $HOME/.config/scripts/env.sh +source ~/.config/scripts/env.sh if [ -z "$WALLPAPER_DAEMON" ]; then echo "WALLPAPER_DAEMON is not set in the environment." diff --git a/configs/hyprland/hypr/scripts/waybar-launch.sh b/configs/hyprland/hypr/scripts/waybar-launch.sh index c9e7284..45ac7b5 100755 --- a/configs/hyprland/hypr/scripts/waybar-launch.sh +++ b/configs/hyprland/hypr/scripts/waybar-launch.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -source $HOME/.config/scripts/env.sh +source ~/.config/scripts/env.sh if [[ ! -d "$WAYBAR_DIR" ]]; then echo "Error: Configuration directory or files missing!" diff --git a/configs/hyprland/hypr/scripts/waybar-toggle.sh b/configs/hyprland/hypr/scripts/waybar-toggle.sh index 20ce4e6..95b2d8f 100755 --- a/configs/hyprland/hypr/scripts/waybar-toggle.sh +++ b/configs/hyprland/hypr/scripts/waybar-toggle.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -source $HOME/.config/scripts/env.sh +source ~/.config/scripts/env.sh WAYBAR_PID=$(pgrep -x waybar) diff --git a/configs/hyprland/scripts/env.sh b/configs/hyprland/scripts/env.sh index 8e98e7d..cfb5769 100755 --- a/configs/hyprland/scripts/env.sh +++ b/configs/hyprland/scripts/env.sh @@ -13,3 +13,10 @@ export WALLPAPERS_DIR="$HOME/Wallpapers" export LIVE_WALLPAPERS_DIR="$HOME/Wallpapers/Live" export SWWW_FPS=144 export SWWW_DURATION=2 + +# rofi launcher : +export LAUNCHER_TYPE="2" +export CLIPBOARD_TYPE="1" +export WALLPAPER_TYPE="1" +export POWERMENU_TYPE="2" +export ROFI_DIR="$HOME/.config/rofi"