diff options
Diffstat (limited to 'sway/.local/bin/sway-menu-run')
-rwxr-xr-x | sway/.local/bin/sway-menu-run | 34 |
1 files changed, 0 insertions, 34 deletions
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 |