From 6eef1bfdfaa697213201e3a0ad8fef8e5f65c67c Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 16 May 2025 01:47:44 +0200 Subject: [PATCH 1/2] chore: remove old scripts and swaybg remains; fully switch to swww now. --- modules/home/hyprland/hyprland.nix | 3 +-- modules/home/scripts/scripts/lofi.sh | 7 ------- modules/home/scripts/scripts/wall-change.sh | 9 --------- modules/home/scripts/scripts/wallpaper-picker.sh | 12 ------------ 4 files changed, 1 insertion(+), 30 deletions(-) delete mode 100755 modules/home/scripts/scripts/lofi.sh delete mode 100755 modules/home/scripts/scripts/wall-change.sh delete mode 100755 modules/home/scripts/scripts/wallpaper-picker.sh diff --git a/modules/home/hyprland/hyprland.nix b/modules/home/hyprland/hyprland.nix index 5c98987..ed959a4 100644 --- a/modules/home/hyprland/hyprland.nix +++ b/modules/home/hyprland/hyprland.nix @@ -1,8 +1,7 @@ { inputs, pkgs, ... }: { home.packages = with pkgs; [ - # swww - swaybg + swww inputs.hypr-contrib.packages.${pkgs.system}.grimblast hyprpicker grim diff --git a/modules/home/scripts/scripts/lofi.sh b/modules/home/scripts/scripts/lofi.sh deleted file mode 100755 index 76cdc8f..0000000 --- a/modules/home/scripts/scripts/lofi.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -if (ps aux | grep mpv | grep -v grep > /dev/null) then - pkill mpv -else - runbg mpv --no-video https://www.youtube.com/live/jfKfPfyJRdk?si=OF0HKrYFFj33BzMo -fi \ No newline at end of file diff --git a/modules/home/scripts/scripts/wall-change.sh b/modules/home/scripts/scripts/wall-change.sh deleted file mode 100755 index 8ec034c..0000000 --- a/modules/home/scripts/scripts/wall-change.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -PIDS=$(pgrep -f "swaybg") - -swaybg -m fill -i $1 & - -if [ -n "$PIDS" ]; then - echo "$PIDS" | xargs kill -fi diff --git a/modules/home/scripts/scripts/wallpaper-picker.sh b/modules/home/scripts/scripts/wallpaper-picker.sh deleted file mode 100755 index 899ad1a..0000000 --- a/modules/home/scripts/scripts/wallpaper-picker.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -wallpaper_path=$HOME/Pictures/wallpapers -wallpapers_folder=$HOME/Pictures/wallpapers/others -wallpaper_name="$(ls $wallpapers_folder | bemenu -l 15)" -if [[ -f $wallpapers_folder/$wallpaper_name ]]; then - find ~/Pictures/wallpapers -maxdepth 1 -type f -delete - cp $wallpapers_folder/$wallpaper_name $wallpaper_path/$wallpaper_name - wall-change $wallpaper_path/$wallpaper_name -else - exit 1 -fi From 50a5beb8b59805eba3f305f3b631ac7842bd764d Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 16 May 2025 01:48:26 +0200 Subject: [PATCH 2/2] fix: update information --- modules/home/scripts/scripts/notes.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/home/scripts/scripts/notes.sh b/modules/home/scripts/scripts/notes.sh index 7d4b3cf..1644df1 100644 --- a/modules/home/scripts/scripts/notes.sh +++ b/modules/home/scripts/scripts/notes.sh @@ -1,7 +1,7 @@ #!/bin/sh # MIT license -# Ahwx https://ahwx.org - 2024 +# liv < liv at liv dot town > https://liv.town - 2024 # # Dependencies: find/grep/bemenu/ping/git/ @@ -14,9 +14,9 @@ echo "Check if connected to internet and pull changes from Git" ping -c1 github.com >/dev/null && notify-send "$(git pull)" # Pull most recent changes, be sure to not create conficts... if [ "$CHOSEN" ]; then - kitty -e nvim "$CHOSEN" # Finally open chosen note + kitty -e nvim "$CHOSEN" # Finally open chosen note - git add "$CHOSEN" && git commit -m "chore: updates (auto)" && git push && notify-send "Changes pushed" + git add "$CHOSEN" && git commit -m "chore: updates (auto)" && git push && notify-send "Changes pushed" else - exit 1 + exit 1 fi