Skip to content

Commit

Permalink
delete unused get_tty function. closes #133
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Jan 25, 2017
1 parent bc907f3 commit b78131e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ntfy/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
import shlex


def get_tty():
window_id = int(check_output(['xprop', '-root', '\t$0',
'_NET_ACTIVE_WINDOW']).split()[1], 16)
return int(environ['WINDOWID']) == window_id


def linux_window_is_focused():
xprop_cmd = shlex.split('xprop -root _NET_ACTIVE_WINDOW')
xprop_window_id = int(check_output(xprop_cmd).split()[-1], 16)
Expand Down

0 comments on commit b78131e

Please sign in to comment.