Skip to content

Commit

Permalink
handle SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
justbuchanan committed Apr 28, 2016
1 parent dc24d76 commit 402da44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions i3-autoname-workspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def signal_handler(signal, frame):
i3.main_quit()
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
signal.signal(signal.SIGTERM, signal_handler)

# call rename() for relevant window events
def on_change(i3, e):
Expand Down

0 comments on commit 402da44

Please sign in to comment.