Browse Source

Clipboard tools

Nicolas Lenz 5 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 @@
1
+#!/usr/bin/env zsh
2
+
3
+# Outputs the current clipboard content.
4
+
5
+xclip -o -selection clipboard

+ 6
- 0
set-clip View File

@@ -0,0 +1,6 @@
1
+#!/usr/bin/env zsh
2
+
3
+# Sets the clipboard content.
4
+# Arg 1: File to read from (optional)
5
+
6
+xclip -i -selection clipboard ${1}

Loading…
Cancel
Save