aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2024-04-24 15:20:42 +0900
committerGitHub <noreply@github.com>2024-04-24 15:20:42 +0900
commit6352d78fd42c021094842f63a3a08b31e9177955 (patch)
tree26bfe9901e36c204c2fe8434657c703780106b73 /config/hypr/UserScripts
parent8cd047fcde9dc62f80c2afde4dc9a9c8102f4775 (diff)
parente25a8a4f487ccb4f68682f4885262152ef955f39 (diff)
Merge branch 'development' into rofi
Diffstat (limited to 'config/hypr/UserScripts')
-rwxr-xr-xconfig/hypr/UserScripts/QuickEdit.sh2
-rwxr-xr-xconfig/hypr/UserScripts/Sounds.sh10
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperAutoChange.sh2
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperRandom.sh4
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperSelect.sh4
-rwxr-xr-xconfig/hypr/UserScripts/Weather.py2
6 files changed, 14 insertions, 10 deletions
diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh
index 163101e2..658d7b03 100755
--- a/config/hypr/UserScripts/QuickEdit.sh
+++ b/config/hypr/UserScripts/QuickEdit.sh
@@ -17,7 +17,7 @@ menu(){
}
main() {
- choice=$(menu | rofi -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1)
+ choice=$(menu | rofi -i -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1)
case $choice in
1)
kitty -e nano "$UserConfigs/ENVariables.conf"
diff --git a/config/hypr/UserScripts/Sounds.sh b/config/hypr/UserScripts/Sounds.sh
index 0d2bfff7..fb8a1f57 100755
--- a/config/hypr/UserScripts/Sounds.sh
+++ b/config/hypr/UserScripts/Sounds.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This script is used to play system sounds.
theme="freedesktop" # Set the theme for the system sounds.
@@ -31,8 +31,12 @@ else
fi
# Set the directory defaults for system sounds.
+if [ -d "/run/current-system/sw/share/sounds" ]; then
+ systemDIR="/run/current-system/sw/share/sounds" # NixOS
+else
+ systemDIR="/usr/share/sounds"
+fi
userDIR="$HOME/.local/share/sounds"
-systemDIR="/usr/share/sounds"
defaultTheme="freedesktop"
# Prefer the user's theme, but use the system's if it doesn't exist.
@@ -62,4 +66,4 @@ if ! test -f "$sound_file"; then
fi
fi
fi
-pw-play "$sound_file"
+pw-play "$sound_file" \ No newline at end of file
diff --git a/config/hypr/UserScripts/WallpaperAutoChange.sh b/config/hypr/UserScripts/WallpaperAutoChange.sh
index 56f2ee05..e52b7e90 100755
--- a/config/hypr/UserScripts/WallpaperAutoChange.sh
+++ b/config/hypr/UserScripts/WallpaperAutoChange.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# /* ---- 💫 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
diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh
index f8cc54f9..52fc819d 100755
--- a/config/hypr/UserScripts/WallpaperRandom.sh
+++ b/config/hypr/UserScripts/WallpaperRandom.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Script for Random Wallpaper ( CTRL ALT W)
wallDIR="$HOME/Pictures/wallpapers"
@@ -17,7 +17,7 @@ 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
+swww query || swww-daemon --format xrgb && swww img ${RANDOMPICS} $SWWW_PARAMS
${scriptsDir}/PywalSwww.sh
diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh
index 663fb540..8aa9bdd8 100755
--- a/config/hypr/UserScripts/WallpaperSelect.sh
+++ b/config/hypr/UserScripts/WallpaperSelect.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
+# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# This script for selecting wallpapers (SUPER W)
SCRIPTSDIR="$HOME/.config/hypr/scripts"
@@ -40,7 +40,7 @@ menu() {
printf "$RANDOM_PIC_NAME\n"
}
-swww query || swww init
+swww query || swww-daemon --format xrgb
main() {
choice=$(menu | ${rofi_command})
diff --git a/config/hypr/UserScripts/Weather.py b/config/hypr/UserScripts/Weather.py
index 154c1589..2b13a977 100755
--- a/config/hypr/UserScripts/Weather.py
+++ b/config/hypr/UserScripts/Weather.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# From https://raw.githubusercontent.com/rxyhn/dotfiles/main/home/rxyhn/modules/desktop/waybar/scripts/waybar-wttr.py
-## ensure to insert city inside ""
+# ensure to insert city inside ""
city = ""
import json
import requests
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage