Skip to content

Commit

Permalink
fix #10, openbsd compability
Browse files Browse the repository at this point in the history
  • Loading branch information
TyberiusPrime committed Apr 12, 2021
1 parent 090726b commit 8c3e49c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/i3_instant_layout/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import sys
import tempfile
from pathlib import Path
from . import layouts
from . import layouts, __version__


counter_file = Path("~/.local/share/i3-instant-layout/counter.json").expanduser()
Expand Down Expand Up @@ -63,7 +63,7 @@ def get_window_ids():
"--desktop",
desktop,
"--class",
"",
"^.*",
]
).decode("utf-8", errors="replace")
return res.strip().split("\n")
Expand Down Expand Up @@ -210,6 +210,9 @@ def main():
elif sys.argv[1] == "--desc":
print_desc()
sys.exit(0)
elif sys.argv[1] == "--version":
print(__version__)
sys.exit(0)
elif sys.argv[1] == "--list":
list_layouts_in_smart_order()
sys.exit(0)
Expand Down

0 comments on commit 8c3e49c

Please sign in to comment.