hyprland: add screenshot key
This commit is contained in:
parent
2ce393d1ae
commit
c279e58c69
@ -1,4 +1,4 @@
|
|||||||
{ lib, pkgs, config, osConfig ? {}, outputs, ... }@args:
|
{ lib, pkgs, config, osConfig ? {}, outputs, inputs, ... }@args:
|
||||||
let
|
let
|
||||||
cfg = config.nixfiles.sessions.hyprland;
|
cfg = config.nixfiles.sessions.hyprland;
|
||||||
mkd = lib.mkDefault;
|
mkd = lib.mkDefault;
|
||||||
@ -8,6 +8,7 @@ let
|
|||||||
notifydaemon = "${pkgs.dunst}/bin/dunst";
|
notifydaemon = "${pkgs.dunst}/bin/dunst";
|
||||||
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
||||||
polkit-agent = "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
polkit-agent = "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
||||||
|
grimblast = "${inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast}/bin/grimblast";
|
||||||
|
|
||||||
# https://github.com/flatpak/xdg-desktop-portal-gtk/issues/440#issuecomment-1900520919
|
# https://github.com/flatpak/xdg-desktop-portal-gtk/issues/440#issuecomment-1900520919
|
||||||
xdpg-workaround = pkgs.writeShellScript "xdg-desktop-portal-gtk-workaround"
|
xdpg-workaround = pkgs.writeShellScript "xdg-desktop-portal-gtk-workaround"
|
||||||
@ -225,9 +226,11 @@ in
|
|||||||
"$mod SHIFT, 9, movetoworkspace, 9"
|
"$mod SHIFT, 9, movetoworkspace, 9"
|
||||||
"$mod SHIFT, 0, movetoworkspace, 10"
|
"$mod SHIFT, 0, movetoworkspace, 10"
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
# TODO find a different keybind for this because damn you muscle memory
|
||||||
"$mod, S, togglespecialworkspace, magic"
|
# # Example special workspace (scratchpad)
|
||||||
"$mod SHIFT, S, movetoworkspace, special:magic"
|
# "$mod, S, togglespecialworkspace, magic"
|
||||||
|
# "$mod SHIFT, S, movetoworkspace, special:magic"
|
||||||
|
"$mod SHIFT, S, exec, ${grimblast} copy area"
|
||||||
|
|
||||||
# Scroll through existing workspaces with mod + scroll
|
# Scroll through existing workspaces with mod + scroll
|
||||||
"$mod, mouse_down, workspace, e+1"
|
"$mod, mouse_down, workspace, e+1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user