mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
10 lines
311 B
Bash
Executable File
10 lines
311 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Display contents of selection via dunst if running.
|
|
|
|
clip=$(xclip -o -selection clipboard)
|
|
prim=$(xclip -o -selection primary)
|
|
|
|
[ -z "$clip" ] && notify-send "Clipboard is empty" || notify-send "Clipboard:" "$clip"
|
|
[ -z "$prim" ] && notify-send "Primary is empty" || notify-send "Primary:" "$prim"
|