diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/.config/sway/config | 2 | ||||
-rwxr-xr-x | sway/.local/bin/sway-menu-run (renamed from sway/.local/bin/wmenu-run) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sway/.config/sway/config b/sway/.config/sway/config index dbb5444..a4d284d 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -98,7 +98,7 @@ bindsym Print exec slurp | grim -g - - | wl-copy --type image/png bindsym $mod+Print exec /usr/share/sway/scripts/grimshot --notify save area bindsym $mod+space exec j4-dmenu-desktop --dmenu="$menu" --term=$TERMINAL -bindsym $mod+shift+space exec wmenu-run | $menu | xargs swaymsg exec -- +bindsym $mod+shift+space exec sway-menu-run | $menu | xargs -r swaymsg exec -- bindsym $mod+v exec (cliphist list | $menu -l 10 || (cliphist list | head -n1)) | cliphist decode | wl-copy bindsym $mod+Shift+v exec cliphist list | $menu -l 10 | cliphist delete diff --git a/sway/.local/bin/wmenu-run b/sway/.local/bin/sway-menu-run index 2cda132..318e54d 100755 --- a/sway/.local/bin/wmenu-run +++ b/sway/.local/bin/sway-menu-run @@ -1,7 +1,7 @@ #!/bin/sh cache_dir="${XDG_CACHE_HOME:-"$HOME/.cache"}" -cache="$cache_dir/wmenu_run" +cache="$cache_dir/sway-menu-run" uptodate() { IFS=: @@ -28,7 +28,7 @@ get_bin() { [ ! -e "$cache_dir" ] && mkdir -p "$cache_dir" if [ ! -e "$cache" ] || ! uptodate; then - get_bin | sort -u | tee "$cache" + get_bin | sort -u | tee "$cache" | sway-menu else cat "$cache" fi |