summaryrefslogtreecommitdiff
path: root/i3
diff options
context:
space:
mode:
Diffstat (limited to 'i3')
-rw-r--r--i3/.config/i3blocks/config4
1 files changed, 2 insertions, 2 deletions
diff --git a/i3/.config/i3blocks/config b/i3/.config/i3blocks/config
index 93850ee..bd9357e 100644
--- a/i3/.config/i3blocks/config
+++ b/i3/.config/i3blocks/config
@@ -31,13 +31,13 @@ signal=1
[primary]
label=<span color='gray'></span>
-command=echo "$(xclip -o | cut -c1-9)"
+command=echo "$(xclip -o | cut -c1-9 | sed -e 's/[^a-zA-Z0-9\-]/_/g')"
min_width=15
interval=5
[clipboard]
label=<span color='gray'></span>
-command=echo "$(xclip -o -selection "clipboard" | cut -c1-9)"
+command=echo "$(xclip -o -selection "clipboard" | cut -c1-9 | sed -e 's/[^a-zA-Z0-9\-]/_/g')"
instance=Master
interval=5