qtile: Check if papes exist first
This commit is contained in:
parent
abc9656562
commit
509ceeaae9
@ -165,7 +165,10 @@ keys = [
|
|||||||
|
|
||||||
pape_dir = '/home/joe/Pictures/Wallpapers/'
|
pape_dir = '/home/joe/Pictures/Wallpapers/'
|
||||||
papes = [os.path.join(pape_dir, p) for p in os.listdir(pape_dir)]
|
papes = [os.path.join(pape_dir, p) for p in os.listdir(pape_dir)]
|
||||||
pape = random.choice(papes)
|
if papes:
|
||||||
|
pape = random.choice(papes)
|
||||||
|
else:
|
||||||
|
pape = "/usr/share/backgrounds/default.png"
|
||||||
|
|
||||||
def get_num_monitors():
|
def get_num_monitors():
|
||||||
number_of_monitors = 0
|
number_of_monitors = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user