aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-05-25 23:51:49 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-05-25 23:51:49 +0300
commit762e7c1bf71d73f88fb0f7eccadbedde17898908 (patch)
tree509f2da9ead4375339bd40bba7f13c81da6ba673
parentc28510ac087f85738ee2e716b346eb1bbc8baba5 (diff)
downloadswayrice-762e7c1bf71d73f88fb0f7eccadbedde17898908.tar.gz
swayrice-762e7c1bf71d73f88fb0f7eccadbedde17898908.zip
WIP: rofi
Some rofi scripts changes to hide passwords and match by prefix.
-rw-r--r--dotfiles/.config/sway/config2
-rwxr-xr-xdotfiles/.local/bin/menublk4
2 files changed, 3 insertions, 3 deletions
diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config
index c691386..01484c5 100644
--- a/dotfiles/.config/sway/config
+++ b/dotfiles/.config/sway/config
@@ -327,7 +327,7 @@ bindsym --to-code {
$mod+F11 exec "killall -10 waybar"
# Shut down, restart and locking features
- $mod+Shift+e exec rofi -show session -modi "session:rofisession"
+ $mod+Shift+e exec rofi -show session -matching prefix -modi "session:rofisession"
# Resize
$mod+Shift+y exec swayresize left
diff --git a/dotfiles/.local/bin/menublk b/dotfiles/.local/bin/menublk
index 499fe5d..64d28fd 100755
--- a/dotfiles/.local/bin/menublk
+++ b/dotfiles/.local/bin/menublk
@@ -57,7 +57,7 @@ mount_dev() {
fstype="$(lsblk -r -o FSTYPE "/dev/$1" | tail -n 1)"
part="/dev/$1"
if [ "$fstype" = "crypto_LUKS" ]; then
- password="$(echo "" | rofi -dmenu -p "Enter passphrase for encrypted drive" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --ff="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")"
+ password="$(echo "" | rofi -dmenu -password -p "Enter passphrase for encrypted drive" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --ff="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")"
if [ -z "$password" ]; then
exit 0
fi
@@ -111,7 +111,7 @@ poweroff_dev() {
fi
}
-action="$(printf "mount\nunmount\npoweroff\n" | rofi -dmenu -p "What to do?" )"
+action="$(printf "mount\nunmount\npoweroff\n" | rofi -dmenu -matching prefix -p "What to do?" )"
case "$action" in
mount)