home/wayland: add rofi run Super+Shift+R shortcut

This commit is contained in:
Aly Raffauf 2024-07-25 20:25:22 -04:00
parent b6bf3c7ab1
commit 94df35b166
3 changed files with 4 additions and 1 deletions

View file

@ -31,6 +31,7 @@ in {
display-combi = "Search"; display-combi = "Search";
display-filebrowser = "Files"; display-filebrowser = "Files";
display-run = "Run";
display-ssh = "SSH"; display-ssh = "SSH";
display-window = "Windows"; display-window = "Windows";
drun-display-format = "{icon} {name}"; drun-display-format = "{icon} {name}";

View file

@ -28,6 +28,7 @@ in {
bind = bind =
[ [
"$mod CONTROL,L,exec,${lib.getExe pkgs.swaylock}" "$mod CONTROL,L,exec,${lib.getExe pkgs.swaylock}"
"$mod SHIFT,R,exec,${lib.getExe config.programs.rofi.package} -show run"
"$mod SHIFT,S,movetoworkspace,special:magic" "$mod SHIFT,S,movetoworkspace,special:magic"
"$mod SHIFT,V,togglefloating" "$mod SHIFT,V,togglefloating"
"$mod SHIFT,W,fullscreen" "$mod SHIFT,W,fullscreen"
@ -39,7 +40,6 @@ in {
"$mod,E,exec,${lib.getExe cfg.defaultApps.editor}" "$mod,E,exec,${lib.getExe cfg.defaultApps.editor}"
"$mod,F,exec,${lib.getExe cfg.defaultApps.fileManager}" "$mod,F,exec,${lib.getExe cfg.defaultApps.fileManager}"
"$mod,F11,exec,pkill -SIGUSR1 waybar" "$mod,F11,exec,pkill -SIGUSR1 waybar"
''$mod,M,exec,${lib.getExe config.programs.rofi.package} -show power-menu -modi "power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot"''
"$mod,R,exec,${lib.getExe config.programs.rofi.package} -show combi" "$mod,R,exec,${lib.getExe config.programs.rofi.package} -show combi"
"$mod,S,togglespecialworkspace,magic" "$mod,S,togglespecialworkspace,magic"
"$mod,T,exec,${lib.getExe cfg.defaultApps.terminal}" "$mod,T,exec,${lib.getExe cfg.defaultApps.terminal}"
@ -51,6 +51,7 @@ in {
"CONTROL,F12,exec,${helpers.screenshot}" "CONTROL,F12,exec,${helpers.screenshot}"
"CTRL ALT,M,submap,move" "CTRL ALT,M,submap,move"
"CTRL ALT,R,submap,resize" "CTRL ALT,R,submap,resize"
''$mod,M,exec,${lib.getExe config.programs.rofi.package} -show power-menu -modi "power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot"''
] ]
++ builtins.map (x: "$mod SHIFT,${toString x},movetoworkspace,${toString x}") [1 2 3 4 5 6 7 8 9] ++ builtins.map (x: "$mod SHIFT,${toString x},movetoworkspace,${toString x}") [1 2 3 4 5 6 7 8 9]
++ builtins.map (x: "$mod,${toString x},workspace,${toString x}") [1 2 3 4 5 6 7 8 9] ++ builtins.map (x: "$mod,${toString x},workspace,${toString x}") [1 2 3 4 5 6 7 8 9]

View file

@ -95,6 +95,7 @@ in {
"${modifier}+S" = "scratchpad show"; "${modifier}+S" = "scratchpad show";
"${modifier}+Shift+Comma" = "move container to workspace prev; workspace prev"; "${modifier}+Shift+Comma" = "move container to workspace prev; workspace prev";
"${modifier}+Shift+Period" = "move container to workspace next; workspace next"; "${modifier}+Shift+Period" = "move container to workspace next; workspace next";
"${modifier}+Shift+R" = "exec ${lib.getExe config.programs.rofi.package} -show run";
"${modifier}+Shift+S" = "move scratchpad"; "${modifier}+Shift+S" = "move scratchpad";
"${modifier}+Shift+V" = "floating toggle"; "${modifier}+Shift+V" = "floating toggle";
"${modifier}+Shift+W" = "fullscreen toggle"; "${modifier}+Shift+W" = "fullscreen toggle";