diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2019-04-24 14:10:17 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2019-04-24 14:10:17 -0400 |
| commit | a90beaed1dada29a93d5e78fb3a1674768a12671 (patch) | |
| tree | 4a5d633d3087f25f7be83c1c5dddb441e34d7e1b | |
| parent | 67429e62792811bcb0f84490689ba0f5aae486ab (diff) | |
| download | eibhear-a90beaed1dada29a93d5e78fb3a1674768a12671.tar.gz eibhear-a90beaed1dada29a93d5e78fb3a1674768a12671.tar.zst eibhear-a90beaed1dada29a93d5e78fb3a1674768a12671.zip | |
showclip fix
| -rwxr-xr-x | .scripts/i3cmds/showclip | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/.scripts/i3cmds/showclip b/.scripts/i3cmds/showclip index 9f8a6b9..d2faff8 100755 --- a/.scripts/i3cmds/showclip +++ b/.scripts/i3cmds/showclip @@ -3,13 +3,8 @@ # Display contents of selection via dunst if running. # Separate script for i3. -! pgrep -x dunst >/dev/null && echo "dunst not running." && exit - clip=$(xclip -o -selection clipboard) - prim=$(xclip -o -selection primary) -[ "$clip" != "" ] && notify-send "<b>Clipboard:</b> -$clip" -[ "$prim" != "" ] && notify-send "<b>Primary:</b> -$prim" +[ -n "$clip" ] && notify-send "Clipboard:" "$clip" +[ -n "$prim" ] && notify-send "Primary:" "$prim" |
