Script for cliboard merging.
This commit is contained in:
parent
9930348155
commit
ff8222fc6f
17 changed files with 75 additions and 1 deletions
21
_desktop/clipboard/primary/run
Executable file
21
_desktop/clipboard/primary/run
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
exec 2>&1
|
||||
|
||||
SEL="../selection"
|
||||
|
||||
|
||||
# "xsel --nodetach --input" with an empty input will still exit immediately,
|
||||
# so we need to make sure the selection never is empty:
|
||||
[ -s "$SEL" ] || echo >| "$SEL"
|
||||
|
||||
xsel --nodetach --logfile /dev/stdout --"$(basename "`pwd`")" \
|
||||
--input < "$SEL"
|
||||
|
||||
# something else grabbed the selection. pull it over here:
|
||||
xsel --nodetach --logfile /dev/stdout --"$(basename "`pwd`")" \
|
||||
--output > "$SEL".new
|
||||
# see above:
|
||||
[ -s "$SEL" ] || echo >| "$SEL"
|
||||
mv "$SEL".new "$SEL"
|
||||
sv term ../primary ../secondary ../clipboard
|
0
_desktop/clipboard/primary/supervise/lock
Normal file
0
_desktop/clipboard/primary/supervise/lock
Normal file
1
_desktop/clipboard/primary/supervise/pid
Normal file
1
_desktop/clipboard/primary/supervise/pid
Normal file
|
@ -0,0 +1 @@
|
|||
23922
|
1
_desktop/clipboard/primary/supervise/stat
Normal file
1
_desktop/clipboard/primary/supervise/stat
Normal file
|
@ -0,0 +1 @@
|
|||
run
|
BIN
_desktop/clipboard/primary/supervise/status
Normal file
BIN
_desktop/clipboard/primary/supervise/status
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue