moved desktop scripts to nix package
This commit is contained in:
parent
a9323f4aec
commit
83e63b5d83
@ -1 +0,0 @@
|
||||
../share/scripts/macho.sh
|
@ -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)"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user