diff options
Diffstat (limited to 'i3/.config/i3blocks')
-rw-r--r-- | i3/.config/i3blocks/config | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i3/.config/i3blocks/config b/i3/.config/i3blocks/config index bd9357e..c1a9b1e 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 | sed -e 's/[^a-zA-Z0-9\-]/_/g')" +command=echo "$(xclip -o | grep -o '^.\{0,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 | sed -e 's/[^a-zA-Z0-9\-]/_/g')" +command=echo "$(xclip -o -selection "clipboard" | grep -o '^.\{0,9\}' | sed -e 's/[^a-zA-Z0-9\-]/_/g')" instance=Master interval=5 |