Some more information so I turned my wifi off and tried working again. It froze again. I managed to read the logs. This is the logs during that freeze(?).
ChangeProperty), minor code: 0
Aug 16 11:27:21 _hostname_ latte-dock[42868]: [Modules] Checking for host updates.
Aug 16 11:27:21 _hostname_ latte-dock[42868]: Error downloading with electron net: net::ERR_INTERNET_DISCONNECTED
Aug 16 11:27:21 _hostname_ latte-dock[42868]: Falling back to node net library..
Aug 16 11:27:21 _hostname_ latte-dock[42868]: [Updates] Error fetching https://discord.com/api/updates/stable?platform=linux&version=0.0.19: getaddrinfo EAI_AGAIN discord.com
Aug 16 11:27:21 _hostname_ latte-dock[42868]: [Modules] Host update failed: Error: getaddrinfo EAI_AGAIN discord.com
Aug 16 11:27:22 _hostname_ rtkit-daemon[2262]: Supervising 8 threads of 4 processes of 1 users.
Aug 16 11:27:22 _hostname_ rtkit-daemon[2262]: Supervising 8 threads of 4 processes of 1 users.
Aug 16 11:27:33 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 39983, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:27:41 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 42794, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:27:48 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 45329, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:27:56 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 47961, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:28:13 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 53454, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:28:20 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 57297, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:28:36 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 64222, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:28:43 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3642, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:28:49 _hostname_ rtkit-daemon[2262]: Supervising 8 threads of 4 processes of 1 users.
Aug 16 11:28:49 _hostname_ rtkit-daemon[2262]: Supervising 8 threads of 4 processes of 1 users.
Aug 16 11:30:20 _hostname_ aw-qt[1846]: 2022-08-16 11:30:20 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-vscode_rog-strix) (aw_server.api:262)
Aug 16 11:30:59 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 43445, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:31:05 _hostname_ rtkit-daemon[2262]: Supervising 8 threads of 4 processes of 1 users.
Aug 16 11:31:05 _hostname_ rtkit-daemon[2262]: Supervising 8 threads of 4 processes of 1 users.
Aug 16 11:31:08 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 44829, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:31:17 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 46403, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:31:33 _hostname_ kwin_x11[1272]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 48174, resource id: 119537670, major code: 18 (ChangeProperty), minor code: 0
Aug 16 11:32:07 _hostname_ kernel: sysrq: Keyboard mode set to system default
Aug 16 11:32:10 _hostname_ kernel: sysrq: Terminate All Tasks
https://clbin.com/YXewY More lines