commit 81b28277bb5fa2149795c83b328930dcdae26552
parent 1dd256519a6d0361cc6e8d7a1fc3d92e7d1565be
Author: Dash Eclipse <dashezup@disroot.org>
Date: Tue, 22 Mar 2022 12:02:34 +0000
refactor: remove runx
Diffstat:
1 file changed, 0 insertions(+), 30 deletions(-)
diff --git a/.local/bin/runx b/.local/bin/runx
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-run_bemenu() {
- bemenu -i -H23 -P '-->' \
- --tf '#26A69A' --tb '#212121' \
- --hf '#eeeeee' --hb '#005577' \
- $@
-}
-
-run_flatpak() {
- APP=$(flatpak list --app --columns=name,description,version,application \
- | tr '\t' ',' \
- | column -s, -t \
- | run_bemenu -l18 -p 'Flatpak' \
- | awk '{print $NF}')
- test ! -z "$APP" && flatpak run "$APP"
-}
-
-run_appimage() {
- APP=$(ls -d ${HOME}/Desktop/AppImage/*.AppImage | run_bemenu -l18 -p 'AppImage')
- test ! -z "$APP" && exec $APP
-}
-
-RUN=$(echo "Flatpak\nAppImage" | run_bemenu -l2 -p 'RUN')
-
-if [ "$RUN" = "Flatpak" ]; then
- run_flatpak
-elif [ "$RUN" = "AppImage" ]; then
- run_appimage
-fi