diff --git a/config/hyprland/hyprland.conf b/config/hyprland/hyprland.conf index ebcbda92..4b15350f 100644 --- a/config/hyprland/hyprland.conf +++ b/config/hyprland/hyprland.conf @@ -174,7 +174,8 @@ bind = $mainMod, R, exec, rofi -show run -theme ~/NixFlake/config/rofi/rofi.rasi bind = $mainMod, B, exec, rofi -show filebrowser -theme ~/NixFlake/config/rofi/rofi.rasi bind = $mainMod, D, exec, ~/NixFlake/config/rofi/menus/systemd-podman.fish bind = $mainMod, escape, exec, ~/NixFlake/config/rofi/menus/power.fish -bind = $mainMod, L, exec, ~/NixFlake/config/rofi/menus/lectures.fish +bind = $mainMod, O, exec, ~/NixFlake/config/rofi/menus/lectures.fish +bind = $mainMod, M, exec, ~/NixFlake/config/rofi/menus/keybinds.fish # Launch apps bind = $mainMod, T, exec, kitty @@ -200,10 +201,10 @@ bind = $mainMod, k, movefocus, u bind = $mainMod, j, movefocus, d # Swap windows -bind = $mainMod, left, movewindow, l -bind = $mainMod, right, movewindow, r -bind = $mainMod, up, movewindow, u -bind = $mainMod, down, movewindow, d +bind = $mainMod CTRL, h, movewindow, l +bind = $mainMod CTRL, l, movewindow, r +bind = $mainMod CTRL, k, movewindow, u +bind = $mainMod CTRL, d, movewindow, d # Switch workspaces with mainMod + [1-9] for main monitor, mainMod + 0 for secondary monitor bind = $mainMod, tab, workspace, previous @@ -231,16 +232,16 @@ bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Reset the workspace positions after disabling and reenabling a monitor -bind = $mainMod, R, moveworkspacetomonitor, 1 HDMI-A-1 -bind = $mainMod, R, moveworkspacetomonitor, 2 HDMI-A-1 -bind = $mainMod, R, moveworkspacetomonitor, 3 HDMI-A-1 -bind = $mainMod, R, moveworkspacetomonitor, 4 HDMI-A-1 -bind = $mainMod, R, moveworkspacetomonitor, 5 HDMI-A-1 -bind = $mainMod, R, moveworkspacetomonitor, 6 HDMI-A-1 -bind = $mainMod, R, moveworkspacetomonitor, 7 HDMI-A-1 -bind = $mainMod, R, moveworkspacetomonitor, 8 HDMI-A-1 -bind = $mainMod, R, moveworkspacetomonitor, 9 HDMI-A-1 -bind = $mainMod, R, moveworkspacetomonitor, 10 HDMI-A-2 +bind = CTRL ALT, R, moveworkspacetomonitor, 1 HDMI-A-1 +bind = CTRL ALT, R, moveworkspacetomonitor, 2 HDMI-A-1 +bind = CTRL ALT, R, moveworkspacetomonitor, 3 HDMI-A-1 +bind = CTRL ALT, R, moveworkspacetomonitor, 4 HDMI-A-1 +bind = CTRL ALT, R, moveworkspacetomonitor, 5 HDMI-A-1 +bind = CTRL ALT, R, moveworkspacetomonitor, 6 HDMI-A-1 +bind = CTRL ALT, R, moveworkspacetomonitor, 7 HDMI-A-1 +bind = CTRL ALT, R, moveworkspacetomonitor, 8 HDMI-A-1 +bind = CTRL ALT, R, moveworkspacetomonitor, 9 HDMI-A-1 +bind = CTRL ALT, R, moveworkspacetomonitor, 10 HDMI-A-2 # Scroll through existing workspaces with mainMod + scroll # bind = $mainMod, mouse_down, workspace, e+1 diff --git a/config/rofi/menus/keybinds.fish b/config/rofi/menus/keybinds.fish new file mode 100755 index 00000000..0566d44f --- /dev/null +++ b/config/rofi/menus/keybinds.fish @@ -0,0 +1,3 @@ +#!/usr/bin/env fish + +grep -E "^bind =" ~/NixFlake/config/hyprland/hyprland.conf | sd "bind = " "" | rofi -theme ~/NixFlake/config/rofi/rofi.rasi -dmenu -p "keys" -i \ No newline at end of file