aboutsummaryrefslogtreecommitdiffstats
path: root/config.example
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2021-01-25 21:49:50 +0100
committerGitHub <noreply@github.com>2021-01-25 21:49:50 +0100
commit916ac3bf5f50d0140a9839f523621c5d77bccf0e (patch)
treeb230491e0f0bc0811c0c66928cd48114b91e2a7a /config.example
parent6e7fd8e3db831eedcea63aa1c1869c5fcb71f265 (diff)
parent3c90a957a4b0850e66f444a84faf5b7d7f82a1c3 (diff)
downloadrofi-pass-916ac3bf5f50d0140a9839f523621c5d77bccf0e.tar.gz
Merge pull request #205 from bjonnh/feature/generic-clipboard-support
[Feature] Customization of clipboard commands.
Diffstat (limited to 'config.example')
-rw-r--r--config.example25
1 files changed, 25 insertions, 0 deletions
diff --git a/config.example b/config.example
index cb32391..ef045dc 100644
--- a/config.example
+++ b/config.example
@@ -20,6 +20,31 @@ _image_viewer () {
# display
}
+# It is possible to use wl-copy and wl-paste from wl-clipboard
+# Just uncomment the lines with wl-copy and wl-paste
+# and comment the xclip lines
+#
+_clip_in_primary() {
+ xclip
+ # wl-copy-p
+}
+
+_clip_in_clipboard() {
+ xclip -selection clipboard
+ # wl-copy
+}
+
+_clip_out_primary() {
+ xclip -o
+ # wl-paste -p
+}
+
+_clip_out_clipboard() {
+ xclip --selection clipboard -o
+ # wl-paste
+}
+
+
# xdotool needs the keyboard layout to be set using setxkbmap
# You can do this in your autostart scripts (e.g. xinitrc)