From da9b59d7a209044c62a444962bc1847e714704d4 Mon Sep 17 00:00:00 2001 From: Salt Date: Mon, 29 Jun 2020 10:19:52 -0500 Subject: [PATCH] .xinitrc: Fix wpgen invocation --- .wpgen | 2 +- .xinitrc | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.wpgen b/.wpgen index e892a428..8922d4eb 160000 --- a/.wpgen +++ b/.wpgen @@ -1 +1 @@ -Subproject commit e892a42897fbd36c27dee4fb1e199ba594116d7a +Subproject commit 8922d4ebc53c32d1fbd0476813df685f43ed727c diff --git a/.xinitrc b/.xinitrc index 27a37a84..17f81caf 100755 --- a/.xinitrc +++ b/.xinitrc @@ -1,7 +1,10 @@ #!/bin/bash if [ -x "$HOME/.wpgen/wpgen" ]; then - "$HOME/.wpgen/wpgen" + resolutions=($(xrandr -q | grep '*' | awk '{print $1}')) + for res in ${resolutions[@]}; do + "$HOME/.wpgen/wpgen" "$res" + done fi if [ -x "$HOME/.config/conky/gen.sh" ]; then "$HOME/.config/conky/gen.sh"