Added clipboard manager

This is using clipman - https://github.com/yory8/clipman.
This commit is contained in:
James Patrick 2019-06-02 00:04:28 -04:00
parent 20484c96ba
commit 0860afa4e4
2 changed files with 12 additions and 1 deletions

View File

@ -14,10 +14,13 @@ set $term kitty
# Your preferred application launcher # Your preferred application launcher
# Note: it's recommended that you pass the final command to sway # 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 $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 \ set $gopass_menu gopass ls --flat \
| rofi -dmenu -p pass -i \ | rofi -dmenu -p pass -i \
| xargs --no-run-if-empty gopass show -c | xargs --no-run-if-empty gopass show -c
set $clipman_menu clipman --selector="rofi" --select
### Idle configuration ### Idle configuration
exec swayidle -w \ exec swayidle -w \
@ -43,6 +46,9 @@ bindsym $mod+q kill
bindsym $mod+space exec $menu bindsym $mod+space exec $menu
# gopass prompt # gopass prompt
bindsym $mod+backslash exec $gopass_menu 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. # 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.
# Despite the name, also works for non-floating windows. # Despite the name, also works for non-floating windows.

View File

@ -6,3 +6,8 @@ exec redshift
### Notifications ### Notifications
exec mako exec mako
### Clipboard manager
exec clipman -d
# vim: ft=cfg