Commit graph

92 commits

Author SHA1 Message Date
trigg
29f8c7476c - Catch errors when audio assist can't reach PA/PW
- Attempt to use GTK icon theme for local images, fallback to image search
- Error message & fallback icon when settings icons not found
- Fix notification overlay
- All overlays check if config changed before scheduling a redraw
- - Lowers flicker rate of overlay when editing config
- ran formatter
- probable fix for #288
- probable fix for #287
2024-03-25 17:37:51 +00:00
trigg
6d92d0f79f - Pipewire and Pulseaudio integration
- Opt in Core > Integrate
- When microphone is muted or 0% set client to show muted
- When output is muted or 0% set client to show deafened
- Subscribe to client 'voice_settings_update' events to see when mic/output are changed
- Cleaner quit on Ctrl-C
-Fixes #327
2024-03-25 00:52:20 +00:00
trigg
44b7e4c725 - Remove some unused variables 2024-03-18 19:05:44 +00:00
trigg
7df5b6cac4 - Remove debug logging 2024-03-18 13:32:56 +00:00
trigg
19e2b71345 - Remove stale socket fd on disconnect
- - Stops gtk main spinning a cpu core to 100% waiting on it.
- Bump version
2024-03-18 13:29:00 +00:00
Trigg
1844e32ebe - Close with message if user denied overlay permissions 2024-02-23 12:28:26 +00:00
trigg
f67f5ccc4e
- Call overlay draw correctly on close 2024-02-14 11:23:53 +00:00
Trigg
213d68611b - Remove unneeded import logic
- Ran a formatter
- Remove reconnect warning limiting logic
2024-02-13 23:41:30 +00:00
Trigg
8cd376d311 - This change is very far reaching into the internals. For this reason a version bump is required.
- These is a very high chance of new bugs or repeats of old bugs. Be watchful!
- Removed periodic timeout for overlay ticking
- Removed 60hz timeout for reading websocket
- Removed 1hz timeout for text overlay
- Removed 1hz timeout for notification overlay
- Added a one-call timeout for each overlay which happens a configurable time after render to remove it excess data
- Changed flat bool needsrender to a function call set_needs_render
- Where needed, this schedules an idle callback to rerender, cutting down on multiple renders in extremely short time
- Ripped out do_read from connector
- Piped the websocket socket into GLib, allowing it to call back when new data is readable
- Implemented reconnect logic in GLib
- Shortened connect timeout as localhost should be rather quick
2024-02-13 23:24:48 +00:00
Trigg
667ad02a4c - Use a more neutral origin
- Uncertain but this is less likely to be a problem later if we work out ArRPC interop
2024-02-05 17:57:30 +00:00
Trigg
23321122fa - Reduce reconnection attempt rate when connection fails
- Attempt reconnect 20 seconds after disconnect or failed connect
- Cache users access token after successful authentication
- Use cached access token on connection
- Clear cached access token on failure to connect
2024-02-05 17:31:55 +00:00
trigg
616edc68fb - Unset current voice on disconnect
- Fixes #304
2023-07-10 17:35:31 +01:00
trigg
59cd6a530c - Check for invalid Guild and log 2023-06-19 17:49:24 +01:00
slikie
d117a83e63
Update discord_connector.py 2023-04-18 16:08:58 +08:00
slikie
6fcfc50107
handle JSONDecodeError when switching accounts 2023-04-18 15:45:17 +08:00
Trigg
a1a3ffb419 - Re download channel icon if lost
- Don't drop avatars and icons unless needed
- Clear room data on disconnect
2022-07-18 08:58:56 +00:00
trigg
6f442524a4 - Pass channel data between settings & overlay 2022-07-14 22:44:53 +01:00
Trigg
49500d3c75 - warning : broken
- Started refactor to separate config gui completely
2022-07-14 16:36:18 +00:00
trigg
59f35eef90 - Use guild icon in channel title 2022-07-09 21:58:43 +01:00
trigg
8672f87613 - Added option to show voice connection status
- Added option to show channel title
- Added option to not hide voice overlay on disconnect (debug)
- Added font picker for voice title
- Added new translations to base pot
- Update discord connector to chase forcibly moved user
2022-07-09 21:14:30 +01:00
trigg
d70328d2df - Clean up extra reference keeping
- bump minor version
2022-07-07 15:04:05 +01:00
trigg
2d67b2527f - Allow showing test content without a running connection. 2022-07-07 14:58:02 +01:00
trigg
8ffd0790d1 - Skip RPC if no connection is established 2022-06-23 19:31:11 +01:00
Trigg
bd2a64ac70 - Remove dbus
- hopefully fixes #248
- hopefully fixes #242
- Removed birdy
- Moved notification logic into overlay
2022-05-17 08:52:39 +00:00
trigg
0379334b1f - Remove guild list from voice
- Implement 'test content' to help user choose voice options
- Added 'Wrap' and 'Shrink' options to voice overlay
2022-04-23 22:19:36 +00:00
Trigg
c8122b2cca - Added functions to alter some user state
- Hooked in new RPC commands
2022-04-14 22:01:54 +00:00
trigg
77ec14b4d2 - Clear userlist between rooms
- Fixes for logger
- remove some unneeded logs
2022-04-12 19:58:11 +00:00
trigg
f690fe5740 - Always add user to current room on update 2022-04-12 18:24:33 +00:00
Trigg
6cca44581d - Discard unused SELECT
- Add two curretly unused convenience functions.
2022-04-12 16:03:50 +00:00
Trigg
481cfc916e - Finish polling guild on channel create 2022-04-12 14:19:22 +00:00
trigg
94f1aa5cff - Huge overhaul of connector
- Removed almost all uses of GET_CHANNEL
- Rate limiting no longer in use
- Probably don't need server limit any more
- Unsubscribe from events when changing text/voice room
- find_user now has a direct method call which is miles better than previous
- hooked 'GUILD_CREATE" but currently not tested
2022-04-12 00:21:07 +00:00
Trigg
60c352bf11 - Remove old prints
- Set channel & guild lists to insensitive when changing
- Set to sensitive when updated
- Add manual refresh buttons
2022-04-11 09:28:06 +00:00
trigg
1c154c19f4 - Don't set functions to None. 2022-04-09 11:31:13 +00:00
Trigg
48a99eb33b - Use channels in order given by API, ignore 'position'
- fix? #178
- fix #228
2022-04-08 16:09:10 +00:00
trigg
0975bc8275 - Accidental NoneType ref when auth error is triggered 2022-04-07 14:12:39 +00:00
trigg
71a05f0fe1 - On early fail #76 just attempt reconnect every 5 seconds 2022-04-07 13:51:33 +00:00
trigg
106af1d65c - Don't tired and code kids 2022-03-31 18:31:27 +00:00
trigg
74f744dd65 - Use raw... 2022-03-31 18:21:44 +00:00
trigg
a6f603a147 - Output JSON in failed auth 2022-03-31 18:20:58 +00:00
trigg
e359b428ee - Exit with no accompanying log fixed 2022-03-31 17:44:05 +00:00
trigg
0ce13b6aac - use __name__ for logging
- Don't 'try' if you can 'if'
2022-03-31 17:42:47 +00:00
trigg
8737ba2e43 - Fix #220 2022-03-31 17:26:15 +00:00
Trigg
822865e909 - Added birdy
- Decode dbus byte data into images for notifications
2022-03-30 13:18:06 +00:00
Trigg
1ac75c94f9 - Moved some gui logic out of connector
- Added dbus and notification eavesdropping
- Added new overlay to show freedesktop notifications
- Taught text overlay to piggyback
2022-03-29 19:19:44 +00:00
trigg
1170188c4a - Backward if statement fixed
- Added timer to guild re-request
2022-03-14 17:46:28 +00:00
Trigg
9895559c62 - Third times the charm for #178 2022-03-14 17:25:45 +00:00
Trigg
2e42defed5 - Avoid the error... not just see it and run headlong into it 2022-03-14 17:24:11 +00:00
Trigg
d01c01b3cf - Added a whole bunch more special cases for gamescope environment
- Piggyback text chat into voice chat when only one window can be shown
- Added 'show on taskbar' option to Core, which should allow screen capture of overlay in X11
- Update guild list in text settings more frequently. Should help with #178
- Repurposed wayland draggable windows for gamescope
- Fixed a bug in floating voice overlay
2022-03-14 16:52:47 +00:00
Trigg
2f4e6f671e - Do not create text window in gamescope -> only one window is possible
- Come back to this later to maybe merge the two into a single window
- Catch file not found
2022-03-09 16:19:35 +00:00
trigg
26586c5ffb - Fix race condition causing #192 2022-01-15 14:02:38 +00:00