screnshots

This commit is contained in:
Adithya 2023-04-07 13:44:31 +05:30
parent 1edcbe4f54
commit bc24824d62
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -1,13 +1,16 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let let
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl"; brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
grim = "${pkgs.grim}/bin/grim";
hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl"; hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl";
kitty = "${pkgs.kitty}/bin/kitty"; kitty = "${pkgs.kitty}/bin/kitty";
playerctl = "${pkgs.playerctl}/bin/playerctl"; playerctl = "${pkgs.playerctl}/bin/playerctl";
rofi = "${pkgs.rofi-wayland}/bin/rofi"; rofi = "${pkgs.rofi-wayland}/bin/rofi";
slurp = "${pkgs.slurp}/bin/slurp";
swaylock = "${pkgs.swaylock}/bin/swaylock"; swaylock = "${pkgs.swaylock}/bin/swaylock";
tmux = "${pkgs.tmux}/bin/tmux"; tmux = "${pkgs.tmux}/bin/tmux";
wpctl = "${pkgs.wireplumber}/bin/wpctl"; 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"; change-wallpaper = "${pkgs.scripts}/bin/chpaper ${pkgs.catppuccin-wallpapers}/share/wallpapers";
in in
{ {
@ -48,6 +51,9 @@ in
bind = SUPER_SHIFT,escape, exec, ${pkgs.scripts}/bin/power-menu bind = SUPER_SHIFT,escape, exec, ${pkgs.scripts}/bin/power-menu
bind = SUPER,f11, exec, ${pkgs.scripts}/bin/tmux-sessions 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,1, workspace, 1
bind = SUPER,2, workspace, 2 bind = SUPER,2, workspace, 2
bind = SUPER,3, workspace, 3 bind = SUPER,3, workspace, 3