diff options
author | Profpatsch <mail@profpatsch.de> | 2022-11-01 19:33:39 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2022-11-01 19:33:54 +0100 |
commit | 5616bdbeca4197859d360193298caf62d960a23e (patch) | |
tree | 7841b70440ade386524324e26ed4ac20c9c33e86 /pkgs/profpatsch/xrandr.nix | |
parent | d6237e02b120c020bcaefb0fc109246702c5908c (diff) |
pkgs/profpatsch/xrandr: fix assert statements
Diffstat (limited to 'pkgs/profpatsch/xrandr.nix')
-rw-r--r-- | pkgs/profpatsch/xrandr.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/profpatsch/xrandr.nix b/pkgs/profpatsch/xrandr.nix index 269ae244..02dc564a 100644 --- a/pkgs/profpatsch/xrandr.nix +++ b/pkgs/profpatsch/xrandr.nix @@ -135,21 +135,21 @@ let eDP1 = connected['eDP1'] # laptop screen is active - assert('current' in eDP1) + assert 'current' in eDP1 # how far the laptop screen should be offset to end # at the bottom of the monitor h_offset = 0 for k, v in connected.items(): if k == 'eDP1': - assert('current' in v) + assert 'current' in v else: h = int(v['native']['height']) h_offset = h - int(eDP1['native']['height']) external_monitor = (k, v) # can’t handle bigger laptop screens atm - assert(h_offset >= 0) + assert h_offset >= 0 xrandr_command = [ "--verbose", |