i3: fix screenshot

This commit is contained in:
Magic_RB 2021-01-10 19:51:28 +01:00
parent 9532a33ca3
commit 92b1f62b45
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, hostname }:
{ pkgs, hostname, screenshot }:
with pkgs.lib;
@ -142,9 +142,9 @@ bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
bindsym --release Print exec /home/main/.local/bin/screenshot select
bindsym --release Shift+Print exec /home/main/.local/bin/screenshot screen
bindsym --release Control+Shift+Print exec /home/main/.local/bin/screenshot focused
bindsym --release Print exec ${screenshot}/bin/screenshot select
bindsym --release Shift+Print exec ${screenshot}/bin/screenshot screen
bindsym --release Control+Shift+Print exec ${screenshot}/bin/screenshot focused
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.

View file

@ -13,7 +13,7 @@ hostname:
]);
home.file = {
".config/i3/config".text = (import ./config.nix { inherit hostname pkgs; }).config;
".config/i3/config".text = (import ./config.nix { inherit hostname pkgs; screenshot = custom.screenshot; }).config;
".config/i3/status.toml".text = (import ./status.toml.nix { inherit hostname pkgs; }).config;
};
}