Moved bin overrides
This commit is contained in:
parent
71ea302fdf
commit
78605ddd4e
3 changed files with 1 additions and 1 deletions
32
.local/bin/overrides/lf
Executable file
32
.local/bin/overrides/lf
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/bin/sh
|
||||
# Ueberzugpp script for lf file explorer
|
||||
|
||||
set -e
|
||||
|
||||
UB_PID=0
|
||||
UB_SOCKET=""
|
||||
|
||||
case "$(uname -a)" in
|
||||
*Darwin*) UEBERZUG_TMP_DIR="$TMPDIR" ;;
|
||||
*) UEBERZUG_TMP_DIR="/tmp" ;;
|
||||
esac
|
||||
|
||||
cleanup() {
|
||||
exec 3>&-
|
||||
ueberzugpp cmd -s "$UB_SOCKET" -a exit
|
||||
}
|
||||
|
||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||
/usr/bin/lf "$@"
|
||||
else
|
||||
[ ! -d "$HOME/.cache/lf" ] && mkdir -p "$HOME/.cache/lf"
|
||||
UB_PID_FILE="$UEBERZUG_TMP_DIR/.$(uuidgen)"
|
||||
ueberzugpp layer --silent --no-stdin --use-escape-codes --pid-file "$UB_PID_FILE"
|
||||
UB_PID=$(cat "$UB_PID_FILE")
|
||||
rm "$UB_PID_FILE"
|
||||
UB_SOCKET="$UEBERZUG_TMP_DIR/ueberzugpp-${UB_PID}.socket"
|
||||
export UB_PID UB_SOCKET
|
||||
trap cleanup HUP INT QUIT TERM EXIT
|
||||
/usr/bin/lf "$@" 3>&-
|
||||
fi
|
||||
|
||||
9
.local/bin/overrides/passmenu
Executable file
9
.local/bin/overrides/passmenu
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
# This script exists because I want to use dmenu instead of dmenu-wl, which passmenu
|
||||
# defaults to if it sees that your $WAYLAND_DISPLAY variable is set. I also passed
|
||||
# $PINENTRY_USER_DATA which will eventually reach the pinentry-wrapper script and launch
|
||||
# a graphical pinentry as opposed to my curses default, since launching pinentry-curses
|
||||
# outside of a terminal just breaks everything.
|
||||
|
||||
PINENTRY_USER_DATA=rofi WAYLAND_DISPLAY= /usr/bin/passmenu
|
||||
|
||||
7
.local/bin/overrides/zathura
Executable file
7
.local/bin/overrides/zathura
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/sh
|
||||
# This was created because the x backend of zathura did not want to listen
|
||||
# to the $DISPLAY environment variable and refused to open inside of my VcXsrv x
|
||||
# server instance. I could not alias this in my .zshrc either because when zathura
|
||||
# is launched from dmenu or from vimtex, it would not follow the alias.
|
||||
GDK_BACKEND=x11 /usr/bin/zathura "$@"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue