diff options
| author | LM-LCL <hello@exaltedelite.club> | 2024-11-20 09:49:04 +0100 |
|---|---|---|
| committer | LM-LCL <hello@exaltedelite.club> | 2024-11-20 09:49:04 +0100 |
| commit | 30d147d7b1693ed2695a80e5ef9a04f2a47aa3d3 (patch) | |
| tree | e0cc67c7a95b6ae2e59a97a102f2c8b4746ae7cb | |
| parent | b3ba749406e2591493813090c3186dfd9b8f9953 (diff) | |
Rofi
| -rwxr-xr-x | lcl-edit | 4 | ||||
| -rwxr-xr-x | lcl-find | 2 | ||||
| -rwxr-xr-x | lcl-kill | 2 | ||||
| -rwxr-xr-x | lcl-playlist | 2 | ||||
| -rwxr-xr-x | lcl-system | 2 | ||||
| -rwxr-xr-x | rmt-action | 2 |
6 files changed, 7 insertions, 7 deletions
@@ -1,7 +1,7 @@ #! /bin/zsh filepath="$(find ~/Archive -type d \( -name node_modules -o -name .git \) -prune -o \ - -type f -name '*' -print | dmenu -i -l 15 -p 'Search File')" + -type f -name '*' -print | rofi -dmenu -i)" [ ! -f "$filepath" ] && exit 1 CHOICES=('[Video]Strip' \ @@ -19,7 +19,7 @@ CHOICES=('[Video]Strip' \ [ ! -z "$1" ] && selected="$1" \ || selected="$(echo "${CHOICES[@]}" | tr ' ' '\n' \ - | dmenu -i -l 15 -p 'Select Edit')" + | rofi -dmenu -i)" filename="$(basename "$filepath")" @@ -1,5 +1,5 @@ #! /bin/sh selected="$(find ~/Archive -type d \( -name node_modules -o -name .git \) -prune -o \ - -type f -name '*' -print | dmenu -i -l 15 -p 'Search File')" + -type f -name '*' -print | rofi -dmenu -i)" [ -f "$selected" ] && setsid -f xdg-open "$selected" > /dev/null 2>&1 @@ -1,5 +1,5 @@ #! /bin/sh plist="$(ps -u "$USER" -o pid,%mem,%cpu,comm --no-headers | sort -b -k2 -r)" -proc="$(echo "$plist" | dmenu -i -l 15 -p 'Select Process')" +proc="$(echo "$plist" | rofi -dmenu -i)" [ ! -z "$proc" ] && kill -15 "$(echo "$proc" | awk '{print $1}')" diff --git a/lcl-playlist b/lcl-playlist index f08f4f1..dec31f1 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' | dmenu -i -l 15 -p 'Select Files')" + -o -name '*.mp3' | rofi -dmenu -i -multi-select)" [ -z "$files" ] && exit 1 playlist=() @@ -1,6 +1,6 @@ #! /bin/sh -selected="$(printf "Lock\nSleep\nShutdown\nReboot" | dmenu -i)" +selected="$(printf "Lock\nSleep\nShutdown\nReboot" | rofi -dmenu -i)" case "$selected" in 'Lock') slock ;; @@ -8,7 +8,7 @@ CHOICES=('Play' 'Record' 'Clip' 'Download' 'aDownload' 'Open' 'Clipboard') [ ! -z "$1" ] && selected="$1" \ - || selected="$(echo "${CHOICES[@]}" | tr ' ' '\n' | dmenu -i)" + || selected="$(echo "${CHOICES[@]}" | tr ' ' '\n' | rofi -dmenu -i)" case "$selected" in "${CHOICES[1]}") |
