Skip to content

Commit

Permalink
feat(sway): Add screenshot keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
TLATER committed Nov 2, 2024
1 parent 29bd1c8 commit 5516293
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions home-config/config/desktop/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ in
home.packages = [
keepassxc-copy
pkgs.glib
pkgs.sway-contrib.grimshot
];

wayland.windowManager.sway = {
Expand Down
11 changes: 11 additions & 0 deletions home-config/dotfiles/sway.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ bindsym {
## Window/desktop management
floating_modifier $mod

bindsym {
$mod+G mode "screenshot"
}

mode "screenshot" {
bindsym Escape mode "default"
bindsym c exec grimshot copy active; mode "default"
bindsym r exec grimshot copy area; mode "default"
bindsym a exec grimshot copy output; mode "default"
}

bindsym {
$mod+Up focus up
$mod+Right focus right
Expand Down

0 comments on commit 5516293

Please sign in to comment.