bin: fix small issues

This commit is contained in:
xerus2000 2020-12-07 21:53:41 +01:00
parent dadda9725f
commit 5640144127
3 changed files with 6 additions and 3 deletions

View File

@ -3,9 +3,9 @@
for last; do true; done
last=${last:-.}
file "$last" | grep -v --color=never directory
stat -c 'Permissions: %A, Created: %.10w, Modified %.10y, Size: %s' "${@:-$last}"
stat -c 'Permissions: %A, Created: %.10w, Modified %.10y, Size: %s' "$last"
case "$(file --dereference --mime "$last")" in
*inode/directory*) ls -l --color=auto --human-readable --group-directories-first --file-type --dereference-command-line --almost-all "$@";;
*inode/directory*) ls -l --color=always --human-readable --group-directories-first --file-type --dereference-command-line --almost-all "$@";;
*binary) ;;
*) $(test -f "$last" -a ! -r "$last") bat --style header "$@";;
esac

View File

@ -1,2 +1,3 @@
#!/bin/sh
killall -q vlc; sleep 1; vlc --qt-start-minimized --loop --random "$@" >/dev/null 2>&1 &
killall -q vlc
vlc --no-qt-error-dialogs --qt-start-minimized --qt-notification 0 --loop --random "$@" >/dev/null 2>&1 &

2
.local/bin/x Executable file
View File

@ -0,0 +1,2 @@
startx
# sudo /usr/bin/prime-switch