sway: use swappy, fasd

This commit is contained in:
Konstantin Koslowski 2021-02-18 16:25:02 +01:00
parent 90c0e2c903
commit 818df23bea

5
config
View file

@ -25,6 +25,8 @@ set $font Cascadia Code PL Regular 10
# Your preferred application launcher
set $menu wofi --show drun --prompt applications
set $fasd $HOME/.zprezto/modules/fasd/external/fasd
set $files $fasd -alt | wofi --show dmenu --prompt "recent files and directories" | xargs xdg-open
#
# Host Specific
@ -90,6 +92,7 @@ bindsym --release button3 kill
# Start your launcher
bindsym $mod+r exec $menu
bindsym $mod+Shift+r exec $files
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@ -191,6 +194,8 @@ bindsym XF86MonBrightnessDown exec $brightness_cmd decrease
#
# copy selection to clipboard
bindsym Print exec grim -g "$(slurp)" - | wl-copy
# copy selection to swappy
bindsym Shift+Print exec grim -g "$(slurp)" - | swappy -f -
# save selection
bindsym $mod+Print exec grim -g "$(slurp)" \
$(xdg-user-dir PICTURES)/screenshot_$(date +'%Y%m%d_%H%M%S').png