Adding ranger wrapper to launch from bemenu easily

This commit is contained in:
Siina Mashek 2024-02-09 13:17:40 +02:00
parent 09435e3081
commit 1881510bb7

12
apsalar/ranger Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
# Launches ranger into its own terminal if
# not run from a terminal (like from bemenu)
if ! [[ -t 0 && -t 1 && -t 2 ]]; then
if [[ -n $DISPLAY ]]; then
kitty /usr/bin/ranger
fi
else
/usr/bin/ranger
fi