aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-07-30 20:28:04 +0300
committerawy <awy@awy.one>2025-07-30 20:28:04 +0300
commitbd77fbce81efc16fc91dd7cc9d9807e27d70d064 (patch)
tree1af91789a564e8390563e134dec809b7f1f6c5cc /.local
parentbde37c9e56a339b7970f4b300488f053406000ef (diff)
downloadhyprdots-bd77fbce81efc16fc91dd7cc9d9807e27d70d064.tar.gz
rofi
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/bookmarks2
-rwxr-xr-x.local/bin/doas_askpass2
-rwxr-xr-x.local/bin/rssget4
-rwxr-xr-x.local/bin/statusbar/sb-doppler2
-rwxr-xr-x.local/bin/statusbar/sb-kbselect4
-rwxr-xr-x.local/bin/td-toggle4
6 files changed, 9 insertions, 9 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/doas_askpass b/.local/bin/doas_askpass
index f5d61ef..49a56ef 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 -P -p password:" doas_askpass echo working
# don't mind the man behind the curtain
log_user 0
diff --git a/.local/bin/rssget b/.local/bin/rssget
index 45064b7..5406d33 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
+# rofi -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/statusbar/sb-doppler b/.local/bin/statusbar/sb-doppler
index 1930752..e495510 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" | 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/statusbar/sb-kbselect b/.local/bin/statusbar/sb-kbselect
index f4d3e9e..1614480 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: mew
+# requirements: rofi -dmenu
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 | mew -l 15)"
+ 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)"
[ -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/td-toggle b/.local/bin/td-toggle
index 977cc56..60a5f6a 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 -dmenu -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 -dmenu -i -p "Turn on transmission daemon?")" = "Yes" ] && transmission-daemon && notify-send "transmission-daemon enabled."
fi
sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-waybar}"