From d254d3d0b630c9eb1a52683d0993ceac86630754 Mon Sep 17 00:00:00 2001 From: "Ja.KooLit" Date: Wed, 13 Mar 2024 05:44:48 +0900 Subject: removal of extra # to align with new hyprlang requirement. Credit goes to @@Ryuuyas --- config/hypr/UserScripts/Sounds.sh | 2 +- config/hypr/UserScripts/WallpaperAutoChange.sh | 2 +- config/hypr/UserScripts/WallpaperRandom.sh | 2 +- config/hypr/UserScripts/WallpaperSelect.sh | 2 +- config/hypr/UserScripts/Weather.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserScripts/Sounds.sh b/config/hypr/UserScripts/Sounds.sh index 0d2bfff7..7c9100d5 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. 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..1737ddfc 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" diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index 663fb540..b833ec8c 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" 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 -- cgit v1.2.3 From cecd38e1ccc74b12332608ed115559ff899ef9dc Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Mon, 1 Apr 2024 11:06:32 +0530 Subject: PATCH: userscripts/Sounds.sh: for Non-FHS systems, use the runtime dir on Non-FHS systems like NixOS, the system sounds are located in /run/current-system/sw/share/sounds according to XDG specification This patch allows the script to fallback to this directory if the sound files are not found in /usr/share/sounds or $HOME/.local/share/sounds --- config/hypr/UserScripts/Sounds.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserScripts/Sounds.sh b/config/hypr/UserScripts/Sounds.sh index 7c9100d5..fb8a1f57 100755 --- a/config/hypr/UserScripts/Sounds.sh +++ b/config/hypr/UserScripts/Sounds.sh @@ -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 -- cgit v1.2.3 From 3677884067562f86f610381645121a762413bf31 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 20 Apr 2024 07:10:54 +0900 Subject: replace swww init with swww-daemon --format xrgb --- config/hypr/UserConfigs/Startup_Apps.conf | 4 ++-- config/hypr/UserScripts/WallpaperRandom.sh | 2 +- config/hypr/UserScripts/WallpaperSelect.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf index 8ccbfa63..da0e156d 100644 --- a/config/hypr/UserConfigs/Startup_Apps.conf +++ b/config/hypr/UserConfigs/Startup_Apps.conf @@ -9,7 +9,7 @@ $lock = $scriptsDir/LockScreen.sh $SwwwRandom = $UserScripts/WallpaperAutoChange.sh # wallpaper stuff / More wallpaper options below -exec-once = swww query || swww init +exec-once = swww query || swww-daemon --format xrgb exec-once = $SwwwRandom $wallDIR # random wallpaper switcher every 30 minutes # Startup @@ -42,7 +42,7 @@ exec-once = swayidle -w timeout 900 '$lock' #exec-once = swayidle -w timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' # Here are list of features available but disabled by default -#exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper +#exec-once = swww query || swww swww-daemon --format xrgb && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper #gnome polkit for nixos #exec-once = $scriptsDir/Polkit-NixOS.sh diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh index 1737ddfc..acc50471 100755 --- a/config/hypr/UserScripts/WallpaperRandom.sh +++ b/config/hypr/UserScripts/WallpaperRandom.sh @@ -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 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 b833ec8c..8aa9bdd8 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -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}) -- cgit v1.2.3 From e259d767b70efcb987dffb0a506ebed9e299dd44 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 21 Apr 2024 23:51:53 +0900 Subject: make rofi - Quick Edit case insensitive https://github.com/JaKooLit/Hyprland-Dots/pull/204 --- config/hypr/UserScripts/QuickEdit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/hypr/UserScripts') 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" -- cgit v1.2.3 From eac4771709d10476b7117a5360718329ff443019 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 22 Apr 2024 13:59:06 +0900 Subject: some bug fixes.. and changed default wallpaper --- config/hypr/UserConfigs/Startup_Apps.conf | 2 +- config/hypr/UserScripts/WallpaperRandom.sh | 2 +- config/hypr/initial-boot.sh | 4 ++-- wallpapers/Anime-girl.jpg | Bin 0 -> 4562339 bytes wallpapers/CuteCat.png | Bin 5090633 -> 0 bytes wallpapers/Dark_Nature.png | Bin 0 -> 3670706 bytes wallpapers/anime-girl-abyss.png | Bin 2931296 -> 0 bytes 7 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 wallpapers/Anime-girl.jpg delete mode 100644 wallpapers/CuteCat.png create mode 100644 wallpapers/Dark_Nature.png delete mode 100644 wallpapers/anime-girl-abyss.png (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserConfigs/Startup_Apps.conf b/config/hypr/UserConfigs/Startup_Apps.conf index da0e156d..6d047dce 100644 --- a/config/hypr/UserConfigs/Startup_Apps.conf +++ b/config/hypr/UserConfigs/Startup_Apps.conf @@ -42,7 +42,7 @@ exec-once = swayidle -w timeout 900 '$lock' #exec-once = swayidle -w timeout 900 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' # Here are list of features available but disabled by default -#exec-once = swww query || swww swww-daemon --format xrgb && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper +#exec-once = swww query || swww-daemon --format xrgb && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper #gnome polkit for nixos #exec-once = $scriptsDir/Polkit-NixOS.sh diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh index acc50471..52fc819d 100755 --- a/config/hypr/UserScripts/WallpaperRandom.sh +++ b/config/hypr/UserScripts/WallpaperRandom.sh @@ -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 swww-daemon --format xrgb && swww img ${RANDOMPICS} $SWWW_PARAMS +swww query || swww-daemon --format xrgb && swww img ${RANDOMPICS} $SWWW_PARAMS ${scriptsDir}/PywalSwww.sh diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh index b8a7cd83..15fae8c8 100755 --- a/config/hypr/initial-boot.sh +++ b/config/hypr/initial-boot.sh @@ -7,7 +7,7 @@ # Variables scriptsDir=$HOME/.config/hypr/scripts -wallpaper=$HOME/Pictures/wallpapers/Fantasy-Landscape.png +wallpaper=$HOME/Pictures/wallpapers/Dark_Nature.png waybar_style="$HOME/.config/waybar/style/[Pywal] Chroma Tally.css" kvantum_theme="Catppuccin-Mocha" @@ -20,7 +20,7 @@ if [ ! -f ~/.config/hypr/.initial_startup_done ]; then # Initialize pywal and wallpaper if [ -f "$wallpaper" ]; then wal -i $wallpaper -s -t > /dev/null - swww init && $swww $wallpaper $effect + swww-daemon --format xrgb && $swww $wallpaper $effect "$scriptsDir/PywalSwww.sh" > /dev/null 2>&1 & fi diff --git a/wallpapers/Anime-girl.jpg b/wallpapers/Anime-girl.jpg new file mode 100644 index 00000000..092fe7c2 Binary files /dev/null and b/wallpapers/Anime-girl.jpg differ diff --git a/wallpapers/CuteCat.png b/wallpapers/CuteCat.png deleted file mode 100644 index cb1ded53..00000000 Binary files a/wallpapers/CuteCat.png and /dev/null differ diff --git a/wallpapers/Dark_Nature.png b/wallpapers/Dark_Nature.png new file mode 100644 index 00000000..c133fcc4 Binary files /dev/null and b/wallpapers/Dark_Nature.png differ diff --git a/wallpapers/anime-girl-abyss.png b/wallpapers/anime-girl-abyss.png deleted file mode 100644 index 6871f0e7..00000000 Binary files a/wallpapers/anime-girl-abyss.png and /dev/null differ -- cgit v1.2.3