commit 7a00f8cf17c4a1c82a967205cc3534c502a4c9aa parent 940bd8e963ed17dcb9caf5ac809a70161bfdf107 Author: Chris Down <chris@chrisdown.name> Date: Tue, 24 Mar 2020 13:49:38 +0000 clipmenu: Tersify rofi check Diffstat:
M | clipmenu | | | 6 | ++---- |
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/clipmenu b/clipmenu @@ -27,10 +27,8 @@ EOF exit 0 fi -if [[ "$CM_LAUNCHER" == rofi ]]; then - # rofi supports dmenu-like arguments through the -dmenu flag - set -- -dmenu "$@" -fi +# rofi supports dmenu-like arguments through the -dmenu flag +[[ "$CM_LAUNCHER" == rofi ]] && set -- -dmenu "$@" list_clips() { LC_ALL=C sort -rnk 1 < "$cache_file" | cut -d' ' -f2- | awk '!seen[$0]++'