diff --git a/modules/desktop/hyprland/hyprland-binds.lua b/modules/desktop/hyprland/hyprland-binds.lua index 2031d8a..017b384 100644 --- a/modules/desktop/hyprland/hyprland-binds.lua +++ b/modules/desktop/hyprland/hyprland-binds.lua @@ -39,7 +39,7 @@ end local appWorkspaces = { discord = "D", - steam = "S", + steam = "T", spotify = "P", } for app,key in pairs(appWorkspaces) do @@ -47,6 +47,11 @@ for app,key in pairs(appWorkspaces) do hl.bind("SUPER + SHIFT + " .. key, hl.dsp.window.move({ workspace = "name:"..app }), {description = "move window to " .. app .. "'s workspace"}) end +hl.bind("SUPER + S", hl.dsp.exec_cmd("grimblast copy area")) +hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd("grimblast copy output")) +hl.bind("SUPER + ALT + S", hl.dsp.exec_cmd("grimblast save area")) +hl.bind("SUPER + ALT + SHIFT + S", hl.dsp.exec_cmd("grimblast save output")) + hl.bind("SUPER + mouse_down", hl.dsp.focus({ workspace = "e+1" }), { repeating = true }) hl.bind("SUPER + mouse_up", hl.dsp.focus({ workspace = "e-1" }), { repeating = true }) diff --git a/modules/desktop/hyprland/hyprland.nix b/modules/desktop/hyprland/hyprland.nix index c9692d5..d45d03f 100644 --- a/modules/desktop/hyprland/hyprland.nix +++ b/modules/desktop/hyprland/hyprland.nix @@ -43,12 +43,14 @@ }; homeManager = - { autostart, lib, ... }: + { autostart, lib, pkgs, ... }: { imports = [ ./_hyprland-lua.nix ]; + home.packages = with pkgs; [ grimblast ]; + xdg.portal.config.common.default = "*"; wayland.windowManager.hyprland = {