25 lines
409 B
Bash
Executable File
25 lines
409 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ../mpanel.subr
|
|
|
|
align="left"
|
|
background="$(color 6)"
|
|
foreground="$(color 3)"
|
|
|
|
waitFunc="wait_for focus_changed tag_changed window_title_changed"
|
|
clickFunc="../menus/windows"
|
|
|
|
print_focus() {
|
|
title="$(herbstclient attr clients.focus.title)"
|
|
|
|
output="$(trim "$title" 25)"
|
|
if [ "$?" = "3" ]; then
|
|
echo " $output... "
|
|
else
|
|
echo " $output "
|
|
fi
|
|
|
|
}
|
|
|
|
loop print_focus
|