diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/bookmarks | 2 | ||||
-rwxr-xr-x | .local/bin/dmenuhandler | 6 | ||||
-rwxr-xr-x | .local/bin/dmenumountcifs | 6 | ||||
-rwxr-xr-x | .local/bin/dmenupass | 2 | ||||
-rwxr-xr-x | .local/bin/dmenurecord | 8 | ||||
-rwxr-xr-x | .local/bin/dmenuunicode | 4 | ||||
-rwxr-xr-x | .local/bin/doas_askpass | 2 | ||||
-rwxr-xr-x | .local/bin/maimpick | 2 | ||||
-rwxr-xr-x | .local/bin/mounter | 12 | ||||
-rwxr-xr-x | .local/bin/rssget | 4 | ||||
-rwxr-xr-x | .local/bin/singboxwrap | 6 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-doppler | 2 | ||||
-rwxr-xr-x | .local/bin/statusbar/sb-kbselect | 4 | ||||
-rwxr-xr-x | .local/bin/sysact | 4 | ||||
-rwxr-xr-x | .local/bin/td-toggle | 6 | ||||
-rwxr-xr-x | .local/bin/unmounter | 2 | ||||
-rw-r--r-- | .local/share/applications/file.desktop | 2 | ||||
-rw-r--r-- | .local/share/applications/mail.desktop | 2 | ||||
-rw-r--r-- | .local/share/applications/text.desktop | 2 |
19 files changed, 39 insertions, 39 deletions
diff --git a/.local/bin/bookmarks b/.local/bin/bookmarks index 45971f3..a04a403 100755 --- a/.local/bin/bookmarks +++ b/.local/bin/bookmarks @@ -8,7 +8,7 @@ CLIPBOARD() { } DMENU() { - rofi -dmenu -i -l "${1}" -p "${2}" + mew -i -l "${1}" -p "${2}" } error_notify() { diff --git a/.local/bin/dmenuhandler b/.local/bin/dmenuhandler index d2c6f83..875bbc2 100755 --- a/.local/bin/dmenuhandler +++ b/.local/bin/dmenuhandler @@ -1,10 +1,10 @@ #!/bin/sh -# Feed this script a link and it will give rofi -dmenu +# Feed this script a link and it will give mew # some choice programs to use to open it. -feed="${1:-$(true | rofi -dmenu -p 'Paste URL or file path')}" +feed="${1:-$(true | mew -p 'Paste URL or file path')}" -case "$(printf "copy url\\nswayimg\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv loop\\nmpv float\\nqueue download\\nqueue yt-dlp\\nqueue yt-dlp audio" | rofi -dmenu -i -p "Open it with?")" in +case "$(printf "copy url\\nswayimg\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv loop\\nmpv float\\nqueue download\\nqueue yt-dlp\\nqueue yt-dlp audio" | mew -i -p "Open it with?")" in "copy url") echo "$feed" | wl-copy ;; mpv) setsid -f mpv -quiet "$feed" >/dev/null 2>&1 ;; "mpv loop") setsid -f mpv -quiet --loop "$feed" >/dev/null 2>&1 ;; diff --git a/.local/bin/dmenumountcifs b/.local/bin/dmenumountcifs index 4b0590b..4832213 100755 --- a/.local/bin/dmenumountcifs +++ b/.local/bin/dmenumountcifs @@ -1,12 +1,12 @@ #!/bin/sh -# Gives a rofi -dmenu prompt to mount unmounted local NAS shares for read/write. +# Gives a mew prompt to mount unmounted local NAS shares for read/write. # Requirements - "%wheel ALL=(ALL) NOPASSWD: ALL" # # Browse for mDNS/DNS-SD services using the Avahi daemon... -srvname=$(avahi-browse _smb._tcp -t | awk '{print $4}' | rofi -dmenu -i -p "Which NAS?") || exit 1 +srvname=$(avahi-browse _smb._tcp -t | awk '{print $4}' | mew -i -p "Which NAS?") || exit 1 notify-send "Searching for network shares..." "Please wait..." # Choose share disk... -share=$(smbclient -L "$srvname" -N | rg Disk | awk '{print $1}' | rofi -dmenu -i -p "Mount which share?") || exit 1 +share=$(smbclient -L "$srvname" -N | rg Disk | awk '{print $1}' | mew -i -p "Mount which share?") || exit 1 # Format URL... share2mnt=//"$srvname".local/"$share" diff --git a/.local/bin/dmenupass b/.local/bin/dmenupass index b29b536..bea2ad9 100755 --- a/.local/bin/dmenupass +++ b/.local/bin/dmenupass @@ -3,4 +3,4 @@ # This script is the SUDO_ASKPASS variable, meaning that it will be used as a # password prompt if needed. -rofi -dmenu -P -p "password:" <&- +mew -P -p "password:" <&- diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord index 6d6af9c..6f51f5f 100755 --- a/.local/bin/dmenurecord +++ b/.local/bin/dmenurecord @@ -1,7 +1,7 @@ #!/bin/sh # Usage: -# `$0`: Ask for recording type via rofi -dmenu +# `$0`: Ask for recording type via mew # `$0 screencast`: Record both audio and screen # `$0 video`: Record only screen # `$0 audio`: Record only audio @@ -11,7 +11,7 @@ getdim() { screens=$(hyprctl monitors | grep Monitor | cut -d' ' -f2) - choice=$(printf "$screens\nExit\n" | rofi -dmenu) + choice=$(printf "$screens\nExit\n" | mew) [ "${choice}" != "Exit" ] || [ -z "${choice}" ] || exit && echo $choice } @@ -77,7 +77,7 @@ audio() { \ } askrecording() { \ - choice=$(printf "screencast\\nvideo\\nvideo selected\\naudio\\nwebcam\\nwebcam (hi-def)" | rofi -dmenu -i -p "Select recording style:") + choice=$(printf "screencast\\nvideo\\nvideo selected\\naudio\\nwebcam\\nwebcam (hi-def)" | mew -i -p "Select recording style:") case "$choice" in screencast) screencast;; audio) audio;; @@ -89,7 +89,7 @@ askrecording() { \ } asktoend() { \ - response=$(printf "No\\nYes" | rofi -dmenu -i -p "Recording still active. End recording?") && + response=$(printf "No\\nYes" | mew -i -p "Recording still active. End recording?") && [ "$response" = "Yes" ] && killrecording } diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode index bfb190d..0289dc6 100755 --- a/.local/bin/dmenuunicode +++ b/.local/bin/dmenuunicode @@ -2,8 +2,8 @@ # The famous "get a menu of emojis to copy" script. -# Get user selection via rofi -dmenu from emoji file. -chosen=$(cut -d ';' -f1 ~/.local/share/extras/chars/* | rofi -dmenu -i -l 30 | sed "s/ .*//") +# Get user selection via mew from emoji file. +chosen=$(cut -d ';' -f1 ~/.local/share/extras/chars/* | mew -i -l 30 | sed "s/ .*//") # Exit if none chosen. [ -z "$chosen" ] && exit diff --git a/.local/bin/doas_askpass b/.local/bin/doas_askpass index 49a56ef..f5d61ef 100755 --- a/.local/bin/doas_askpass +++ b/.local/bin/doas_askpass @@ -1,7 +1,7 @@ #!/usr/bin/expect -- # askpass implementation for doas -# example usage: DOAS_ASKPASS="rofi -dmenu -P -p password:" doas_askpass echo working +# example usage: DOAS_ASKPASS="mew -P -p password:" doas_askpass echo working # don't mind the man behind the curtain log_user 0 diff --git a/.local/bin/maimpick b/.local/bin/maimpick index 390d5e2..29cf327 100755 --- a/.local/bin/maimpick +++ b/.local/bin/maimpick @@ -13,7 +13,7 @@ get_active_window() { hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' } -case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\na selected area (swappy)\\ncurrent window (swappy)\\nfull screen (swappy)\\ncopy selected image to text" | rofi -dmenu -l 10 -i -p "Screenshot which area?")" in +case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\na selected area (swappy)\\ncurrent window (swappy)\\nfull screen (swappy)\\ncopy selected image to text" | mew -l 10 -i -p "Screenshot which area?")" in "a selected area") geometry=$(slurp) && sleep 0.2 && grim -g "$geometry" pic-selected-"${output}" && notify-send "📸 maimpick" "Screenshot saved as pic-selected-$output." ;; "current window") geometry=$(get_active_window) diff --git a/.local/bin/mounter b/.local/bin/mounter index 5828cd9..6d65c2c 100755 --- a/.local/bin/mounter +++ b/.local/bin/mounter @@ -23,7 +23,7 @@ lsblkoutput="$(doas lsblk -rpo "uuid,name,type,size,label,mountpoint,fstype")" allluks="$(echo "$lsblkoutput" | rg crypto_LUKS)" # Get a list of the LUKS drive UUIDs already decrypted. decrypted="$(find /dev/disk/by-id/dm-uuid-CRYPT-LUKS2-* | sed "s|.*LUKS2-||;s|-.*||")" -# Functioning for formatting drives correctly for rofi -dmenu: +# Functioning for formatting drives correctly for mew: filter() { sed "s/ /:/g" | awk -F':' '$7==""{printf "%s%s (%s) %s\n",$1,$3,$5,$6}' ; } # Get only LUKS drives that are not decrypted. @@ -49,15 +49,15 @@ set -e test -n "$alldrives" -# Feed all found drives to rofi -dmenu and get user choice. -chosen="$(echo "$alldrives" | rofi -dmenu -p "Mount which drive?" -i)" +# Feed all found drives to mew and get user choice. +chosen="$(echo "$alldrives" | mew -p "Mount which drive?" -i)" # Function for prompting user for a mountpoint. getmount(){ - mp="$(find /mnt /media /mount /home -maxdepth 1 -type d 2>/dev/null | rofi -dmenu -i -p "Mount this drive where?")" + mp="$(find /mnt /media /mount /home -maxdepth 1 -type d 2>/dev/null | mew -i -p "Mount this drive where?")" test -n "$mp" if [ ! -d "$mp" ]; then - mkdiryn=$(printf "No\\nYes" | rofi -dmenu -i -p "$mp does not exist. Create it?") + mkdiryn=$(printf "No\\nYes" | mew -i -p "$mp does not exist. Create it?") [ "$mkdiryn" = "Yes" ] && (mkdir -p "$mp" || doas_askpass mkdir -p "$mp") fi } @@ -94,7 +94,7 @@ case "$chosen" in done # Decrypt in a terminal window - ${TERMINAL:-st} --app-id termfloat -e doas cryptsetup open "$chosen" "usb$num" + ${TERMINAL:-st} -a termfloat -e doas cryptsetup open "$chosen" "usb$num" # Check if now decrypted. test -b "/dev/mapper/usb$num" diff --git a/.local/bin/rssget b/.local/bin/rssget index 5406d33..45064b7 100755 --- a/.local/bin/rssget +++ b/.local/bin/rssget @@ -4,7 +4,7 @@ # also find hidden RSS feeds on various websites, namely Youtube, Reddit, # Vimeo, Github, Gitlab and Medium. Gets site url as $1 or (if not present) # from X clipboard. Gets tags as $2. If it finds more than one feed, calls -# rofi -dmenu for the user to choose which one to add. I have bound it to a keyboard +# mew for the user to choose which one to add. I have bound it to a keyboard # shortcut so i copy a site link and easily add its feed to the reader. # Inspired by and based on the logic of this extension: @@ -109,7 +109,7 @@ else list="$(getlink "$url")" fi -[ "$(echo "$list" | wc -l)" -eq 1 ] && chosen_link="$list" || chosen_link=$(printf '%s\n' "${list[@]}" | rofi -dmenu -p "Choose a feed:") +[ "$(echo "$list" | wc -l)" -eq 1 ] && chosen_link="$list" || chosen_link=$(printf '%s\n' "${list[@]}" | mew -p "Choose a feed:") tags="$2" ifinstalled rssadd && rssadd "$chosen_link" "$tags" echo "$chosen_link" "$tags" diff --git a/.local/bin/singboxwrap b/.local/bin/singboxwrap index b2af2c6..e52db36 100755 --- a/.local/bin/singboxwrap +++ b/.local/bin/singboxwrap @@ -10,13 +10,13 @@ run_singbox () { pidof sing-box >/dev/null && killall sing-box setsid -f sing-box -c "$1" run if [ "$input" = menu ]; then - notify-send "sing-box" "sing-box with $(readlink "$1") is running now" + notify-send "sing-box with $(readlink "$1") is running now" fi - } || notify-send "sing-box" "Config check has failed. Check your configuration at $(readlink $1)" & exit 1 + } || notify-send "Config check has failed. Check your configuration at $(readlink $1)" & exit 1 } choose_menu () { - choose="$(fd . $config_dir -d 1 -t f | rofi -dmenu -p "Config to use")" + choose="$(fd . $config_dir -d 1 -t f | mew -p "Config to use")" [ -n "$choose" ] || exit 1 ln -sf "$choose" "$default_path" echo "$default_path" diff --git a/.local/bin/statusbar/sb-doppler b/.local/bin/statusbar/sb-doppler index e495510..1930752 100755 --- a/.local/bin/statusbar/sb-doppler +++ b/.local/bin/statusbar/sb-doppler @@ -199,7 +199,7 @@ DE: SHH: Schleswig-Holstein DE: SHH: Hamburg DE: THU: Thuringia NL: The Netherlands -RU: Russian Federation" | rofi -dmenu -i -l 50 -p "Select a radar to use as default:")" +RU: Russian Federation" | mew -i -l 50 -p "Select a radar to use as default:")" # Ensure user did not escape. [ -z "$chosen" ] && exit 1 diff --git a/.local/bin/statusbar/sb-kbselect b/.local/bin/statusbar/sb-kbselect index 1614480..f4d3e9e 100755 --- a/.local/bin/statusbar/sb-kbselect +++ b/.local/bin/statusbar/sb-kbselect @@ -1,6 +1,6 @@ #!/bin/sh # works on any init system -# requirements: rofi -dmenu +# requirements: mew kbquery() { @@ -13,7 +13,7 @@ kbquery() kb=$(kbquery) case $BLOCK_BUTTON in - 1) kb_choice="$(awk '/! layout/{flag=1; next} /! variant/{flag=0} flag {print $2, "- " $1}' /usr/share/X11/xkb/rules/base.lst | rofi -dmenu -l 15)" + 1) kb_choice="$(awk '/! layout/{flag=1; next} /! variant/{flag=0} flag {print $2, "- " $1}' /usr/share/X11/xkb/rules/base.lst | mew -l 15)" [ -z "$kb_choice" ] && exit 0 kb="$(echo "$kb_choice" | awk '{print $3}')" swaymsg input "type:keyboard" xkb_layout "$kb" >/dev/null 2>&1 diff --git a/.local/bin/sysact b/.local/bin/sysact index b758d13..ac910c5 100755 --- a/.local/bin/sysact +++ b/.local/bin/sysact @@ -1,6 +1,6 @@ #!/bin/sh -# A rofi -dmenu wrapper script for system functions. +# A mew wrapper script for system functions. export WM="Hyprland" case "$(readlink -f /sbin/init)" in *systemd*) ctl='systemctl' ;; @@ -23,7 +23,7 @@ lock(){ kill -44 $(pidof waybar) } -case "$(printf " lock\n leave $WM\n renew $WM\n hibernate\n reboot\n shutdown\n sleep\n display off" | rofi -dmenu -i -p 'Action: ')" in +case "$(printf " lock\n leave $WM\n renew $WM\n hibernate\n reboot\n shutdown\n sleep\n display off" | mew -i -p 'Action: ')" in ' lock') lock ;; " leave $WM") hyprctl dispatch exit ;; " renew $WM") hyprctl reload ;; diff --git a/.local/bin/td-toggle b/.local/bin/td-toggle index 60a5f6a..24ded26 100755 --- a/.local/bin/td-toggle +++ b/.local/bin/td-toggle @@ -4,9 +4,9 @@ if pidof transmission-daemon >/dev/null ; then - [ "$(printf "No\\nYes" | rofi -dmenu -i -p "Turn off transmission-daemon?")" = "Yes" ] && killall transmission-daemon && notify-send "transmission-daemon disabled." + [ "$(printf "No\\nYes" | mew -i -p "Turn off transmission-daemon?")" = "Yes" ] && killall transmission-daemon && notify-send "transmission-daemon disabled." else ifinstalled transmission-cli || exit - [ "$(printf "No\\nYes" | rofi -dmenu -i -p "Turn on transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "transmission-daemon enabled." + [ "$(printf "No\\nYes" | mew -i -p "Turn on transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "transmission-daemon enabled." fi -sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-waybar}" +sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-i3blocks}" diff --git a/.local/bin/unmounter b/.local/bin/unmounter index d43089f..fe1d01a 100755 --- a/.local/bin/unmounter +++ b/.local/bin/unmounter @@ -10,7 +10,7 @@ allunmountable="$(echo "$mounteddroids $mounteddrives" | sed "/^$/d;s/ *$//")" test -n "$allunmountable" -chosen="$(echo "$allunmountable" | rofi -dmenu -i -p "Unmount which drive?")" +chosen="$(echo "$allunmountable" | mew -i -p "Unmount which drive?")" chosen="${chosen%% *}" test -n "$chosen" diff --git a/.local/share/applications/file.desktop b/.local/share/applications/file.desktop index b65a2d7..dcdf465 100644 --- a/.local/share/applications/file.desktop +++ b/.local/share/applications/file.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=File Manager -Exec=/usr/bin/kitty -e yazi %u +Exec=/usr/bin/footclient -e yazi %u diff --git a/.local/share/applications/mail.desktop b/.local/share/applications/mail.desktop index bc6702e..e7e16ae 100644 --- a/.local/share/applications/mail.desktop +++ b/.local/share/applications/mail.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=Mail -Exec=/usr/bin/kitty -e neomutt %u +Exec=/usr/bin/footclient -e neomutt %u diff --git a/.local/share/applications/text.desktop b/.local/share/applications/text.desktop index 58c9986..ac53b06 100644 --- a/.local/share/applications/text.desktop +++ b/.local/share/applications/text.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=Text editor -Exec=/usr/bin/kitty -e nvim %u +Exec=/usr/bin/footclient -e nvim %u |