aboutsummaryrefslogtreecommitdiff
path: root/share/home
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2023-11-09 17:54:57 +0100
committerMiran Bastaja <miran.bastaja04@gmail.com>2023-11-09 17:54:57 +0100
commitb9de0ae5245e9061c53e8e74f94071508c87d77c (patch)
treeb58441ddc802615d9b8f58a5ad2fd338f36c67e9 /share/home
parentd05773cb410f7ed60d7c17b8f595460dc3d093f5 (diff)
hyprland: add screenshot bind
Diffstat (limited to 'share/home')
-rw-r--r--share/home/hyprland.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/home/hyprland.nix b/share/home/hyprland.nix
index 57d591a..ba4aa0b 100644
--- a/share/home/hyprland.nix
+++ b/share/home/hyprland.nix
@@ -56,6 +56,11 @@
binde =, XF86MonBrightnessUp, exec, brightnessctl set +5%
binde =, XF86MonBrightnessDown, exec, brightnessctl set 5%-
+ # Screenshotting
+ # My stupid laptop outputs these three key codes when the PrtSc key is
+ # pressed instead of using just one code like any sane device would
+ bind = SUPER SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy
+
input {
# focus change on cursor move
follow_mouse = 1
@@ -68,7 +73,7 @@
'';
};
- home.packages = with pkgs; [ brightnessctl wireplumber ];
+ home.packages = with pkgs; [ brightnessctl wireplumber grim slurp wl-clipboard ];
services.dunst.enable = true;
programs.rofi.enable = true;
}