~yerinalexey/dotfiles

2c601469e9962352786d0fd31b62bae7ac9d492f — Alexey Yerin a day ago 2b4dd3d master
scripts,river: update bemenu prompt
5 files changed, 5 insertions(+), 5 deletions(-)

M river/init
M scripts/emoji-menu
M scripts/pass-menu
M scripts/player-menu
M scripts/shutdown-menu
M river/init => river/init +1 -1
@@ 37,7 37,7 @@ riverctl map normal $mod Space toggle-float
riverctl map normal $mod Return spawn $TERMINAL

# Start application launcher
riverctl map normal $mod D spawn bemenu-run -p "Run: "
riverctl map normal $mod D spawn 'bemenu-run -p ">"'

# Fullscreen a view
riverctl map normal $mod F toggle-fullscreen

M scripts/emoji-menu => scripts/emoji-menu +1 -1
@@ 9,7 9,7 @@ if [ ! -f "$EMOJI_FILE" ]; then
		jq -r '.[] | .emoji + " " + .description + "; :" + .aliases[0] + ":"' > "$EMOJI_FILE"
fi

choice="$(bemenu -p "Copy emoji:" -i -l 30 < "$EMOJI_FILE")"
choice="$(bemenu -p "Emoji>" -i -l 30 < "$EMOJI_FILE")"

# Check if emoji is selected and is contained in the list
# This prevents copying nothing on typos or when closing menu

M scripts/pass-menu => scripts/pass-menu +1 -1
@@ 10,7 10,7 @@ passwords="$(find "$password_store" -type f ! -name ".gpg-id" | \
	sed "s@$password_store/@@g; s/\.gpg$//g")"

# Select one of them
selected="$(printf "%s" "$passwords" | bemenu -i -l 10 -p "Copy password:")"
selected="$(printf "%s" "$passwords" | bemenu -i -l 10 -p "Pass>")"
selected_short="$(basename "$selected")"

# Decrypt it

M scripts/player-menu => scripts/player-menu +1 -1
@@ 8,7 8,7 @@ current_player="$(cat /tmp/player-name)"
players="$(playerctl -l)"
players="$(printf "%s" "$players" | sed "s|^$current_player$|-> \0|")"

selected_player="$(printf "%s" "$players" | bemenu -p "Select player:" -l -1)"
selected_player="$(printf "%s" "$players" | bemenu -p "Player>" -l -1)"

if [ -n "$selected_player" ]; then
	printf "%s" "$selected_player" | sed 's/^-> //g' > /tmp/player-name

M scripts/shutdown-menu => scripts/shutdown-menu +1 -1
@@ 1,7 1,7 @@
#!/bin/sh -e

result="$(printf "Shutdown\nReboot\nLog out\nReload config" | \
	bemenu -p "Action:" -i -l -1)"
	bemenu -p "Shutdown>" -i -l -1)"

case "$result" in
	"Shutdown")