summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLM-LCL <hello@exaltedelite.club>2024-11-25 04:26:15 +0100
committerLM-LCL <hello@exaltedelite.club>2024-11-25 04:26:15 +0100
commit9cc0ce20537f34492853a243eebf4c9dcb43127d (patch)
tree6911d9614aaf27a6f74feab5c7c0ab4a7ccfb55f
parent30d147d7b1693ed2695a80e5ef9a04f2a47aa3d3 (diff)
Return to dmenu
-rwxr-xr-xlcl-edit4
-rwxr-xr-xlcl-find2
-rwxr-xr-xlcl-kill2
-rwxr-xr-xlcl-playlist2
-rwxr-xr-xlcl-system2
-rwxr-xr-xrmt-action2
6 files changed, 7 insertions, 7 deletions
diff --git a/lcl-edit b/lcl-edit
index efe0caa..739932e 100755
--- a/lcl-edit
+++ b/lcl-edit
@@ -1,7 +1,7 @@
#! /bin/zsh
filepath="$(find ~/Archive -type d \( -name node_modules -o -name .git \) -prune -o \
- -type f -name '*' -print | rofi -dmenu -i)"
+ -type f -name '*' -print | dmenu -i -l 15 -p 'Search File')"
[ ! -f "$filepath" ] && exit 1
CHOICES=('[Video]Strip' \
@@ -19,7 +19,7 @@ CHOICES=('[Video]Strip' \
[ ! -z "$1" ] && selected="$1" \
|| selected="$(echo "${CHOICES[@]}" | tr ' ' '\n' \
- | rofi -dmenu -i)"
+ | dmenu -i -l 15 -p 'Select Edit')"
filename="$(basename "$filepath")"
diff --git a/lcl-find b/lcl-find
index b89adba..1bd073e 100755
--- a/lcl-find
+++ b/lcl-find
@@ -1,5 +1,5 @@
#! /bin/sh
selected="$(find ~/Archive -type d \( -name node_modules -o -name .git \) -prune -o \
- -type f -name '*' -print | rofi -dmenu -i)"
+ -type f -name '*' -print | dmenu -i -l 15 -p 'Search File')"
[ -f "$selected" ] && setsid -f xdg-open "$selected" > /dev/null 2>&1
diff --git a/lcl-kill b/lcl-kill
index acd90f6..a9d649e 100755
--- a/lcl-kill
+++ b/lcl-kill
@@ -1,5 +1,5 @@
#! /bin/sh
plist="$(ps -u "$USER" -o pid,%mem,%cpu,comm --no-headers | sort -b -k2 -r)"
-proc="$(echo "$plist" | rofi -dmenu -i)"
+proc="$(echo "$plist" | dmenu -i -l 15 -p 'Select Process')"
[ ! -z "$proc" ] && kill -15 "$(echo "$proc" | awk '{print $1}')"
diff --git a/lcl-playlist b/lcl-playlist
index dec31f1..f08f4f1 100755
--- a/lcl-playlist
+++ b/lcl-playlist
@@ -6,7 +6,7 @@ files="$(find ~/Archive -type f -name '*.mp4' \
-o -name '*.webm' \
-o -name '*.flac' \
-o -name '*.ogg' \
- -o -name '*.mp3' | rofi -dmenu -i -multi-select)"
+ -o -name '*.mp3' | dmenu -i -l 15 -p 'Select Files')"
[ -z "$files" ] && exit 1
playlist=()
diff --git a/lcl-system b/lcl-system
index 33c9d30..6f8deb2 100755
--- a/lcl-system
+++ b/lcl-system
@@ -1,6 +1,6 @@
#! /bin/sh
-selected="$(printf "Lock\nSleep\nShutdown\nReboot" | rofi -dmenu -i)"
+selected="$(printf "Lock\nSleep\nShutdown\nReboot" | dmenu -i)"
case "$selected" in
'Lock') slock ;;
diff --git a/rmt-action b/rmt-action
index f24318d..6b3db9b 100755
--- a/rmt-action
+++ b/rmt-action
@@ -8,7 +8,7 @@
CHOICES=('Play' 'Record' 'Clip' 'Download' 'aDownload' 'Open' 'Clipboard')
[ ! -z "$1" ] && selected="$1" \
- || selected="$(echo "${CHOICES[@]}" | tr ' ' '\n' | rofi -dmenu -i)"
+ || selected="$(echo "${CHOICES[@]}" | tr ' ' '\n' | dmenu -i)"
case "$selected" in
"${CHOICES[1]}")