From 2446789d25234634e058b3a382751d7536558f81 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 14 Nov 2021 20:54:15 +0100 Subject: [PATCH] Add support for terminal window swallowing --- home/.config/lf/lfrc | 2 +- home/.config/shell/aliases | 7 +++++++ packages.yaml | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/home/.config/lf/lfrc b/home/.config/lf/lfrc index 572914e..8857c5e 100644 --- a/home/.config/lf/lfrc +++ b/home/.config/lf/lfrc @@ -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 }} diff --git a/home/.config/shell/aliases b/home/.config/shell/aliases index 02b983c..da5dbae 100755 --- a/home/.config/shell/aliases +++ b/home/.config/shell/aliases @@ -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}"' diff --git a/packages.yaml b/packages.yaml index 566b81c..e2c199c 100644 --- a/packages.yaml +++ b/packages.yaml @@ -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