From ca5f146dc7bbaf125034f10a06c9b6136e68fed4 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 3 Jun 2024 10:30:16 +0200 Subject: [PATCH] Fix keybinds not working --- gui/hypr/hyprland.conf | 12 +++++++----- gui/hypr/scripts.d/clipboard.sh | 4 ++++ 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100755 gui/hypr/scripts.d/clipboard.sh diff --git a/gui/hypr/hyprland.conf b/gui/hypr/hyprland.conf index ff9eca5a..ef6251eb 100644 --- a/gui/hypr/hyprland.conf +++ b/gui/hypr/hyprland.conf @@ -35,12 +35,16 @@ $settingsEnableAnimations = 1 $programsTerminal = konsole $programsFM = dolphin $programsBrowser = librewolf -$programsMenu = j4-dmenu-desktop --dmenu=launch-menu +$programsMenu = j4-dmenu-desktop --dmenu=$dirHome/.local/bin/launch-menu +$programsMenuKill = bemenu +$programsClipboard = $dirHypr/scripts.d/clipboard.sh $programsNotiDaemon = fnott $programsAuthAgent = /usr/lib/polkit-kde-authentication-agent-1 $programsBar = waybar # Application startup +# -> Jobrunner +exec=exec env JOBRUNNER_DISABLEOUTPUT=y $dirHome/.local/bin/jobrunner # -> Programs exec=pkill -9 $programsNotiDaemon; $programsNotiDaemon exec=pkill -9 $programsAuthAgent; $programsAuthAgent @@ -51,8 +55,6 @@ exec=wl-paste --type text --watch cliphist store exec=wl-paste --type image --watch cliphist store # -> Screen sharing exec=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP -# -> Jobrunner -exec=if [ -f /tmp/jobrunner/jobrunner.pid ]; then echo EXIT > /tmp/jobrunner/jobrunner.cmd; sleep 1s; fi; exec $dirHome/.local/bin/jobrunner # -> Autostart exec-once=cd $dirHypr;exec $dirHypr/scripts.d/autostart.sh @@ -77,8 +79,8 @@ env = ELECTRON_OZONE_PLATFORM_HINT=wayland # HYPRLAND CONFIGURATION OPTIONS # -> Bindings # --> Programs -bind = SUPER, SUPER_L, exec, $programsMenu -bind = SUPER, V, exec, cliphist list | launch-menu | cliphist decode | wl-copy +bind = SUPER, SUPER_L, exec, pkill -9 $programsMenuKill || $dirHome/.local/bin/jobrunner-runjob $programsMenu +bind = SUPER, V, exec, exec $dirHome/.local/bin/jobrunner-runjob "$programsClipboard" bind = SUPER, A, exec, $programsTerminal bind = SUPER, S, exec, $programsFM bind = SUPER, D, exec, $programsBrowser diff --git a/gui/hypr/scripts.d/clipboard.sh b/gui/hypr/scripts.d/clipboard.sh new file mode 100755 index 00000000..d158d3a5 --- /dev/null +++ b/gui/hypr/scripts.d/clipboard.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# The only reason this script exists is because +# Hyprland, jobrunner, idk does not support piping. +cliphist list | launch-menu | cliphist decode | wl-copy