aboutsummaryrefslogtreecommitdiff
path: root/i3/blocks/window
blob: 9ef155a439d7c83a98d5fab2b95c9edafb349b82 (plain)
1
2
3
4
5
6
7
8
9
#!/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