Skip to content

Commit

Permalink
Add debug option
Browse files Browse the repository at this point in the history
  • Loading branch information
NickHastings committed May 2, 2024
1 parent 0ce8f4a commit 402bb69
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions riverwm_utils/riverwm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def parse_command_line() -> argparse.Namespace:
'--tag-mask', '-m', default=0, type=int,
help='Ignore these tags (useful for excluding a scratch tag).'
)
parser.add_argument(
'--debug', '-d', action='store_true',
help='Enable debugging output.'
)
return parser.parse_args()


Expand Down Expand Up @@ -237,6 +241,9 @@ def cycle_focused_tags():
if use_mask:
new_tags |= tags_mask_restore

if args.debug:
print( f'0b{new_tags:010b} {new_tags}' )

CONTROL.add_argument("set-focused-tags")
CONTROL.add_argument(str(new_tags))
CONTROL.run_command(SEAT.wl_seat)
Expand Down

0 comments on commit 402bb69

Please sign in to comment.