aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-11-29 18:35:49 +0300
committerawy <awy@awy.one>2025-11-29 18:35:49 +0300
commit8d90f5a577b75b8a792b7a2f02d98a31e9ff19c4 (patch)
tree868e0d8389fb2b4e413409f65f57caa9c0b37eda /.local
parentdb008a76e93dcfbf00fec5a141a1e1bd122b04a7 (diff)
downloadhyprdots-8d90f5a577b75b8a792b7a2f02d98a31e9ff19c4.tar.gz
uupdate
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/bookmarks2
-rwxr-xr-x.local/bin/chooseprofile2
-rwxr-xr-x.local/bin/dmenuhandler6
-rwxr-xr-x.local/bin/dmenumountcifs6
-rwxr-xr-x.local/bin/dmenupass2
-rwxr-xr-x.local/bin/dmenurecord8
-rwxr-xr-x.local/bin/dmenuscreenshare6
-rwxr-xr-x.local/bin/dmenuunicode4
-rwxr-xr-x.local/bin/doas_askpass2
-rwxr-xr-x.local/bin/maimpick2
-rwxr-xr-x.local/bin/mounter10
-rwxr-xr-x.local/bin/rssget4
-rwxr-xr-x.local/bin/sb-doppler241
-rwxr-xr-x.local/bin/sb-internet41
-rwxr-xr-x.local/bin/sb-news17
-rwxr-xr-x.local/bin/sb-pacpackages29
-rwxr-xr-x.local/bin/sb-popupgrade9
-rwxr-xr-x.local/bin/sb-scripts/sb-doppler2
-rwxr-xr-x.local/bin/sb-scripts/sb-news2
-rwxr-xr-x.local/bin/sb-scripts/sb-pacpackages10
-rwxr-xr-x.local/bin/singboxwrap2
-rwxr-xr-x.local/bin/sysact4
-rwxr-xr-x.local/bin/td-toggle4
-rwxr-xr-x.local/bin/unmounter2
l---------.local/share/bg1
-rw-r--r--.local/share/thiemeyer_road_to_samarkand.jpgbin403799 -> 0 bytes
26 files changed, 40 insertions, 378 deletions
diff --git a/.local/bin/bookmarks b/.local/bin/bookmarks
index a04a403..45971f3 100755
--- a/.local/bin/bookmarks
+++ b/.local/bin/bookmarks
@@ -8,7 +8,7 @@ CLIPBOARD() {
}
DMENU() {
- mew -i -l "${1}" -p "${2}"
+ rofi -dmenu -i -l "${1}" -p "${2}"
}
error_notify() {
diff --git a/.local/bin/chooseprofile b/.local/bin/chooseprofile
index f4d32b5..d201042 100755
--- a/.local/bin/chooseprofile
+++ b/.local/bin/chooseprofile
@@ -2,7 +2,7 @@
profiles=$(awk -F= '/^\[Profile/ {profile=$1} /Name/ && !/default/ {print $2}' ~/.mozilla/icecat/profiles.ini)
-profile=$(echo "$profiles" | mew -p "Select IceCat Profile" -l 10)
+profile=$(echo "$profiles" | rofi -theme-str 'window {width: 10%;}' -dmenu -p "Select IceCat Profile" -l 10)
if [ -z "$profile" ] || ! echo "$profiles" | rg -q "^$profile$"; then
echo "Invalid selection or no profile selected. Exiting."
diff --git a/.local/bin/dmenuhandler b/.local/bin/dmenuhandler
index 875bbc2..2b85bf4 100755
--- a/.local/bin/dmenuhandler
+++ b/.local/bin/dmenuhandler
@@ -1,10 +1,10 @@
#!/bin/sh
-# Feed this script a link and it will give mew
+# Feed this script a link and it will give dmenu
# some choice programs to use to open it.
-feed="${1:-$(true | mew -p 'Paste URL or file path')}"
+feed="${1:-$(true | rofi -dmenu -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" | mew -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" | rofi -dmenu -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 4832213..3edb5d4 100755
--- a/.local/bin/dmenumountcifs
+++ b/.local/bin/dmenumountcifs
@@ -1,12 +1,12 @@
#!/bin/sh
-# Gives a mew prompt to mount unmounted local NAS shares for read/write.
+# Gives a dmenu 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}' | mew -i -p "Which NAS?") || exit 1
+srvname=$(avahi-browse _smb._tcp -t | awk '{print $4}' | rofi -dmenu -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}' | mew -i -p "Mount which share?") || exit 1
+share=$(smbclient -L "$srvname" -N | rg Disk | awk '{print $1}' | rofi -dmenu -i -p "Mount which share?") || exit 1
# Format URL...
share2mnt=//"$srvname".local/"$share"
diff --git a/.local/bin/dmenupass b/.local/bin/dmenupass
index bea2ad9..169c15e 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.
-mew -P -p "password:" <&-
+rofi -dmenu -password -p "password:" <&-
diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord
index 58b4411..55bcec7 100755
--- a/.local/bin/dmenurecord
+++ b/.local/bin/dmenurecord
@@ -2,7 +2,7 @@
getdim() {
gpu-screen-recorder --list-capture-options | sed 's/|[0-9]\{1,\}x[0-9]\{1,\}//g' \
- | mew -p "Select output: "
+ | rofi -dmenu -p "Select output: "
}
updateicon() { \
@@ -90,7 +90,7 @@ savereplay() {
}
askrecording() { \
- choice=$(printf "screencast\\nreplay\\nvideo\\naudio\\nwebcam\\nwebcam (hi-def)" | mew -i -p "Select recording style:")
+ choice=$(printf "screencast\\nreplay\\nvideo\\naudio\\nwebcam\\nwebcam (hi-def)" | rofi -dmenu -i -p "Select recording style:")
case "$choice" in
screencast) screencast;;
replay) replay;;
@@ -103,11 +103,11 @@ askrecording() { \
asktoend() { \
if grep -q "󰑙" /tmp/recordingicon; then
- response=$(printf "No\\nYes" | mew -i -p "Replay is active. Save it?") &&
+ response=$(printf "No\\nYes" | rofi -dmenu -i -p "Replay is active. Save it?") &&
[ "$response" = "Yes" ] && savereplay
fi
- response=$(printf "No\\nYes" | mew -i -p "Recording still active. End recording?") &&
+ response=$(printf "No\\nYes" | rofi -dmenu -i -p "Recording still active. End recording?") &&
[ "$response" = "Yes" ] && killrecording
}
diff --git a/.local/bin/dmenuscreenshare b/.local/bin/dmenuscreenshare
index f94f00b..0782637 100755
--- a/.local/bin/dmenuscreenshare
+++ b/.local/bin/dmenuscreenshare
@@ -3,7 +3,7 @@
get_window()
{
input="$(echo $XDPH_WINDOW_SHARING_LIST | sed 's/\[HA>\]/[HA>]\n/g')"
- choice=$(echo "$input" | mew -l 10)
+ choice=$(echo "$input" | rofi -dmenu -l 10)
printf '[SELECTION]r/window:%s\n' "$choice"
echo $XDPH_WINDOW_SHARING_LIST > ~/test
}
@@ -12,7 +12,7 @@ get_screen()
{
input="$(hyprctl monitors -j | jq -r '.[].name')"
num="$(cat $input | wc -l)"
- choice=$(echo "$input" | mew)
+ choice=$(echo "$input" | rofi -dmenu)
printf '[SELECTION]r/screen:%s\n' "$choice"
}
@@ -22,7 +22,7 @@ get_region()
printf '[SELECTION]r/region:%s\n' "$choice"
}
-type=$(printf "screen\nwindows\nregion" | mew -p "Choose what to screenshare:")
+type=$(printf "screen\nwindows\nregion" | rofi -dmenu -p "Choose what to screenshare:")
case "$type" in
"screen")
diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode
index 0289dc6..1c1b34a 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 mew from emoji file.
-chosen=$(cut -d ';' -f1 ~/.local/share/extras/chars/* | mew -i -l 30 | sed "s/ .*//")
+# Get user selection via dmenu from emoji file.
+chosen=$(cut -d ';' -f1 ~/.local/share/extras/chars/* | rofi -dmenu -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 f5d61ef..3c11730 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="mew -P -p password:" doas_askpass echo working
+# example usage: DOAS_ASKPASS="rofi -dmenu -password -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 29cf327..a25d5dd 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" | mew -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" | rofi -theme-str 'listview {scrollbar: false;}' -theme-str 'window {width: 10%;}' -dmenu -only-match -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 6d65c2c..6103e1b 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 mew:
+# Functioning for formatting drives correctly for dmenu:
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 mew and get user choice.
-chosen="$(echo "$alldrives" | mew -p "Mount which drive?" -i)"
+# Feed all found drives to dmenu and get user choice.
+chosen="$(echo "$alldrives" | rofi -dmenu -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 | mew -i -p "Mount this drive where?")"
+ mp="$(find /mnt /media /mount /home -maxdepth 1 -type d 2>/dev/null | rofi -dmenu -i -p "Mount this drive where?")"
test -n "$mp"
if [ ! -d "$mp" ]; then
- mkdiryn=$(printf "No\\nYes" | mew -i -p "$mp does not exist. Create it?")
+ mkdiryn=$(printf "No\\nYes" | rofi -dmenu -i -p "$mp does not exist. Create it?")
[ "$mkdiryn" = "Yes" ] && (mkdir -p "$mp" || doas_askpass mkdir -p "$mp")
fi
}
diff --git a/.local/bin/rssget b/.local/bin/rssget
index 45064b7..3668e12 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
-# mew for the user to choose which one to add. I have bound it to a keyboard
+# dmenu 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[@]}" | mew -p "Choose a feed:")
+[ "$(echo "$list" | wc -l)" -eq 1 ] && chosen_link="$list" || chosen_link=$(printf '%s\n' "${list[@]}" | rofi -dmenu -p "Choose a feed")
tags="$2"
ifinstalled rssadd && rssadd "$chosen_link" "$tags"
echo "$chosen_link" "$tags"
diff --git a/.local/bin/sb-doppler b/.local/bin/sb-doppler
deleted file mode 100755
index 1930752..0000000
--- a/.local/bin/sb-doppler
+++ /dev/null
@@ -1,241 +0,0 @@
-#!/bin/sh
-
-# Show a Doppler RADAR of a user's preferred location.
-
-secs=600 # Download a new doppler radar if one hasn't been downloaded in $secs seconds.
-radarloc="${XDG_CACHE_HOME:-$HOME/.cache}/radar"
-doppler="${XDG_CACHE_HOME:-$HOME/.cache}/doppler.gif"
-
-pickloc() { chosen="$(echo "US: CONUS: Continental United States
-US: Northeast
-US: Southeast
-US: PacNorthWest
-US: PacSouthWest
-US: UpperMissVly
-US: SouthMissVly
-US: SouthPlains
-US: NorthRockies
-US: SouthRockies
-US: Alaska
-US: Carib
-US: Hawaii
-US: CentGrLakes
-US: Conus-Large
-US: KABR: Aberdeen, SD
-US: KBIS: Bismarck, ND
-US: KFTG: Denver/Boulder, CO
-US: KDMX: Des Moines, IA
-US: KDTX: Detroit, MI
-US: KDDC: Dodge City, KS
-US: KDLH: Duluth, MN
-US: KCYS: Cheyenne, WY
-US: KLOT: Chicago, IL
-US: KGLD: Goodland, KS
-US: KUEX: Hastings, NE
-US: KGJX: Grand Junction, CO
-US: KGRR: Grand Rapids, MI
-US: KMVX: Fargo/Grand Forks, ND
-US: KGRB: Green Bay, WI
-US: KIND: Indianapolis, IN
-US: KJKL: Jackson, KY
-US: KARX: La Crosse, WI
-US: KILX: Lincoln/Central Illinois, IL
-US: KLVX: Louisville, KY
-US: KMQT: Marquette
-US: KMKX: Milwaukee, WI
-US: KMPX: Minneapolis, MN
-US: KAPX: Gaylord/Alpena, MI
-US: KLNX: North Platte, NE
-US: KIWX: N. Webster/Northern, IN
-US: KOAX: Omaha, NE
-US: KPAH: Paducah, KY
-US: KEAX: Pleasant Hill, MO
-US: KPUX: Pueblo, CO
-US: KDVN: Quad Cities, IA
-US: KUDX: Rapid City, SD
-US: KRIW: Riverton, WY
-US: KSGF: Springfield, MO
-US: KLSX: St. LOUIS, MO
-US: KFSD: Sioux Falls, SD
-US: KTWX: Topeka, KS
-US: KICT: Wichita, KS
-US: KVWX: Paducah, KY
-US: ICAO: Responsible Wfo
-US: KLTX: WILMINGTON, NC
-US: KCCX: State College/Central, PA
-US: KLWX: Sterling, VA
-US: KFCX: Blacksburg/Roanoke, VA
-US: KRAX: Raleigh/Durham, NC
-US: KGYX: Portland, ME
-US: KDIX: Mt Holly/Philadelphia, PA
-US: KPBZ: Pittsburgh, PA
-US: KAKQ: Wakefield, VA
-US: KMHX: Morehead City, NC
-US: KGSP: Greer/Greenville/Sprtbg, SC
-US: KILN: Wilmington/Cincinnati, OH
-US: KCLE: Cleveland, OH
-US: KCAE: Columbia, SC
-US: KBGM: Binghamton, NY
-US: KENX: Albany, NY
-US: KBUF: Buffalo, NY
-US: KCXX: Burlington, VT
-US: KCBW: Caribou, ME
-US: KBOX: Boston /Taunton, MA
-US: KOKX: New York City, NY
-US: KCLX: Charleston, SC
-US: KRLX: Charleston, WV
-US: ICAO: Responsible WFO
-US: KBRO: Brownsville, TX
-US: KABX: Albuquerque, NM
-US: KAMA: Amarillo, TX
-US: KFFC: Peachtree City/Atlanta, GA
-US: KEWX: Austin/Sanantonio, TX
-US: KBMX: Birmingham, AL
-US: KCRP: Corpus Christi, TX
-US: KFWS: Dallas / Ft. Worth, TX
-US: KEPZ: El Paso, TX
-US: KHGX: Houston/ Galveston, TX
-US: KJAX: Jacksonville, FL
-US: KBYX: Key West, FL
-US: KMRX: Morristown/knoxville, TN
-US: KLBB: Lubbock, TX
-US: KLZK: Little Rock, AR
-US: KLCH: Lake Charles, LA
-US: KOHX: Nashville, TN
-US: KMLB: Melbourne, FL
-US: KNQA: Memphis, TN
-US: KAMX: Miami, FL
-US: KMAF: Midland/odessa, TX
-US: KTLX: Norman, OK
-US: KHTX: Huntsville, AL
-US: KMOB: Mobile, AL
-US: KTLH: Tallahassee, FL
-US: KTBW: Tampa Bay Area, FL
-US: KSJT: San Angelo, TX
-US: KINX: Tulsa, OK
-US: KSRX: Tulsa, OK
-US: KLIX: New Orleans/slidell, LA
-US: KDGX: Jackson, MS
-US: KSHV: Shreveport, LA
-US: ICAO: Responsible WFO
-US: KLGX: Seattle / Tacoma, WA
-US: KOTX: Spokane, WA
-US: KEMX: Tucson, AZ
-US: KYUX: Phoenix, AZ
-US: KNKX: San Diego, CA
-US: KMUX: Monterey/san Francisco, CA
-US: KHNX: San Joaquin/hanford, CA
-US: KSOX: San Diego, CA
-US: KATX: Seattle / Tacoma, WA
-US: KIWA: Phoenix, AZ
-US: KRTX: Portland, OR
-US: KSFX: Pocatello, ID
-US: KRGX: Reno, NV
-US: KDAX: Sacramento, CA
-US: KMTX: Salt Lake City, UT
-US: KPDT: Pendleton, OR
-US: KMSX: Missoula, MT
-US: KESX: Las Vegas, NV
-US: KVTX: Los Angeles, CA
-US: KMAX: Medford, OR
-US: KFSX: Flagstaff, AZ
-US: KGGW: Glasgow, MT
-US: KLRX: Elko, NV
-US: KBHX: Eureka, CA
-US: KTFX: Great Falls, MT
-US: KCBX: Boise, ID
-US: KBLX: Billings, MT
-US: KICX: Salt Lake City, UT
-US: ICAO: Responsible Wfo W/ MSCF
-US: PABC: Anchorage, AK
-US: PAPD: Fairbanks, AK
-US: PHKM: Honolulu, HI
-US: PAHG: Anchorage, AK
-US: PAKC: Anchorage, AK
-US: PAIH: Anchorage, AK
-US: PHMO: Honolulu, HI
-US: PAEC: Fairbanks, AK
-US: TJUA: San Juan, PR
-US: PACG: Juneau, AK
-US: PHKI: Honolulu, HI
-US: PHWA: Honolulu, HI
-US: ICAO: Responsible Wfo W/ MSCF
-US: KFDR: Norman, OK
-US: PGUA: Guam
-US: KBBX: Sacramento, CA
-US: KFDX: Albuquerque, NM
-US: KGWX: Jackson, MS
-US: KDOX: Wakefield, VA
-US: KDYX: San Angelo, TX
-US: KEYX: Las Vegas, NV
-US: KEVX: Mobile, AL
-US: KHPX: Paducah, KY
-US: KTYX: Burlington, VT
-US: KGRK: Dallas / Ft. Worth, TX
-US: KPOE: Lake Charles, LA
-US: KEOX: Tallahassee, FL
-US: KHDX: El Paso, TX
-US: KDFX: San Antonio, TX
-US: KMXX: Birmingham, AL
-US: KMBX: Bismarck, ND
-US: KVAX: Jacksonville, FL
-US: KJGX: Peachtree City/atlanta, GA
-US: KVNX: Norman, OK
-US: KVBX: Vandenberg Afb: Orcutt, CA
-DE: BAW: Baden-Württemberg
-DE: BAY: Bavaria
-DE: BBB: Berlin
-DE: BBB: Brandenburg
-DE: HES: Hesse
-DE: MVP: Mecklenburg-Western Pomerania
-DE: NIB: Lower Saxony
-DE: NIB: Bremen
-DE: NRW: North Rhine-Westphalia
-DE: RPS: Rhineland-Palatinate
-DE: RPS: Saarland
-DE: SAC: Saxony
-DE: SAA: Saxony-Anhalt
-DE: SHH: Schleswig-Holstein
-DE: SHH: Hamburg
-DE: THU: Thuringia
-NL: The Netherlands
-RU: Russian Federation" | mew -i -l 50 -p "Select a radar to use as default:")"
-
-# Ensure user did not escape.
-[ -z "$chosen" ] && exit 1
-
-# Set country code and radar code.
-countrycode=${chosen%%:*}
-radarcode=${chosen#* } radarcode=${radarcode%:*}
-
-# Print codes to $radarloc file.
- printf "%s,%s\\n" "$countrycode" "$radarcode" > "$radarloc" ;}
-
-getdoppler() {
- country=$(cut -c -2 "$radarloc")
- province=$(cut -c 4- "$radarloc")
- notify-send "🌦️ Doppler RADAR" "Pulling most recent Doppler RADAR for $province."
- case "$country" in
- "US") province="$(echo "$province" | tr "[:lower:]" "[:upper:]")"
- curl -sL "https://radar.weather.gov/ridge/standard/${province}_loop.gif" > "$doppler" ;;
- "DE") province="$(echo "$province" | tr "[:upper:]" "[:lower:]")"
- curl -sL "https://www.dwd.de/DWD/wetter/radar/radfilm_${province}_akt.gif" > "$doppler" ;;
- "NL") curl -sL "https://cdn.knmi.nl/knmi/map/general/weather-map.gif" > "$doppler" ;;
- "RU") curl -sL "https://meteoinfo.ru/hmc-output/rmap/phenomena.gif" > "$doppler" ;;
- esac
-}
-
-showdoppler() { setsid -f mpv --no-osc --loop=inf --no-terminal "$doppler" >/dev/null 2>&1 ;}
-
-case $BLOCK_BUTTON in
- 1) [ ! -f "$radarloc" ] && pickloc && getdoppler
- [ $(($(date '+%s') - $(stat -c %Y "$doppler"))) -gt "$secs" ] && getdoppler
- showdoppler ;;
- 2) pickloc && getdoppler && showdoppler ;;
- 3) notify-send "🗺️ Doppler RADAR module" "\- Left click for local Doppler RADAR.
-- Middle click to update RADAR location.
-After $secs seconds, new clicks will also automatically update the doppler RADAR." ;;
- 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;;
-esac
-
-echo 🌅
diff --git a/.local/bin/sb-internet b/.local/bin/sb-internet
deleted file mode 100755
index 378cccb..0000000
--- a/.local/bin/sb-internet
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-case $BLOCK_BUTTON in
- 1) setsid -f "$TERMINAL" -e nmtui >/dev/null 2>&1 ; pkill -RTMIN+4 waybar ;;
- 3) notify-send " Internet module" "\- Click to connect
-󰤮 : wifi disabled
-󰤮 : no wifi connection
-󰤨 : wifi connection with quality
- : no ethernet
- : ethernet working
-󰑪 : vpn is active (routing)
-󰖂 : vpn is active
- " ;;
- 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;;
-esac
-
-# Wifi
-if [ "$(bat /sys/class/net/w*/operstate 2>/dev/null)" = 'up' ] ; then
- quality=$(awk '/^\s*w/ { print int($3 * 100 / 70) }' /proc/net/wireless)
-
- case 1 in
- $((quality >= 76)) ) wifiicon="󰤨" ;;
- $((quality >= 51)) ) wifiicon="󰤥" ;;
- $((quality >= 26)) ) wifiicon="󰤢" ;;
- $((quality >= 1)) ) wifiicon="󰤟" ;;
- * ) wifiicon="󰤮" ;;
- esac
- wifiicon="$wifiicon$quality% "
-
-elif [ "$(bat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then
- [ "$(bat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon="󰤮 " || wifiicon="󰤮 "
-fi
-
-# Ethernet
-[ "$(bat /sys/class/net/e*/operstate 2>/dev/null)" = 'up' ] && ethericon="" || ethericon=""
-
-# TUN
-[ -n "$(bat /sys/class/net/tun*/operstate 2>/dev/null)" ] && tunicon=" 󰖂"
-[ -n "$(bat /sys/class/net/route*/operstate 2>/dev/null)" ] && tunicon=" 󰑪"
-
-printf "%s%s%s\n" "$wifiicon" "$ethericon" "$tunicon"
diff --git a/.local/bin/sb-news b/.local/bin/sb-news
deleted file mode 100755
index ae5b1b6..0000000
--- a/.local/bin/sb-news
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-# Displays number of unread news items and an loading icon if updating.
-# When clicked, brings up `newsraft`.
-
-case $BLOCK_BUTTON in
- 1) setsid "$TERMINAL" -T newsraft -e newsraft >/dev/null 2>&1 ;;
- 2) setsid -f newsup >/dev/null && exit ;;
- 3) notify-send "📰 News module" "\- Shows unread news items
-- Shows 🔃 if updating with \`newsup\`
-- Left click opens newsboat
-- Middle click syncs RSS feeds
-<b>Note:</b> Only one instance of newsboat (including updates) may be running at a time." ;;
- 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;;
-esac
-
-bat /tmp/newsupdate 2>/dev/null || echo "$(newsraft -e print-unread-items-count | awk '{ if($1>0) print " " $1}')$(bat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsraft/.update 2>/dev/null)"
diff --git a/.local/bin/sb-pacpackages b/.local/bin/sb-pacpackages
deleted file mode 100755
index 5ef09d3..0000000
--- a/.local/bin/sb-pacpackages
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-
-# Displays number of upgradeable packages.
-# For this to work, have a `pacman -Sy` command run in the background as a
-# cronjob every so often as root. This script will then read those packages.
-# When clicked, it will run an upgrade via pacman.
-#
-# Add the following text as a file in /usr/share/libalpm/hooks/statusbar.hook:
-#
-# [Trigger]
-# Operation = Upgrade
-# Type = Package
-# Target = *
-#
-# [Action]
-# Description = Updating statusbar...
-# When = PostTransaction
-# Exec = /usr/bin/pkill -RTMIN+8 dwmblocks # Or i3blocks if using i3.
-
-case $BLOCK_BUTTON in
- 1) setsid -f "$TERMINAL" -e sb-popupgrade >/dev/null 2>&1 ;;
- 2) notify-send "$(/usr/bin/pacman -Qu)" ;;
- 3) notify-send "󰚰 Upgrade module" ": number of upgradable packages
-- Left click to upgrade packages
-- Middle click to show upgradable packages" ;;
- 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;;
-esac
-
-pacman -Qu | rg -Fcv "[ignored]" | sed "s/^/ /;s/^ 0$//g"
diff --git a/.local/bin/sb-popupgrade b/.local/bin/sb-popupgrade
deleted file mode 100755
index 94279c8..0000000
--- a/.local/bin/sb-popupgrade
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-printf "Beginning upgrade.\\n"
-
-paru
-pkill -RTMIN+8 "${STATUSBAR:-waybar}"
-
-printf "\\nUpgrade complete.\\nPress <Enter> to exit window.\\n\\n"
-read -r _
diff --git a/.local/bin/sb-scripts/sb-doppler b/.local/bin/sb-scripts/sb-doppler
index 1930752..00b33cb 100755
--- a/.local/bin/sb-scripts/sb-doppler
+++ b/.local/bin/sb-scripts/sb-doppler
@@ -199,7 +199,7 @@ DE: SHH: Schleswig-Holstein
DE: SHH: Hamburg
DE: THU: Thuringia
NL: The Netherlands
-RU: Russian Federation" | mew -i -l 50 -p "Select a radar to use as default:")"
+RU: Russian Federation" | rofi -dmenu -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/sb-scripts/sb-news b/.local/bin/sb-scripts/sb-news
index a95576d..ae5b1b6 100755
--- a/.local/bin/sb-scripts/sb-news
+++ b/.local/bin/sb-scripts/sb-news
@@ -14,4 +14,4 @@ case $BLOCK_BUTTON in
8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;;
esac
-bat /tmp/newsupdate 2>/dev/null || echo "$(newsraft -e print-unread-items-count | awk '{ if($1>0) print "📰" $1}')$(bat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsraft/.update 2>/dev/null)"
+bat /tmp/newsupdate 2>/dev/null || echo "$(newsraft -e print-unread-items-count | awk '{ if($1>0) print " " $1}')$(bat "${XDG_CONFIG_HOME:-$HOME/.config}"/newsraft/.update 2>/dev/null)"
diff --git a/.local/bin/sb-scripts/sb-pacpackages b/.local/bin/sb-scripts/sb-pacpackages
index 0d74b43..5ef09d3 100755
--- a/.local/bin/sb-scripts/sb-pacpackages
+++ b/.local/bin/sb-scripts/sb-pacpackages
@@ -18,12 +18,12 @@
# Exec = /usr/bin/pkill -RTMIN+8 dwmblocks # Or i3blocks if using i3.
case $BLOCK_BUTTON in
- 1) setsid -f "$TERMINAL" -e sb-popupgrade ;;
- 2) notify-send "$(/usr/bin/pacman -Qu)" ;;
- 3) notify-send "🎁 Upgrade module" "📦: number of upgradable packages
+ 1) setsid -f "$TERMINAL" -e sb-popupgrade >/dev/null 2>&1 ;;
+ 2) notify-send "$(/usr/bin/pacman -Qu)" ;;
+ 3) notify-send "󰚰 Upgrade module" ": number of upgradable packages
- Left click to upgrade packages
- Middle click to show upgradable packages" ;;
- 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
+ 8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" >/dev/null 2>&1 ;;
esac
-pacman -Qu | rg -Fcv "[ignored]" | sed "s/^/📦/;s/^📦0$//g"
+pacman -Qu | rg -Fcv "[ignored]" | sed "s/^/ /;s/^ 0$//g"
diff --git a/.local/bin/singboxwrap b/.local/bin/singboxwrap
index e52db36..0877ed9 100755
--- a/.local/bin/singboxwrap
+++ b/.local/bin/singboxwrap
@@ -16,7 +16,7 @@ run_singbox () {
}
choose_menu () {
- choose="$(fd . $config_dir -d 1 -t f | mew -p "Config to use")"
+ choose="$(fd . $config_dir -d 1 -t f | rofi -dmenu -only-match -p "Config to use")"
[ -n "$choose" ] || exit 1
ln -sf "$choose" "$default_path"
echo "$default_path"
diff --git a/.local/bin/sysact b/.local/bin/sysact
index ac910c5..ea7b659 100755
--- a/.local/bin/sysact
+++ b/.local/bin/sysact
@@ -1,6 +1,6 @@
#!/bin/sh
-# A mew wrapper script for system functions.
+# A dmenu 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" | mew -i -p 'Action: ')" in
+case "$(printf " lock\n󰩈 leave $WM\n renew $WM\n hibernate\n reboot\n shutdown\n󰒲 sleep\n󰍹 display off" | rofi -theme-str 'listview {scrollbar: false;}' -theme-str 'window {width: 10%;}' -dmenu -l 8 -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 977cc56..5405d3b 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" | mew -i -p "Turn off transmission-daemon?")" = "Yes" ] && killall transmission-daemon && notify-send "transmission-daemon disabled."
+ [ "$(printf "No\\nYes" | rofi -theme-str 'listview {scrollbar: false;}' -theme-str 'window {width: 15%;}' -dmenu -l 2 -i -p "Turn off transmission-daemon?")" = "Yes" ] && killall transmission-daemon && notify-send "transmission-daemon disabled."
else
ifinstalled transmission-cli || exit
- [ "$(printf "No\\nYes" | mew -i -p "Turn on transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "transmission-daemon enabled."
+ [ "$(printf "No\\nYes" | rofi -theme-str 'listview {scrollbar: false;}' -theme-str 'window {width: 15%;}' -dmenu -l 2 -i -p "Turn on transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "transmission-daemon enabled."
fi
sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-waybar}"
diff --git a/.local/bin/unmounter b/.local/bin/unmounter
index fe1d01a..d43089f 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" | mew -i -p "Unmount which drive?")"
+chosen="$(echo "$allunmountable" | rofi -dmenu -i -p "Unmount which drive?")"
chosen="${chosen%% *}"
test -n "$chosen"
diff --git a/.local/share/bg b/.local/share/bg
deleted file mode 120000
index b41641d..0000000
--- a/.local/share/bg
+++ /dev/null
@@ -1 +0,0 @@
-thiemeyer_road_to_samarkand.jpg \ No newline at end of file
diff --git a/.local/share/thiemeyer_road_to_samarkand.jpg b/.local/share/thiemeyer_road_to_samarkand.jpg
deleted file mode 100644
index 6a30adb..0000000
--- a/.local/share/thiemeyer_road_to_samarkand.jpg
+++ /dev/null
Binary files differ