Reputation
Next tag badge:
702/100 score
19/20 answers
Badges
44 148 298
Impact
~5.0m people reached

Apr
27
accepted How can I programmatically get the PID of the active GNOME Terminal instance?
Apr
27
comment How can I programmatically get the PID of the active GNOME Terminal instance?
I like both of these interpretations of active or using — an ancestor process, or the active window. There's probably a simpler way of finding the ancestor, but I'll award this answer the check mark since it considers both interpretations.
Apr
20
awarded  Nice Question
Apr
17
awarded  Nice Question
Apr
7
comment How can I programmatically get the PID of the active GNOME Terminal instance?
Yeah, using tmux makes this a much more difficult question. I should have used screen to illustrate my point instead.
Apr
7
comment How can I programmatically get the PID of the active GNOME Terminal instance?
I shouldn't have distracted you by mentioning tmux. Consider instead that if I had used this answer from within a script I would have initially responded with "this returns the PID of my Bash instance."
Apr
7
comment How can I programmatically get the PID of the active GNOME Terminal instance?
Arbitrary—the answer should avoid making assumptions about my setup, where practical.
Apr
6
comment How can I programmatically get the PID of the active GNOME Terminal instance?
This returns the PID of my tmux instance.
Apr
4
awarded  Great Question
Apr
3
awarded  Nice Answer
Mar
19
awarded  Famous Question
Mar
10
awarded  Enlightened
Mar
10
awarded  Nice Answer
Mar
5
awarded  Good Question
Mar
4
awarded  Popular Question
Feb
26
awarded  Popular Question
Feb
16
awarded  Nice Question
Feb
2
awarded  Good Answer
Feb
1
awarded  Popular Question
Jan
27
awarded  Famous Question