From d5f14c117841fd21ac68f8998757b72bd04e0461 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 4 Jun 2024 12:58:19 +0200 Subject: [PATCH] Add keybind layout help --- gui/hypr/hyprland.conf | 3 ++ gui/hypr/scripts.d/layout.sh | 63 ++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100755 gui/hypr/scripts.d/layout.sh diff --git a/gui/hypr/hyprland.conf b/gui/hypr/hyprland.conf index bf703b13..69b574bc 100644 --- a/gui/hypr/hyprland.conf +++ b/gui/hypr/hyprland.conf @@ -88,6 +88,9 @@ env = CLUTTER_BACKEND,wayland env = ELECTRON_OZONE_PLATFORM_HINT=wayland # Bindings +# -> Help +bind = SUPER, Escape, exec, $programsTerminal -e "$dirHypr/scripts.d/layout.sh" + # -> Menus bind = SUPER, SUPER_L, exec, pkill -9 $programsMenuKill || $programsJobrunner $programsMenu diff --git a/gui/hypr/scripts.d/layout.sh b/gui/hypr/scripts.d/layout.sh new file mode 100755 index 00000000..b47e2d93 --- /dev/null +++ b/gui/hypr/scripts.d/layout.sh @@ -0,0 +1,63 @@ +#!/usr/bin/env bash + +# Create layout file +cat << EOF >> /tmp/hyprland-layout.txt +Hyprland Keybindings +Listed in order of appearance in hyprland.conf + +Help +-> Display keybind layout -> SUPER + ESC + +Menus +-> Display application list -> SUPER + +Clipboard +-> Show clipboard contents -> SUPER + V +-> Clear clipboard -> SUPER + SHIFT + V + +Programs +-> Start terminal emulator -> SUPER + A +-> Start file manager -> SUPER + S +-> Start web browser -> SUPER + D + +Window manipulation +-> Move window -> SUPER + LMB +-> Resize window -> SUPER + RMB +-> Close active window -> SUPER + Q +-> Force kill window -> SUPER + TAB +-> Toggle floating mode -> SUPER + W +-> Toggle fullscreen mode -> SUPER + F + +Special workspace +-> Toggle special workspace -> SUPER + E +-> Move to special workspace -> SUPER + Y +-> Move to normal workspace -> SUPER + SHIFT + Y + +Session management +-> Reload configuration -> SUPER + SHIFT + M +-> Lock session -> SUPER + SHIFT + L +-> Exit Hyprland -> SUPER + SHIFT + Q +-> Shutdown computer -> SUPER + SHIFT + W +-> Restart computer -> SUPER + SHIFT + E + +Media keys +-> Output +--> Raise volume -> Audio Raise Volume +--> Lower volume -> Audio Lower Volume +--> Mute -> Audio Mute +-> Input +--> Raise volume -> SHIFT + Audio Raise Volume +--> Lower volume -> SHIFT + Audio Lower Volume +--> Mute -> SHIFT + Audio Mute +-> Playback +--> Toggle playback -> Audio Play +--> Stop playback -> Audio stop +--> Play next track -> Audio Next +--> Play previous track -> Audio Previous +EOF + +# Display layout file +less /tmp/hyprland-layout.txt + +# Remove layout file +rm -rf /tmp/hyprland-layout.txt