Can't start it with xinitrc. So i tried to run it in Xephyr so i can see what's wrong. Here is the output:
XGB: conn.go:47: Could not get authority info: EOF
XGB: conn.go:48: Trying connection without authority info...
2020/06/11 21:30:01 Setting selection owner.
2020/06/11 21:30:01 Getting selection owner.
2020/06/11 21:30:01 Swm is now your wm.
2020/06/11 21:30:01 Trying to execute config
2020/06/11 21:30:01 Executing config file "/home/taylantatli/.config/swm/swmrc"
2020/06/11 21:30:01 Error executing config file: exit status 1
2020/06/11 21:30:01 Handle root client message: _NET_NUMBER_OF_DESKTOPS (ClientMessage {Sequence: 171, Format: 32, Window: 921, Type: 241})
2020/06/11 21:30:05 Map request: MapRequest {Sequence: 182, Parent: 921, Window: 6291469}
2020/06/11 21:30:05 Client message _NET_ACTIVE_WINDOW: ClientMessage {Sequence: 274, Format: 32, Window: 6291469, Type: 254}
2020/06/11 21:30:06 Destroy notify: DestroyNotify {Sequence: 290, Event: 6291469, Window: 6291469}
[xgbutil] xwindow.go:326: BadWindow {NiceName: Window, Sequence: 315, BadValue: 6291469, MinorOpcode: 0, MajorOpcode: 4}
[xgbutil] xgbutil.go:240: BadWindow {NiceName: Window, Sequence: 306, BadValue: 6291469, MinorOpcode: 0, MajorOpcode: 7}
[xgbutil] xgbutil.go:240: BadWindow {NiceName: Window, Sequence: 319, BadValue: 6291469, MinorOpcode: 0, MajorOpcode: 6}
2020/06/11 21:30:08 Map request: MapRequest {Sequence: 324, Parent: 921, Window: 6291469}
2020/06/11 21:30:08 Client message _NET_ACTIVE_WINDOW: ClientMessage {Sequence: 397, Format: 32, Window: 6291469, Type: 254}
2020/06/11 21:30:10 Client message _NET_WM_STATE: ClientMessage {Sequence: 423, Format: 32, Window: 6291469, Type: 276}
2020/06/11 21:30:10 Wm state client message: 2, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
2020/06/11 21:30:10 Client message _NET_WM_STATE: ClientMessage {Sequence: 455, Format: 32, Window: 6291469, Type: 276}
2020/06/11 21:30:10 Wm state client message: 2, _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ
2020/06/11 21:30:12 Destroy notify: DestroyNotify {Sequence: 483, Event: 6291469, Window: 6291469}
[xgbutil] xwindow.go:326: BadWindow {NiceName: Window, Sequence: 510, BadValue: 6291469, MinorOpcode: 0, MajorOpcode: 4}
[xgbutil] xgbutil.go:240: BadWindow {NiceName: Window, Sequence: 501, BadValue: 6291469, MinorO
pcode: 0, MajorOpcode: 7}
[xgbutil] xgbutil.go:240: BadWindow {NiceName: Window, Sequence: 514, BadValue: 6291469, MinorOpcode: 0, MajorOpcode: 6}
2020/06/11 21:30:14 Map request: MapRequest {Sequence: 519, Parent: 921, Window: 6291469}
2020/06/11 21:30:14 Client message _NET_ACTIVE_WINDOW: ClientMessage {Sequence: 614, Format: 32, Window: 6291469, Type: 254}
2020/06/11 21:30:18 Destroy notify: DestroyNotify {Sequence: 618, Event: 6291469, Window: 6291469}
[xgbutil] xwindow.go:326: BadWindow {NiceName: Window, Sequence: 643, BadValue: 6291469, MinorOpcode: 0, MajorOpcode: 4}
[xgbutil] xgbutil.go:240: BadWindow {NiceName: Window, Sequence: 634, BadValue: 6291469, MinorOpcode: 0, MajorOpcode: 7}
[xgbutil] xgbutil.go:240: BadWindow {NiceName: Window, Sequence: 647, BadValue: 6291469, MinorOpcode: 0, MajorOpcode: 6}
XGB: xgb.go:403: A read error is unrecoverable: EOF
XGB: xgb.go:403: A read error is unrecoverable: EOF
panic: close of closed channel
goroutine 22 [running]:
github.com/BurntSushi/xgb.(*Conn).Close(...)
/home/taylantatli/.go/pkg/mod/github.com/!burnt!sushi/[email protected]/xgb.go:140
github.com/BurntSushi/xgb.(*Conn).readResponses(0xc0001382c0)
/home/taylantatli/.go/pkg/mod/github.com/!burnt!sushi/[email protected]/xgb.go:405 +0x25a
created by github.com/BurntSushi/xgb.postNewConn
/home/taylantatli/.go/pkg/mod/github.com/!burnt!sushi/[email protected]/xgb.go:133 +0x206
xdotool and wmctrl commands are working. but not swmctl commands.