commit 34381e3224436bbce6a0285b378f3c231222b1f2 parent 0cb41986c29405df8510b259d299e1cc9e5b9f45 Author: AndrewLockVI <andrew@laack.co> Date: Mon, 17 Feb 2025 12:13:01 -0600 Added open with ranger dmenu option and updated install script Diffstat:
| M | install.sh | | | 8 | ++++++-- |
| A | ranger.sh | | | 20 | ++++++++++++++++++++ |
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/install.sh b/install.sh @@ -167,6 +167,10 @@ doas apk add xclip doas apk add xsetroot doas apk add xkill # image viewer -doas apk add nsxiv -# screenshotter doas apk add scrot + +# view photos +doas apk add nsxiv + +# file manager +doas apk add ranger diff --git a/ranger.sh b/ranger.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +input_dir="$1" +background=$2 +foreground=$3 +highlight=$4 + + +directory=$(find ~ -type d \ + ! -path '*/.local/*' \ + ! -path '*/.cache/*' \ + ! -path '*/.firefox/*' \ + ! -path '*/.mozilla/*' \ + ! -path '*/.git/*' \ + | dmenu -i -p "$prompt" -nb "$background" -nf "$foreground" -sb "$highlight" -sf "$foreground") + + +if [ -n "$directory" ]; then + st -e ranger $directory +fi