1

Add rofi hyprland keybindings menu

This commit is contained in:
2023-04-25 11:34:08 +02:00
parent f77ae85444
commit 30ed5ff6b6
2 changed files with 19 additions and 15 deletions

View File

@ -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

View File

@ -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