From 5616bdbeca4197859d360193298caf62d960a23e Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Tue, 1 Nov 2022 19:33:39 +0100 Subject: pkgs/profpatsch/xrandr: fix assert statements --- pkgs/profpatsch/xrandr.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs') 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", -- cgit 1.4.1