diff options
author | ZachIR <zachir@librem.one> | 2025-07-30 04:02:29 -0500 |
---|---|---|
committer | ZachIR <zachir@librem.one> | 2025-07-30 04:02:29 -0500 |
commit | c16ee1caac4ad3487fb62f1b161d4e0429c97d63 (patch) | |
tree | d427cf97fabd19dd97fe5deae1fb7b4ba356373d | |
parent | 7f6a96978170769f8181b241f3b94254756aaad8 (diff) |
Move dmenu to generics
-rwxr-xr-x | dmenu | 37 |
1 files changed, 0 insertions, 37 deletions
@@ -1,37 +0,0 @@ -#!/bin/bash - -TOFI_CONF="$XDG_CONFIG_HOME/tofi/themes/dmenu" -if [ -n "$WAYLAND_DISPLAY" ]; then - if echo "$@" | grep -qE -- '-l [0-9]+'; then - declare -a ARGS - SKIP="0" - for arg in "$@"; do - echo "$arg" | grep -qE '^\s*-l\s*' && SKIP=2 - if [ "$SKIP" -gt 0 ]; then - DMENULINES="y" - TOFI_CONF="$XDG_CONFIG_HOME/tofi/themes/dmenu_vertical" - SKIP="$((SKIP - 1))" - continue - fi - if echo "$arg" | grep -qE '.* .*'; then - ARGS+=("$arg") - else - ARGS+=("$arg") - fi - done - fi -fi - -if [ -n "$WAYLAND_DISPLAY" ]; then - # Wayland - if [ -n "$DMENULINES" ]; then - tofi -c "$TOFI_CONF" -d "${ARGS[@]}" - else - tofi -c "$TOFI_CONF" -d "$@" 2>/dev/null - fi - unset ARGS -elif [ -n "$DISPLAY" ]; then - # X11 - dmenu $@ -fi -unset TOFI_CONF |