add hypr keybinds
This commit is contained in:
@@ -1,26 +1,111 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
wayland.windowManager.hyprland.keybinds = {
|
||||
"global" = {
|
||||
"MOD+Return" = "exec alacritty";
|
||||
"MOD+d" = "exec dmenu_run";
|
||||
"MOD+Shift+q" = "closewindow";
|
||||
"MOD+q" = "killactive";
|
||||
"MOD+Shift+r" = "reload";
|
||||
"MOD+Shift+e" = "exit";
|
||||
"MOD+f" = "togglefullscreen";
|
||||
"MOD+Shift+f" = "togglesplitfullscreen";
|
||||
"MOD+h" = "focusleft";
|
||||
"MOD+l" = "focusright";
|
||||
"MOD+j" = "focusdown";
|
||||
"MOD+k" = "focusup";
|
||||
"MOD+Shift+h" = "movewindowleft";
|
||||
"MOD+Shift+l" = "movewindowright";
|
||||
"MOD+Shift+j" = "movewindowdown";
|
||||
"MOD+Shift+k" = "movewindowup";
|
||||
"MOD+Tab" = "focusnext";
|
||||
"MOD+Shift+Tab" = "focusprev";
|
||||
};
|
||||
wayland.windowManager.hyprland.settings = let super = "Super";
|
||||
in {
|
||||
bind = [
|
||||
"${super}, Super_L, exec, pkill fuzzel || fuzzel"
|
||||
|
||||
"${super}, H, exec, ~/.config/hypr/hyprland/scripts/hide_window.sh h"
|
||||
"${super}, I, exec, ~/.config/hypr/hyprland/scripts/hide_window.sh u"
|
||||
|
||||
"${super}, P, pseudo"
|
||||
"${super}, Q, killactive"
|
||||
"${super}+Shift+Alt, Q, exec, hyprctl kill"
|
||||
|
||||
"${super}, Left, movefocus, l"
|
||||
"${super}, Right, movefocus, r"
|
||||
"${super}, Up, movefocus, u"
|
||||
"${super}, Down, movefocus, d"
|
||||
|
||||
"${super}+Shift, Left, movewindow, l"
|
||||
"${super}+Shift, Right, movewindow, r"
|
||||
"${super}+Shift, Up, movewindow, u"
|
||||
"${super}+Shift, Down, movewindow, d"
|
||||
|
||||
"Alt, F4, killactive"
|
||||
|
||||
"${super}, D, fullscreen, 1"
|
||||
"${super}, F, fullscreen, 0"
|
||||
"${super}+Alt, F, togglefloating"
|
||||
|
||||
"${super}, 1, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 1"
|
||||
"${super}, 2, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 2"
|
||||
"${super}, 3, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 3"
|
||||
"${super}, 4, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 4"
|
||||
"${super}, 5, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 5"
|
||||
"${super}, 6, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 6"
|
||||
"${super}, 7, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 7"
|
||||
"${super}, 8, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 8"
|
||||
"${super}, 9, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 9"
|
||||
"${super}, 0, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh workspace 10"
|
||||
|
||||
"Ctrl+${super}, Right, workspace, r+1"
|
||||
"Ctrl+${super}, Left, workspace, r-1"
|
||||
|
||||
"${super}, L, exec, loginctl lock-session"
|
||||
|
||||
''
|
||||
${super}, Return, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "kitty" "foot" "alacritty" "wezterm" "konsole" "kgx" "uxterm" "xterm"''
|
||||
"${super}, T, exec, Telegram"
|
||||
''
|
||||
${super}, E, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "dolphin" "nautilus" "nemo" "thunar" "kitty -1 fish -c yazi"''
|
||||
''
|
||||
${super}, W, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "google-chrome-stable" "zen" "firefox" "brave" "chromium" "microsoft-edge-stable" "opera" "librewolf"''
|
||||
''
|
||||
${super}, C, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "code" "codium" "cursor" "zed" "zedit" "zeditor" "kate" "gnome-text-editor" "emacs" "command -v nvim && kitty -1 nvim"''
|
||||
|
||||
''
|
||||
Ctrl+Shift, Escape, exec, ~/.config/hypr/hyprland/scripts/launch_first_available.sh "kitty -1 fish -c btop"''
|
||||
];
|
||||
|
||||
bindd = [
|
||||
"${super}, M, exec, ~/.config/hypr/hyprland/scripts/switch_config.sh"
|
||||
"${super}+Shift, S, exec, hyprshot --freeze --clipboard-only --mode region --silent"
|
||||
"${super}+Shift, T, exec, hyprshot -m region --raw | tesseract stdin stdout"
|
||||
];
|
||||
|
||||
bindm = [
|
||||
"${super}, mouse:272, movewindow"
|
||||
"${super}, mouse:274, movewindow"
|
||||
"${super}, mouse:273, resizewindow"
|
||||
"${super}, mouse:275, togglespecialworkspace"
|
||||
];
|
||||
|
||||
bindle = [
|
||||
", XF86MonBrightnessUp, exec, brightnessctl s 5%+"
|
||||
", XF86MonBrightnessDown, exec, brightnessctl s 5%-"
|
||||
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 2%+"
|
||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"
|
||||
];
|
||||
|
||||
bindl = [
|
||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle"
|
||||
''
|
||||
, XF86AudioNext, exec, playerctl next || playerctl position `bc <<< "100 * $(playerctl metadata mpris:length) / 1000000 / 100"`''
|
||||
", XF86AudioPrev, exec, playerctl previous"
|
||||
", Print, exec, hyprshot -m output"
|
||||
];
|
||||
|
||||
binde = [
|
||||
"${super}, Minus, splitratio, -0.1"
|
||||
"${super}, Equal, splitratio, +0.1"
|
||||
];
|
||||
|
||||
# Move window to workspace
|
||||
bindwsMove = [
|
||||
"${super}+Alt, 1, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 1"
|
||||
"${super}+Alt, 2, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 2"
|
||||
"${super}+Alt, 3, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 3"
|
||||
"${super}+Alt, 4, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 4"
|
||||
"${super}+Alt, 5, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 5"
|
||||
"${super}+Alt, 6, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 6"
|
||||
"${super}+Alt, 7, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 7"
|
||||
"${super}+Alt, 8, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 8"
|
||||
"${super}+Alt, 9, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 9"
|
||||
"${super}+Alt, 0, exec, ~/.config/hypr/hyprland/scripts/workspace_action.sh movetoworkspacesilent 10"
|
||||
"${super}+Alt, S, movetoworkspacesilent, special"
|
||||
"${super}, S, togglespecialworkspace"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user