aboutsummaryrefslogtreecommitdiff
path: root/rm.sh
blob: 59a07fc8443b2f6d71df6a696c93000a72b554ba (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Moves an element to a litter folder instead of permanently removing it

folder="$HOME/litter/"
[ -d "$folder" ] || mkdir "$folder"
for file in "$@"
do
	mv "$file" "$folder"
done
pkill -SIGRTMIN+14 i3blocks