diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-09 15:16:23 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-09 20:33:35 +0200 |
commit | d0ab64626c70953b94a9d0a66f66c624f0a3ad5a (patch) | |
tree | 673d0219a73190685125b8ed2bebb945be8ef7b0 /hm | |
parent | refactor(hm/conf/zsh): Move xdg vars under the xdg directory (diff) | |
download | nixos-config-d0ab64626c70953b94a9d0a66f66c624f0a3ad5a.tar.gz nixos-config-d0ab64626c70953b94a9d0a66f66c624f0a3ad5a.zip |
style(treewide): Comply with `nix fmt`
Diffstat (limited to 'hm')
-rwxr-xr-x | hm/soispha/conf/firefox/scripts/unzip_mozlz4.py | 2 | ||||
-rwxr-xr-x | hm/soispha/conf/taskwarrior/hooks/scripts/on-modify_track-timewarrior.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/hm/soispha/conf/firefox/scripts/unzip_mozlz4.py b/hm/soispha/conf/firefox/scripts/unzip_mozlz4.py index 44e00d53..9a2348bf 100755 --- a/hm/soispha/conf/firefox/scripts/unzip_mozlz4.py +++ b/hm/soispha/conf/firefox/scripts/unzip_mozlz4.py @@ -38,7 +38,7 @@ if __name__ == "__main__": import sys args = sys.argv[1:] - if args and not args[0] in ("--help", "-h"): + if args and args[0] not in ("--help", "-h"): main(args) else: print("Usage: mozlz4.py <mozlz4 file to read> <location to write>") diff --git a/hm/soispha/conf/taskwarrior/hooks/scripts/on-modify_track-timewarrior.py b/hm/soispha/conf/taskwarrior/hooks/scripts/on-modify_track-timewarrior.py index c8efb596..b482af6a 100755 --- a/hm/soispha/conf/taskwarrior/hooks/scripts/on-modify_track-timewarrior.py +++ b/hm/soispha/conf/taskwarrior/hooks/scripts/on-modify_track-timewarrior.py @@ -68,7 +68,7 @@ if "tags" in new: combined = " ".join(["'%s'" % tag for tag in tags]).encode("utf-8").strip() # Task has been started. -if "start" in new and not "start" in old: +if "start" in new and "start" not in old: # Prevent this task from starting if "task +ACTIVE count" is greater than "MAX_ACTIVE". p = subprocess.Popen( ["task", "+ACTIVE", "status:pending", "count", "rc.verbose:off"], @@ -86,7 +86,7 @@ if "start" in new and not "start" in old: system("timew start " + combined.decode() + " :yes") # Task has been stopped. -elif not "start" in new and "start" in old: +elif "start" not in new and "start" in old: system("timew stop " + combined.decode() + " :yes") # Any task that is active, with a non-pending status should not be tracked. |