mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 03:21:35 +01:00
Add screenshot shortcut
This commit is contained in:
@@ -73,7 +73,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Home manager configuration
|
# Home manager configuration
|
||||||
home-manager.users.thiloho = { pkgs, lib, ... }: {
|
home-manager.users.thiloho = { pkgs, lib, config, ... }: {
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
@@ -86,6 +86,11 @@
|
|||||||
bars = [
|
bars = [
|
||||||
{ command = "waybar"; }
|
{ command = "waybar"; }
|
||||||
];
|
];
|
||||||
|
keybindings = let
|
||||||
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
||||||
|
in lib.mkOptionDefault {
|
||||||
|
"${modifier}+Shift+S" = ''exec grim -g "$(slurp)" - | swappy -f -'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
xwayland = false;
|
xwayland = false;
|
||||||
};
|
};
|
||||||
@@ -240,10 +245,11 @@
|
|||||||
postgresqlJitPackages.plpgsql_check
|
postgresqlJitPackages.plpgsql_check
|
||||||
dconf
|
dconf
|
||||||
tofi
|
tofi
|
||||||
wayshot
|
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
xdg-utils
|
xdg-utils
|
||||||
slurp
|
slurp
|
||||||
|
grim
|
||||||
|
swappy
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user