checked for wayland use without the need for -w parameter

This commit is contained in:
Paul Wilde 2022-07-15 21:25:32 +01:00
parent a51af62d78
commit 41b3f5728b
3 changed files with 1 additions and 1 deletions

View file

@ -136,8 +136,8 @@ proc debugLog*(str: string) =
proc switchTwmMode*(mode: string = "default") =
# I intend to add support for more twm as time goes on (I switch around a lot)
# Switch out of an i3 bindsym mode if set
discard execCmd("i3-msg mode \"" & mode & "\"")
discard execCmd("sway mode \"" & mode & "\"")
discard execCmd("i3-msg mode \"" & mode & "\"")
proc checkWayland() =
if getEnv("XDG_SESSION_TYPE") == "wayland":

BIN
file.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB