Move old config to old-dots branch

This commit is contained in:
2023-12-25 13:21:57 +03:00
commit 3dab77f779
119 changed files with 9623 additions and 0 deletions

21
scripts/cpyfile Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
if [ -z "$1" ]
then
files=( $(find . -maxdepth 1 -type f | cut -c 3- | rofi -i -dmenu -p "Select a file to copy") )
else
files=("$@")
fi
if [ -z "$files" ]; then
exit
fi
args=()
for arg in "${files[@]}"; do
fullpath=$(readlink -f $arg)
args+=("file://$fullpath")
done
printf '%s\n' "${args[@]}" | xclip -i -sel clipboard -t text/uri-list