Skip to content

Commit

Permalink
Merge pull request #991 from LokiLuciferase/feature/title-change-on-w…
Browse files Browse the repository at this point in the history
…orkspace-switch

poll window title also on workspace change (not only window events)
  • Loading branch information
tobi-wan-kenobi authored Sep 13, 2023
2 parents fded39f + b762132 commit 8583b51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bumblebee_status/modules/contrib/title.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ def __init__(self, config, theme):

# create a connection with i3ipc
self.__i3 = i3ipc.Connection()
# event is called both on focus change and title change
# event is called both on focus change and title change, and on workspace change
self.__i3.on("window", lambda __p_i3, __p_e: self.__pollTitle())
self.__i3.on("workspace", lambda __p_i3, __p_e: self.__pollTitle())
# begin listening for events
threading.Thread(target=self.__i3.main).start()

Expand Down

0 comments on commit 8583b51

Please sign in to comment.