From 6a2d7ef035e54d81f818e65d8362caa06b3c2748 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 1 Apr 2019 18:26:40 +0100 Subject: [PATCH] Support dmenu clipboard manager Still needs a bit of fine-tuning to be ideal, but it's already pretty useful. --- configs/shared/misc/.config/i3/config.shared | 6 ++++++ configs/shared/x_server/.xsessionrc.shared | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/configs/shared/misc/.config/i3/config.shared b/configs/shared/misc/.config/i3/config.shared index a01dd77fa..6eb7addee 100644 --- a/configs/shared/misc/.config/i3/config.shared +++ b/configs/shared/misc/.config/i3/config.shared @@ -76,6 +76,12 @@ bindsym $mod+t exec --no-startup-id ~/.config/i3/dmenu_timer.sh ~/.local/share/s # file manager bindsym $mod+n exec st -e lf ~/Downloads +# clipboard manager +# NOTE: Ctrl-c is already covered since `clipmenu` listens for X clipboard +# events using `clipnotify`. +# NOTE: `clipmenud` is started in `.xsessionrc.shared` +bindsym Ctrl+$mod+v exec clipmenu + # Screenshot # TODO: find a better KBD for this bindsym $mod+s exec zsh -i -c snipit # note that this eclipses Tmux's M-s KBD for switching b/w session diff --git a/configs/shared/x_server/.xsessionrc.shared b/configs/shared/x_server/.xsessionrc.shared index 25346eab1..8479f8b33 100644 --- a/configs/shared/x_server/.xsessionrc.shared +++ b/configs/shared/x_server/.xsessionrc.shared @@ -16,6 +16,10 @@ xsetroot -solid "#333333" # This might be better for SSH. tmux new -d -s main +# start `clipmenud`, +# TODO: research if this would be better handled by init/clipmenud.service? +clipmenud & + # Start the Emacs server emacs --daemon