diff options
-rwxr-xr-x | startxw | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |