summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstartxw12
1 files changed, 8 insertions, 4 deletions
diff --git a/startxw b/startxw
index 0df25d7..1782c1d 100755
--- a/startxw
+++ b/startxw
@@ -1,9 +1,13 @@
#!/sbin/sh
- wayland=`crcparse "wayland"`
-
-if [ "$wayland" == "y" ]; then
- `crcparse WC`
+if [ `crcparse wayland` = "y" ]; then
+ case `crcparse WC` in
+ `which dwl`)
+ exec `which dwl` > ~/.cache/dwltags
+ ;;
+ "*")
+ exec `crcparse WC` ;;
+ esac
else
startx
fi