From c5a17009b9bdbc2abdcd2ea5a586d6d6404a4405 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sun, 25 Aug 2024 20:50:56 +0530 Subject: .scripts: Adding current wallp script and 4chget-correction in savepath --- .scripts/4chget | 2 +- .scripts/currwal | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 .scripts/currwal diff --git a/.scripts/4chget b/.scripts/4chget index 1317824..b4a7446 100755 --- a/.scripts/4chget +++ b/.scripts/4chget @@ -1,6 +1,6 @@ #!/bin/bash -rootpapesdir="$HOME/pix/wallpaper/4chget" +rootpapesdir="$HOME/pix/Wallpaper/4chget" [ -d "$rootpapesdir" ] || mkdir "$rootpapesdir" echo "Welcome to 4chan web/image scrapping script" diff --git a/.scripts/currwal b/.scripts/currwal new file mode 100755 index 0000000..f387be4 --- /dev/null +++ b/.scripts/currwal @@ -0,0 +1,7 @@ +#!/bin/bash + +currwallp=$(wpaperctl get-wallpaper eDP-1) + +echo $currwallp + +[[ "$1" == "-d" ]] && trash-put "$currwallp" && notify-send "Wallpaper sent to Trash" "$currwallp was sent to Trash" -- cgit v1.2.3