From bc24824d625f2aaebe947f639473f21785b58e02 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 7 Apr 2023 13:44:31 +0530 Subject: [PATCH] screnshots --- home/wm/hyprland/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index 46a317d..ebd910c 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -1,13 +1,16 @@ { config, pkgs, ... }: let brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl"; + grim = "${pkgs.grim}/bin/grim"; hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl"; kitty = "${pkgs.kitty}/bin/kitty"; playerctl = "${pkgs.playerctl}/bin/playerctl"; rofi = "${pkgs.rofi-wayland}/bin/rofi"; + slurp = "${pkgs.slurp}/bin/slurp"; swaylock = "${pkgs.swaylock}/bin/swaylock"; tmux = "${pkgs.tmux}/bin/tmux"; wpctl = "${pkgs.wireplumber}/bin/wpctl"; + xdg-user-dir = "${pkgs.xdg-user-dirs}/bin/xdg-user-dir"; change-wallpaper = "${pkgs.scripts}/bin/chpaper ${pkgs.catppuccin-wallpapers}/share/wallpapers"; in { @@ -48,6 +51,9 @@ in bind = SUPER_SHIFT,escape, exec, ${pkgs.scripts}/bin/power-menu bind = SUPER,f11, exec, ${pkgs.scripts}/bin/tmux-sessions + bindr = ,print, exec, ${grim} "''$(${xdg-user-dir} PICTURES)/Screenshots/screenshot-''$(date +%Y-%m-%d-%H-%M-%S).png" + bindr = SHIFT,print, exec, ${grim} -g "''$(${slurp})" "''$(${xdg-user-dir} PICTURES)/Screenshots/screenshot-''$(date +%Y-%m-%d-%H-%M-%S).png" + bind = SUPER,1, workspace, 1 bind = SUPER,2, workspace, 2 bind = SUPER,3, workspace, 3