diff --git a/homeConfig/dotfiles/sway/config b/homeConfig/dotfiles/sway/config index 3c869a7..0067faa 100644 --- a/homeConfig/dotfiles/sway/config +++ b/homeConfig/dotfiles/sway/config @@ -82,7 +82,12 @@ input type:pointer { bindsym $mod+Shift+d exec emote # Launch ranger file explorer - bindsym $mod+Shift+f exec ranger + bindsym $mod+Shift+f exec alacritty -e ranger + + # Screenshot + bindsym Print exec grim ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png + bindsym Shift+Print exec grim -g "$(slurp)" ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png + bindsym $mod+Print exec sh -c 'grim -g "$(swaymsg -t get_tree | jq -j '"'"'.. | select(.type?) | select(.focused).rect | "\(.x),\(.y) \(.width)x\(.height)"'"'"')" ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png' # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. diff --git a/sysConfig/gui.nix b/sysConfig/gui.nix index 1be6a93..b4f2ac6 100644 --- a/sysConfig/gui.nix +++ b/sysConfig/gui.nix @@ -9,6 +9,7 @@ environment.systemPackages = with pkgs; [ rofi-wayland grim + jq slurp wl-clipboard