Added failsafe for wmautostart.sh

laptop
Elias Almqvist 1 year ago
parent 08ba70fe80
commit 6f32114a78
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 12
      leftwm/.config/leftwm/autostart.sh

@ -1,3 +1,15 @@
#!/usr/bin/bash
WM_CHECK=$(wmctrl -m | grep Name | cut -d: -f2 | sed 's/ //g')
if [ "$WM_CHECK" != "LeftWM" ]; then
echo "Not LEFTWM, ignoring..."
exit 0
else
echo "OK"
fi
# Keyboard layout
setxkbmap se &

Loading…
Cancel
Save