.xinitrc: Fix wpgen invocation

This commit is contained in:
Salt 2020-06-29 10:19:52 -05:00
parent 4412f146c2
commit da9b59d7a2
2 changed files with 5 additions and 2 deletions

2
.wpgen

@ -1 +1 @@
Subproject commit e892a42897fbd36c27dee4fb1e199ba594116d7a
Subproject commit 8922d4ebc53c32d1fbd0476813df685f43ed727c

View File

@ -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"