Skip to content

Commit

Permalink
argparsers: pgrep i3 with shmlog (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
lasers authored Dec 3, 2024
1 parent dae9f25 commit bd35bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py3status/argparsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def parse_cli_args():

# get window manager
with Path(os.devnull).open("w") as devnull:
if subprocess.call(["pgrep", "-x", "i3"], stdout=devnull) == 0:
if subprocess.call(["pgrep", "^(i3|i3-with-shmlog)$"], stdout=devnull) == 0:
wm = "i3"
else:
wm = "sway"
Expand Down

0 comments on commit bd35bc4

Please sign in to comment.