1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-27 21:19:51 -05:00
dotfiles/cfg/i3blocks/laptop/blocks/window

9 lines
223 B
Plaintext
Raw Normal View History

2017-07-26 14:00:04 -04:00
#!/bin/bash
ACTIVE_WINDOW=$(xprop -id $(xprop -root _NET_ACTIVE_WINDOW | cut -d ' ' -f 5) WM_NAME | cut -d '"' -f 2)
if [[ "${ACTIVE_WINDOW}" != "" ]]; then
echo "${ACTIVE_WINDOW}"
echo "${ACTIVE_WINDOW}"
echo ""
fi