Adding ranger wrapper to launch from bemenu easily
This commit is contained in:
parent
09435e3081
commit
1881510bb7
1 changed files with 12 additions and 0 deletions
12
apsalar/ranger
Executable file
12
apsalar/ranger
Executable 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
|
||||||
|
|
Loading…
Reference in a new issue