diff --git a/sway/config b/sway/config index bbd2977..70577dd 100644 --- a/sway/config +++ b/sway/config @@ -14,10 +14,13 @@ set $term kitty # Your preferred application launcher # Note: it's recommended that you pass the final command to sway set $menu rofi -m $(expr $(swaymsg -t get_tree | jq '.nodes | map([recurse(.nodes[]?, .floating_nodes[]?) | .focused] | any) | index(true)') - 1) -show drun -p run -run-command 'swaymsg exec -- {cmd}' + set $gopass_menu gopass ls --flat \ | rofi -dmenu -p pass -i \ | xargs --no-run-if-empty gopass show -c +set $clipman_menu clipman --selector="rofi" --select + ### Idle configuration exec swayidle -w \ @@ -43,6 +46,9 @@ bindsym $mod+q kill bindsym $mod+space exec $menu # gopass prompt bindsym $mod+backslash exec $gopass_menu +# Clipboard management +bindsym $mod+Mod1+c exec $clipman_menu + # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # Despite the name, also works for non-floating windows. diff --git a/sway/config.d/autostart b/sway/config.d/autostart index 6492502..9ed414b 100644 --- a/sway/config.d/autostart +++ b/sway/config.d/autostart @@ -5,4 +5,9 @@ exec nextcloud exec redshift ### Notifications -exec mako \ No newline at end of file +exec mako + +### Clipboard manager +exec clipman -d + +# vim: ft=cfg \ No newline at end of file