checked for wayland use without the need for -w parameter
This commit is contained in:
parent
a51af62d78
commit
41b3f5728b
3 changed files with 1 additions and 1 deletions
2
base.nim
2
base.nim
|
@ -136,8 +136,8 @@ proc debugLog*(str: string) =
|
||||||
proc switchTwmMode*(mode: string = "default") =
|
proc switchTwmMode*(mode: string = "default") =
|
||||||
# I intend to add support for more twm as time goes on (I switch around a lot)
|
# 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
|
# Switch out of an i3 bindsym mode if set
|
||||||
discard execCmd("i3-msg mode \"" & mode & "\"")
|
|
||||||
discard execCmd("sway mode \"" & mode & "\"")
|
discard execCmd("sway mode \"" & mode & "\"")
|
||||||
|
discard execCmd("i3-msg mode \"" & mode & "\"")
|
||||||
|
|
||||||
proc checkWayland() =
|
proc checkWayland() =
|
||||||
if getEnv("XDG_SESSION_TYPE") == "wayland":
|
if getEnv("XDG_SESSION_TYPE") == "wayland":
|
||||||
|
|
BIN
file.png
BIN
file.png
Binary file not shown.
Before Width: | Height: | Size: 284 KiB |
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 40 KiB |
Loading…
Reference in a new issue