From 6f32114a78443ad249789769011090bba2dc1479 Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Sat, 7 Oct 2023 13:32:45 +0200 Subject: [PATCH] Added failsafe for wmautostart.sh --- leftwm/.config/leftwm/autostart.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/leftwm/.config/leftwm/autostart.sh b/leftwm/.config/leftwm/autostart.sh index 637ccae..41376a7 100755 --- a/leftwm/.config/leftwm/autostart.sh +++ b/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 &