ENH ensure xclip is installed for clipping function
This commit is contained in:
parent
20b6c93b24
commit
c95679e6cf
|
@ -34,7 +34,7 @@ pkgs+=(seafile-client)
|
|||
pkgs+=(rxvt-unicode urxvt-perls)
|
||||
|
||||
# shell
|
||||
pkgs+=(zsh zsh-completions)
|
||||
pkgs+=(zsh zsh-completions xclip)
|
||||
|
||||
# xmonad
|
||||
mapfile -t xmonad < <("$conf_dir/xmonad/scripts/runtime_pkgs")
|
||||
|
|
|
@ -355,6 +355,7 @@ man() {
|
|||
## --------------------------------------------------
|
||||
# enable x11 clipboard sync
|
||||
## --------------------------------------------------
|
||||
if exists xclip; then
|
||||
function x11-clip-wrap-widgets() {
|
||||
# NB: Assume we are the first wrapper and that we only wrap native widgets
|
||||
# See zsh-autosuggestions.zsh for a more generic and more robust wrapper
|
||||
|
@ -390,6 +391,7 @@ local paste_widgets=(
|
|||
)
|
||||
x11-clip-wrap-widgets copy $copy_widgets
|
||||
x11-clip-wrap-widgets paste $paste_widgets
|
||||
fi
|
||||
|
||||
{{- end }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue