New configuration based on xfce4 + bpswm. No more tint2

This commit is contained in:
2024-06-29 18:25:01 -06:00
parent e06469f47b
commit 72ae9f6ce7
40 changed files with 1560 additions and 252 deletions

32
scripts/f Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/sh
path=$1
if [ -z "$path" ]; then
path="."
fi
if [ -d "$path" ]; then
ls -lh --color=tty "$path"
else
if [ ! -f "$path" ]; then
echo "No such file: $path"
exit 0
fi
format="$(file -i "$path" | cut -d' ' -f2)"
format="${format%%/*}"
case "$format" in
"text")
batcat "$path" --paging=never
;;
"image")
kitty +kitten icat "$path"
;;
*)
xdg-open "$path"
esac
fi