summaryrefslogtreecommitdiff
path: root/startxw
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-10-01 22:20:47 -0500
committerzachir <zachir@librem.one>2022-10-01 22:20:47 -0500
commit51afe9045cdebf9e4aa2b51cf99e7f36c9b6718c (patch)
tree34bb2faff226d26493766a07f335c4e12f8d5590 /startxw
parent0be480452f36b362d0fcbf424e2e62787b423b8d (diff)
startxw add setup for dwl
Diffstat (limited to 'startxw')
-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