mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-30 16:07:46 +02:00
11 lines
267 B
Bash
Executable File
11 lines
267 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Display contents of selection via dunst if running.
|
|
# Separate script for i3.
|
|
|
|
clip=$(xclip -o -selection clipboard)
|
|
prim=$(xclip -o -selection primary)
|
|
|
|
[ -n "$clip" ] && notify-send "Clipboard:" "$clip"
|
|
[ -n "$prim" ] && notify-send "Primary:" "$prim"
|