Add support for terminal window swallowing

This commit is contained in:
ItsDrike 2021-11-14 20:54:15 +01:00
parent 900f5f2706
commit 2446789d25
No known key found for this signature in database
GPG key ID: FB8CA11A2CF3A843
3 changed files with 9 additions and 1 deletions

View file

@ -12,7 +12,7 @@ set scrolloff 5
cmd open ${{
case $(file --mime-type "$f" -bL) in
text/*|application/json) $EDITOR "$f";;
*) xdg-open "$f" ;;
*) devour xdg-open "$f" ;;
esac
}}

View file

@ -103,6 +103,13 @@ alias mergepdf='gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=_merged.p
alias encrypt='gpg -c --no-symkey-cache --cipher-algo AES256' # Encrypt file with AES256 symetric encryption
alias decrypt='gpg' # For the sake of completeness, include decrypt command to the above, though it's only just gpg alias
# Terminal window swallowing for blocking programs (devour)
alias xdg-open='devour xdg-open'
alias mpv='devour mpv'
alias nomacs='devour nomacs'
alias pcmanfm='devour pcmanfm'
alias spotify='devour spotify'
# Regular expressions
alias reg_email='echo "[a-Z0-9._%-]+@[a-Z0-9.-]+\.[a-Z]{2,10}"'
alias reg_mac='echo "([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}"'

View file

@ -134,6 +134,7 @@ aur:
# WM/Xorg
- picom-git # Git version of picom compositor
- devour # WM agnostic window swallowing for terminals
# GUI
- spotify # Online music player