diff --git a/options/custom/desktops/hyprland/binds.nix b/options/custom/desktops/hyprland/binds.nix index 7376607..12e062f 100644 --- a/options/custom/desktops/hyprland/binds.nix +++ b/options/custom/desktops/hyprland/binds.nix @@ -135,28 +135,29 @@ in { (key "mouse:274" "Super+Shift" "layoutmsg" "addmaster") (key "mouse:274" "Super+Ctrl+Shift" "layoutmsg" "removemaster") - (key "Backslash" "Super" "layoutmsg" "orientationcycle center left") - (key "Backslash" "Super+Shift" "splitratio" "exact 0.5") # Reset layout ratio + (key "Backslash" "Super" "splitratio" "exact 0.5") # Reset layout ratio + (key "Backslash" "Super+Shift" "layoutmsg" "orientationcycle center left") (key "Backspace" "Super" "changegroupactive" "f") (key "Backspace" "Super+Ctrl" "togglegroup" null) (key "Backspace" "Super+Ctrl+Shift" "lockactivegroup" "toggle") (key "Backspace" "Super+Shift" "movegroupwindow" null) - (key "Bracketleft" "Super" "layoutmsg" "rollnext") - (key "Bracketleft" "Super+Shift" "splitratio" "-0.1") - (key "Bracketright" "Super" "layoutmsg" "rollprev") - (key "Bracketright" "Super+Shift" "splitratio" "+0.1") + (key "Bracketleft" "Super" "splitratio" "-0.1") + (key "Bracketleft" "Super+Shift" "layoutmsg" "rollnext") + (key "Bracketright" "Super" "splitratio" "+0.1") + (key "Bracketright" "Super+Shift" "layoutmsg" "rollprev") (key "Comma" "Super" "layoutmsg" "swapprev") - (key "Down" "Super" "movewindoworgroup" "d") - (key "Down" "Super+Shift" "movewindow" "d") + (key "Down" "Super" "exec" "${swayosd-client} --brightness lower") + (key "Down" "Super+Shift" "movewindoworgroup" "d") (key "Equal" "Super" "exec" "${swayosd-client} --output-volume raise") (key "Equal" "Super+Shift" "exec" "${zoom} +0.1") (key "Escape" "Super" "togglefloating" null) (key "Escape" "Super+Alt" "exec" "lifx state --color red") (key "Escape" "Super+Shift" "centerwindow" null) - (key "Grave" "Super" "exec" smile) - (key "Left" "Super" "movewindoworgroup" "l") + (key "Grave" "Super" "togglespecialworkspace" "scratchpad") + (key "Grave" "Super+Shift" "movetoworkspacesilent" "special:scratchpad") + (key "Left" "Super" "exec" "${playerctl} previous") (key "Left" "Super+Alt" "exec" "${left} --scroll kensington-orbit-wireless-tb-mouse") - (key "Left" "Super+Shift" "movewindow" "l") + (key "Left" "Super+Shift" "movewindoworgroup" "l") (key "Minus" "Super" "exec" "${swayosd-client} --output-volume lower") (key "Minus" "Super+Shift" "exec" "${zoom} -0.1") (key "Period" "Super" "layoutmsg" "swapnext") @@ -166,8 +167,8 @@ in { (key "Apostrophe" "Super+Alt+Shift" "exec" "${screenshot} display --edit") (key "Return" "Super" "fullscreen" "1") # Maximize (key "Return" "Super+Shift" "fullscreen" "0") # Fullscreen - (key "Right" "Super" "movewindoworgroup" "r") - (key "Right" "Super+Shift" "movewindow" "r") + (key "Right" "Super" "exec" "${playerctl} next") + (key "Right" "Super+Shift" "movewindoworgroup" "r") (key "Semicolon" "Super" "exec" "${hyprpicker} --autocopy") (key "Semicolon" "Super+Shift" "exec" "${hyprpicker} --autocopy --format rgb") (key "Slash" "Super" "exec" vrr) @@ -187,8 +188,7 @@ in { "--expression '^Picture.in.[Pp]icture$'" "--workspace special:pip" ])) - (key "Space" "Super" "togglespecialworkspace" "scratchpad") - (key "Space" "Super+Shift" "movetoworkspacesilent" "special:scratchpad") + (key "Space" "Super" "exec" "${playerctl} play-pause") (key "Space" "Super+Ctrl+Shift" "exec" (with config.custom; concatStringsSep " " [ "${window} move" @@ -200,8 +200,8 @@ in { (key "Tab" "Super" "layoutmsg" "cyclenext") (key "Tab" "Super+Shift" "alterzorder" "top") (key "Tab" "Super+Shift" "cyclenext" "floating") - (key "Up" "Super" "movewindoworgroup" "u") - (key "Up" "Super+Shift" "movewindow" "u") + (key "Up" "Super" "exec" "${swayosd-client} --brightness raise") + (key "Up" "Super+Shift" "movewindoworgroup" "u") (key "0" "Super" "exec" "${swayosd-client} --output-volume mute-toggle") (key "0" "Super+Shift" "exec" zoom)