aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/UserScripts')
-rwxr-xr-xconfig/hypr/UserScripts/QuickEdit.sh23
-rwxr-xr-xconfig/hypr/UserScripts/Sunset.sh5
-rwxr-xr-xconfig/hypr/UserScripts/Wallpaper.sh24
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperAutoChange.sh37
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperRandom.sh47
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperSelect.sh12
6 files changed, 80 insertions, 68 deletions
diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh
index 9c7cdffc..163101e2 100755
--- a/config/hypr/UserScripts/QuickEdit.sh
+++ b/config/hypr/UserScripts/QuickEdit.sh
@@ -1,7 +1,8 @@
#!/bin/bash
+# Rofi menu for Quick Edit / View of Settings (SUPER E)
-defaultDir="$HOME/.config/hypr/configs"
-userDir="$HOME/.config/hypr/UserConfigs"
+configs="$HOME/.config/hypr/configs"
+UserConfigs="$HOME/.config/hypr/UserConfigs"
menu(){
printf "1. view Env-variables\n"
@@ -19,31 +20,31 @@ main() {
choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1)
case $choice in
1)
- kitty -e nano "$userDir/ENVariables.conf"
+ kitty -e nano "$UserConfigs/ENVariables.conf"
;;
2)
- kitty -e nano "$userDir/WindowRules.conf"
+ kitty -e nano "$UserConfigs/WindowRules.conf"
;;
3)
- kitty -e nano "$userDir/Startup_Apps.conf"
+ kitty -e nano "$UserConfigs/Startup_Apps.conf"
;;
4)
- kitty -e nano "$userDir/UserKeybinds.conf"
+ kitty -e nano "$UserConfigs/UserKeybinds.conf"
;;
5)
- kitty -e nano "$userDir/Monitors.conf"
+ kitty -e nano "$UserConfigs/Monitors.conf"
;;
6)
- kitty -e nano "$userDir/Laptops.conf"
+ kitty -e nano "$UserConfigs/Laptops.conf"
;;
7)
- kitty -e nano "$userDir/UserSettings.conf"
+ kitty -e nano "$UserConfigs/UserSettings.conf"
;;
8)
- kitty -e nano "$defaultDir/Settings.conf"
+ kitty -e nano "$configs/Settings.conf"
;;
9)
- kitty -e nano "$defaultDir/Keybinds.conf"
+ kitty -e nano "$configs/Keybinds.conf"
;;
*)
;;
diff --git a/config/hypr/UserScripts/Sunset.sh b/config/hypr/UserScripts/Sunset.sh
index 96c27c5b..50e386d1 100755
--- a/config/hypr/UserScripts/Sunset.sh
+++ b/config/hypr/UserScripts/Sunset.sh
@@ -1,2 +1,7 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+
+# wlsunset project page
+# https://sr.ht/~kennylevinsen/wlsunset/
+
wlsunset -t 4000 -T 6500 -d 900 -S 07:00 -s 19:00 \ No newline at end of file
diff --git a/config/hypr/UserScripts/Wallpaper.sh b/config/hypr/UserScripts/Wallpaper.sh
deleted file mode 100755
index d75d2eab..00000000
--- a/config/hypr/UserScripts/Wallpaper.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-DIR="$HOME/Pictures/wallpapers"
-SCRIPTSDIR="$HOME/.config/hypr/scripts"
-
-PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
-RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
-
-
-# Transition config
-FPS=60
-TYPE="random"
-DURATION=1
-BEZIER=".43,1.19,1,.4"
-SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER"
-
-
-swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS
-
-
-${SCRIPTSDIR}/PywalSwww.sh
-sleep 1
-${SCRIPTSDIR}/Refresh.sh
-
diff --git a/config/hypr/UserScripts/WallpaperAutoChange.sh b/config/hypr/UserScripts/WallpaperAutoChange.sh
new file mode 100755
index 00000000..56f2ee05
--- /dev/null
+++ b/config/hypr/UserScripts/WallpaperAutoChange.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# source https://wiki.archlinux.org/title/Hyprland#Using_a_script_to_change_wallpaper_every_X_minutes
+
+# This script will randomly go through the files of a directory, setting it
+# up as the wallpaper at regular intervals
+#
+# NOTE: this script uses bash (not POSIX shell) for the RANDOM variable
+
+pywal_refresh=$HOME/.config/hypr/scripts/RefreshNoWaybar.sh
+
+if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then
+ echo "Usage:
+ $0 <dir containing images>"
+ exit 1
+fi
+
+# Edit below to control the images transition
+export SWWW_TRANSITION_FPS=60
+export SWWW_TRANSITION_TYPE=simple
+
+# This controls (in seconds) when to switch to the next image
+INTERVAL=1800
+
+while true; do
+ find "$1" \
+ | while read -r img; do
+ echo "$((RANDOM % 1000)):$img"
+ done \
+ | sort -n | cut -d':' -f2- \
+ | while read -r img; do
+ swww img "$img"
+ $pywal_refresh
+ sleep $INTERVAL
+
+ done
+done
diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh
index 13bd2995..f8cc54f9 100755
--- a/config/hypr/UserScripts/WallpaperRandom.sh
+++ b/config/hypr/UserScripts/WallpaperRandom.sh
@@ -1,35 +1,26 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# Script for Random Wallpaper ( CTRL ALT W)
-# This script will randomly go through the files of a directory, setting it
-# up as the wallpaper at regular intervals
-#
-# NOTE: this script uses bash (not POSIX shell) for the RANDOM variable
+wallDIR="$HOME/Pictures/wallpapers"
+scriptsDir="$HOME/.config/hypr/scripts"
-pywal_refresh=$HOME/.config/hypr/scripts/RefreshNoWaybar.sh
+PICS=($(find ${wallDIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
+RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
-if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then
- echo "Usage:
- $0 <dir containing images>"
- exit 1
-fi
-# Edit below to control the images transition
-export SWWW_TRANSITION_FPS=60
-export SWWW_TRANSITION_TYPE=simple
+# Transition config
+FPS=60
+TYPE="random"
+DURATION=1
+BEZIER=".43,1.19,1,.4"
+SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER"
-# This controls (in seconds) when to switch to the next image
-INTERVAL=1800
-while true; do
- find "$1" \
- | while read -r img; do
- echo "$((RANDOM % 1000)):$img"
- done \
- | sort -n | cut -d':' -f2- \
- | while read -r img; do
- swww img "$img"
- $pywal_refresh
- sleep $INTERVAL
-
- done
-done
+swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS
+
+
+${scriptsDir}/PywalSwww.sh
+sleep 1
+${scriptsDir}/Refresh.sh
+
diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh
index 5c3f2b94..663fb540 100755
--- a/config/hypr/UserScripts/WallpaperSelect.sh
+++ b/config/hypr/UserScripts/WallpaperSelect.sh
@@ -1,9 +1,11 @@
#!/bin/bash
+## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# This script for selecting wallpapers (SUPER W)
SCRIPTSDIR="$HOME/.config/hypr/scripts"
# WALLPAPERS PATH
-DIR="$HOME/Pictures/wallpapers"
+wallDIR="$HOME/Pictures/wallpapers"
# Transition config
FPS=30
@@ -18,7 +20,7 @@ if pidof swaybg > /dev/null; then
fi
# Retrieve image files
-PICS=($(ls "${DIR}" | grep -E ".jpg$|.jpeg$|.png$|.gif$"))
+PICS=($(ls "${wallDIR}" | grep -E ".jpg$|.jpeg$|.png$|.gif$"))
RANDOM_PIC="${PICS[$((RANDOM % ${#PICS[@]}))]}"
RANDOM_PIC_NAME="${#PICS[@]}. random"
@@ -29,7 +31,7 @@ menu() {
for i in "${!PICS[@]}"; do
# Displaying .gif to indicate animated images
if [[ -z $(echo "${PICS[$i]}" | grep .gif$) ]]; then
- printf "$(echo "${PICS[$i]}" | cut -d. -f1)\x00icon\x1f${DIR}/${PICS[$i]}\n"
+ printf "$(echo "${PICS[$i]}" | cut -d. -f1)\x00icon\x1f${wallDIR}/${PICS[$i]}\n"
else
printf "${PICS[$i]}\n"
fi
@@ -50,7 +52,7 @@ main() {
# Random choice case
if [ "$choice" = "$RANDOM_PIC_NAME" ]; then
- swww img "${DIR}/${RANDOM_PIC}" $SWWW_PARAMS
+ swww img "${wallDIR}/${RANDOM_PIC}" $SWWW_PARAMS
exit 0
fi
@@ -65,7 +67,7 @@ main() {
done
if [[ $pic_index -ne -1 ]]; then
- swww img "${DIR}/${PICS[$pic_index]}" $SWWW_PARAMS
+ swww img "${wallDIR}/${PICS[$pic_index]}" $SWWW_PARAMS
else
echo "Image not found."
exit 1
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage