Organize scripts

This commit is contained in:
2022-03-01 16:07:01 +03:00
parent 95d8d8e1c4
commit 5630243ef1
11 changed files with 78 additions and 31 deletions

15
scripts/copy2clipboard Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ -z "$1" ]
then
file=$(find . -maxdepth 1 -type f | cut -c 3- | rofi -i -dmenu -p "Select file to copy its contents")
else
file=$1
fi
if [ -z "$file" ]; then
exit
fi
cat $file | xclip -selection c
notify-send "Contents of the '$file' is copied to clipboard!"