This commit is contained in:
Bryan Ramos 2023-06-01 21:29:51 -04:00
parent febff1148f
commit d4881a4511
2 changed files with 7 additions and 1 deletions

View file

@ -82,7 +82,12 @@ input type:pointer {
bindsym $mod+Shift+d exec emote bindsym $mod+Shift+d exec emote
# Launch ranger file explorer # 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. # Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod. # Resize them with right mouse button + $mod.

View file

@ -9,6 +9,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
rofi-wayland rofi-wayland
grim grim
jq
slurp slurp
wl-clipboard wl-clipboard