Skip to content

Paste on selection from rofi ? #137

Answered by ghost
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Oopsie. Did not read the documentation btw. Make an executable .local/bin/rofipaste

#!/bin/bash
[ -z "$@" ] && greenclip print || {
	greenclip print "$1"
  	coproc (xdotool key --clearmodifiers "ctrl+v" &)
  	exit 0 ; }

chmod +x .local/bin/rofipaste & bind it.
bindsym $mod+c exec --no-startup-id rofi -modi "clipboard:rofipaste" -show clipboard
Make sure .local/bin is in $PATH.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
0 participants