diff --git a/modules/home/hyprland/hyprland.nix b/modules/home/hyprland/hyprland.nix index ed959a4..5c98987 100644 --- a/modules/home/hyprland/hyprland.nix +++ b/modules/home/hyprland/hyprland.nix @@ -1,7 +1,8 @@ { inputs, pkgs, ... }: { home.packages = with pkgs; [ - swww + # swww + swaybg 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 new file mode 100755 index 0000000..76cdc8f --- /dev/null +++ b/modules/home/scripts/scripts/lofi.sh @@ -0,0 +1,7 @@ +#!/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/notes.sh b/modules/home/scripts/scripts/notes.sh index 1644df1..7d4b3cf 100644 --- a/modules/home/scripts/scripts/notes.sh +++ b/modules/home/scripts/scripts/notes.sh @@ -1,7 +1,7 @@ #!/bin/sh # MIT license -# liv < liv at liv dot town > https://liv.town - 2024 +# Ahwx https://ahwx.org - 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 diff --git a/modules/home/scripts/scripts/wall-change.sh b/modules/home/scripts/scripts/wall-change.sh new file mode 100755 index 0000000..8ec034c --- /dev/null +++ b/modules/home/scripts/scripts/wall-change.sh @@ -0,0 +1,9 @@ +#!/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 new file mode 100755 index 0000000..899ad1a --- /dev/null +++ b/modules/home/scripts/scripts/wallpaper-picker.sh @@ -0,0 +1,12 @@ +#!/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