commit 675173e51e4147005227b7e09bfa8f1baf70fd1a parent 029c69680b437d4f39d9cb3a3af1ec9073ed5331 Author: Chris Bracken <chris@bracken.jp> Date: Wed, 8 Sep 2021 16:33:26 -0700 sway: use wofi instead of dmenu wofi is a Wayland-compatible re-implementation of rofi. https://hg.sr.ht/~scoopta/wofi Diffstat:
M | .config/sway/config | | | 2 | +- |
M | .config/sway/exit_check.sh | | | 13 | +++++-------- |
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/.config/sway/config b/.config/sway/config @@ -35,7 +35,7 @@ set $term alacritty # Your preferred application launcher. # Note: it's recommended that you pass the final command to sway. -set $menu dmenu_path | dmenu -fn "DejaVu Sans Mono-16" | xargs swaymsg exec -- +set $menu wofi --show run # Set lock screen handler. set $lock_screen swaylock -c 000000 diff --git a/.config/sway/exit_check.sh b/.config/sway/exit_check.sh @@ -1,18 +1,15 @@ #!/bin/sh -# Use dmenu to check if the user wants to exit sway. +# Use wofi to check if the user wants to exit sway. -# If dmenu isn't installed, bail out immediately. -if [ ! -e /usr/local/bin/dmenu ]; then +# If wofi isn't installed, bail out immediately. +which wofi +if [ $? != 0 ]; then swaymsg exit fi -# Work around dmenu crasher when XOpenIM() returns NULL. -# See: https://bugs.archlinux.org/task/61673 -unset XMODIFIERS - while [ "$choice" != "no" ] && [ "$choice" != "yes" ]; do - choice=$(echo -e 'no\nyes' | dmenu -fn "DejaVu Sans Mono-16" -p "Really exit?") + choice=$(echo -e 'no\nyes' | wofi --show dmenu -p "Really exit?") done if [ "$choice" = "yes" ]; then swaymsg exit