moved desktop scripts to nix package

This commit is contained in:
Niklas Kapelle 2024-09-08 21:53:29 +02:00
parent a9323f4aec
commit 83e63b5d83
Signed by: niklas
GPG Key ID: 4EB651B36D841D16
6 changed files with 0 additions and 80 deletions

View File

@ -1 +0,0 @@
../share/scripts/macho.sh

View File

@ -1,20 +0,0 @@
#!/usr/bin/env sh
# Make a screenshots and save it in ~/pictures/screenshots
set -e
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
SCREENSHOT_DIR="$HOME/pictures/screenshots"
screenshotFile=$($SCRIPTPATH/take-screenshot.sh)
mkdir -p "$SCREENSHOT_DIR"
mv "$screenshotFile" "$SCREENSHOT_DIR"
rm -rf "$(dirname $screenshotFile)"
printf "%s\n" "$SCREENSHOT_DIR/$(basename $screenshotFile)"

View File

@ -1,10 +0,0 @@
#!/usr/bin/env sh
# required packages:
# - sxiv
SELECT=$(sxiv -N "floatme" -t -o ~/pictures/wallpapers )
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
$SCRIPTPATH/set-bg.sh "$SELECT"

View File

@ -1,18 +0,0 @@
#!/usr/bin/env sh
set -e
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
[ -z "$1" ] && exit 0
LAST_BG_LOCATION="$XDG_CACHE_HOME/last-bg"
#echo "$(realpath $1)" > $LAST_BG_LOCATION
ln -sf $1 $LAST_BG_LOCATION
swww img $1
$SCRIPTPATH/wal.sh "$1"

View File

@ -1,16 +0,0 @@
#!/usr/bin/env sh
# Make a selection of the screen and take a screenshot. Save it to tmp and print its path.
set -e
TMPDIR=$(mktemp -d)
GRIM_DEFAULT_DIR="$TMPDIR" grim -g "$(slurp)"
filename="$(date +"%d-%m-%y-%H-%M-%Z").png"
mv $TMPDIR/* "$TMPDIR/$filename"
printf "%s\n" "$TMPDIR/$filename"

View File

@ -1,15 +0,0 @@
#!/usr/bin/env sh
set -e
IMAGE="$1"
if [ -z $IMAGE ]; then
echo "Provide a image"
exit 1
fi
wal -i "$IMAGE" -n
killall -SIGUSR2 waybar