Skip to content

Commit

Permalink
Merge pull request svenstaro#71 from GladOSkar/patch-1
Browse files Browse the repository at this point in the history
README: Add command to write out result using `xdotool` to examples
  • Loading branch information
svenstaro committed Jun 19, 2021
2 parents fb455cb + 9755a74 commit 1006709
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ $ make install
NOTE: `{result}` should be quoted since it may contain characters that your shell would otherwise interpret:

rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '{result}' | xclip"

Alternatively, this example would immediately type out the result (using `xdotool`) wherever your cursor currently is
(upon pressing Control+Return/`-kb-accept-custom`):

rofi -modi calc -show calc -calc-command 'xdotool type --clearmodifiers "{result}"'

- It's convenient to bind it to a key combination in i3. For instance, you could use:

Expand Down

0 comments on commit 1006709

Please sign in to comment.