dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a90beaed1dada29a93d5e78fb3a1674768a12671
parent 67429e62792811bcb0f84490689ba0f5aae486ab
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed, 24 Apr 2019 14:10:17 -0400

showclip fix

Diffstat:
M.scripts/i3cmds/showclip | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git 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"