Browse Source

Clipboard tools

master
Nicolas Lenz 11 months ago
parent
commit
c67edea61a
2 changed files with 11 additions and 0 deletions
  1. 5
    0
      get-clip
  2. 6
    0
      set-clip

+ 5
- 0
get-clip View File

@@ -0,0 +1,5 @@
#!/usr/bin/env zsh

# Outputs the current clipboard content.

xclip -o -selection clipboard

+ 6
- 0
set-clip View File

@@ -0,0 +1,6 @@
#!/usr/bin/env zsh

# Sets the clipboard content.
# Arg 1: File to read from (optional)

xclip -i -selection clipboard ${1}

Loading…
Cancel
Save