From 6eef1bfdfaa697213201e3a0ad8fef8e5f65c67c Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 16 May 2025 01:47:44 +0200 Subject: [PATCH] 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