Show title of active window
This commit is contained in:
parent
b68268b5a5
commit
ec7f831234
@ -64,3 +64,8 @@ interval=persist
|
||||
[clock]
|
||||
label=📅
|
||||
interval=30
|
||||
|
||||
[window]
|
||||
interval=5
|
||||
label=🗔
|
||||
|
||||
|
8
i3/i3blocks/window
Executable file
8
i3/i3blocks/window
Executable file
@ -0,0 +1,8 @@
|
||||
#!/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 ""
|
||||
fi
|
Loading…
Reference in New Issue
Block a user