#!/bin/bash string=$(xclip -o -sel clip) numchars=$(echo -n "$string" | wc -c) awesome-client "msg('$numchars')"