diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/.config/sway/config | 4 | ||||
-rwxr-xr-x | sway/.local/bin/sway-menu | 10 | ||||
-rwxr-xr-x | sway/.local/bin/sway-menu-run | 34 |
3 files changed, 2 insertions, 46 deletions
diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 3f1b19b..ab80b30 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -5,7 +5,7 @@ set $down j set $up k set $right l -set $menu sway-menu +set $menu wmenu set $out1 - set $out2 - @@ -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 sway-menu-run | $menu | xargs -r swaymsg exec -- +bindsym $mod+shift+space exec wmenu-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/sway-menu b/sway/.local/bin/sway-menu deleted file mode 100755 index 6bafccc..0000000 --- a/sway/.local/bin/sway-menu +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -wmenu -i -f 'monospace 12' \ - -n"#$BASE16_COLOR_06_HEX" \ - -N"#$BASE16_COLOR_00_HEX" \ - -S"#$BASE16_COLOR_00_HEX" \ - -s"#$BASE16_COLOR_09_HEX" \ - -m"#$BASE16_COLOR_06_HEX" \ - -M"#$BASE16_COLOR_0C_HEX" \ - "$@" diff --git a/sway/.local/bin/sway-menu-run b/sway/.local/bin/sway-menu-run deleted file mode 100755 index 318e54d..0000000 --- a/sway/.local/bin/sway-menu-run +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh - -cache_dir="${XDG_CACHE_HOME:-"$HOME/.cache"}" -cache="$cache_dir/sway-menu-run" - -uptodate() { - IFS=: - for path in $PATH; do - if test "$path" -nt "$cache"; then - return 1 - fi - done - - return 0 -} - -get_bin() { - IFS=: - for path in $PATH; do - for bin in "$path"/*; do - if [ -x "$bin" ]; then - echo "${bin##*/}" - fi - done - done -} - -[ ! -e "$cache_dir" ] && mkdir -p "$cache_dir" - -if [ ! -e "$cache" ] || ! uptodate; then - get_bin | sort -u | tee "$cache" | sway-menu -else - cat "$cache" -fi |