From 8cb2b3e91299e4b0efe65be29aa26e9cfdfb94ed Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 4 Jun 2024 00:40:24 +0200 Subject: [PATCH] Allow prompt customization + fix SUPER+V --- bash/bin/launch-menu | 2 +- bash/bin/launch-menu-apps | 2 +- gui/hypr/hyprland.conf | 2 +- gui/hypr/scripts.d/clipboard.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bash/bin/launch-menu b/bash/bin/launch-menu index 8bcc5002..30dbcf92 100755 --- a/bash/bin/launch-menu +++ b/bash/bin/launch-menu @@ -1,2 +1,2 @@ #!/usr/bin/env bash -bemenu --no-cursor --no-touch --ignorecase --prompt Execute --accept-single --bottom --border 2 --monitor DP-1 --no-overlap --wrap --list 20 --margin 20 +bemenu --no-cursor --no-touch --ignorecase --prompt ${1} accept-single --bottom --border 2 --monitor DP-1 --no-overlap --wrap --list 20 --margin 20 diff --git a/bash/bin/launch-menu-apps b/bash/bin/launch-menu-apps index 0cc63db3..f29fe540 100755 --- a/bash/bin/launch-menu-apps +++ b/bash/bin/launch-menu-apps @@ -34,7 +34,7 @@ for app in "${!apps[@]}"; do done # Make selection -selection=$(echo -e "${apps_keys}" | ${HOME}/.local/bin/launch-menu) +selection=$(echo -e "${apps_keys}" | ${HOME}/.local/bin/launch-menu "start") # Execute # shellcheck disable=SC2086 diff --git a/gui/hypr/hyprland.conf b/gui/hypr/hyprland.conf index 303678a6..537d9d55 100644 --- a/gui/hypr/hyprland.conf +++ b/gui/hypr/hyprland.conf @@ -85,7 +85,7 @@ env = ELECTRON_OZONE_PLATFORM_HINT=wayland # -> Bindings # --> Programs bind = SUPER, SUPER_L, exec, pkill -9 $programsMenuKill || $programsJobrunner $programsMenu -bind = SUPER, V, exec, exec $programsJobrunner $programsClipboard" +bind = SUPER, V, exec, exec $programsJobrunner $programsClipboard bind = SUPER, A, exec, exec $programsJobrunner $programsTerminal bind = SUPER, S, exec, exec $programsJobrunner $programsFM bind = SUPER, D, exec, exec $programsJobrunner $programsBrowser diff --git a/gui/hypr/scripts.d/clipboard.sh b/gui/hypr/scripts.d/clipboard.sh index b6f7d4ff..18b90a14 100755 --- a/gui/hypr/scripts.d/clipboard.sh +++ b/gui/hypr/scripts.d/clipboard.sh @@ -2,4 +2,4 @@ # The only reason this script exists is because # Hyprland, jobrunner, idk does not support piping. -cliphist list | launch-menu | cliphist decode | wl-copy +cliphist list | ${HOME}/.local/bin/launch-menu "copy" | cliphist decode | wl-copy