Vincent Bernat
45a86fee23
i3-companion: fix icon for libreoffice
2021-07-23 19:02:58 +02:00
Vincent Bernat
dcad9cfbd3
i3-companion: handle windows disappearing too fast
2021-07-23 11:19:50 +02:00
Vincent Bernat
f91e751f56
i3-companion: add icon for nestopia
2021-07-22 17:12:28 +02:00
Vincent Bernat
81380633de
rofi-wifi: add a menu to connect to wifi
2021-07-21 08:55:38 +02:00
Vincent Bernat
7f7bfd20ec
i3-companion: more icons
2021-07-20 23:23:14 +02:00
Vincent Bernat
8b7bdb3038
i3-companion: don't crash on windows without a class
2021-07-20 23:20:38 +02:00
Vincent Bernat
1bc9ea92e1
i3-companion: icon for qalculate
2021-07-20 21:28:19 +02:00
Vincent Bernat
f267250c42
i3-companion: rework a bit Quake console to use events only
2021-07-19 09:52:48 +02:00
Vincent Bernat
6cf9a784f7
i3-companion: keep display open while running
...
This may be useful for some other uses. Notably, to achieve automatic
layout, not unlike:
https://gitlab.com/s3lect/awesome-i3-auto-layout/-/blob/master/awesome-auto-layout
2021-07-19 09:21:09 +02:00
Vincent Bernat
5994b8a0fd
i3-companion: remove duplicate code
2021-07-18 09:13:57 +02:00
Vincent Bernat
b6ab2d3c12
i3-companion: move create_new_workspace into helper section
2021-07-18 09:09:14 +02:00
Vincent Bernat
cc07dc35b4
i3-companion: get it into 1000 lines!
2021-07-18 00:47:59 +02:00
Vincent Bernat
b32462031b
i3-companion: simplify check for intruding windows
...
Sticky window is usually floating, as well as the non-normal windows.
So, no need for all these checks.
2021-07-18 00:42:07 +02:00
Vincent Bernat
f95d1e2b92
i3-companion: make i3-tabbed work by inhibiting exclusive workspaces
2021-07-18 00:42:07 +02:00
Vincent Bernat
adfec52532
i3-companion: use contextlib to simplify a bit some code
2021-07-17 15:00:54 +02:00
Vincent Bernat
e0569deacf
i3-companion: fix check of exclusive app in current workspace
2021-07-17 14:47:47 +02:00
Vincent Bernat
f167cf1f64
i3-companion: simplify the way we get application icons
...
Just rely on the class.
2021-07-17 13:01:05 +02:00
Vincent Bernat
1737177d2b
i3-companion: only log window classes
2021-07-17 09:21:58 +02:00
Vincent Bernat
5357f669e5
i3-companion: only use window classes to match exclusive apps
...
No need to match anything else as all the exclusive/intrusive apps I
use have a good value for class.
2021-07-17 09:16:34 +02:00
Vincent Bernat
8a78f68e77
i3-companion: reblacken at 88 line-length
...
And tell flake8 that's OK.
2021-07-17 09:14:45 +02:00
Vincent Bernat
84a535bb85
i3-companion: try to move windows in the same workspace as similar ones
2021-07-16 19:53:12 +02:00
Vincent Bernat
4e21366d7a
i3-companion: don't consider a win exclusive if it has the same window class
2021-07-16 16:41:07 +02:00
Vincent Bernat
78378278c3
i3-companion: moar bluetooth icons
...
And rearrange the matching code
2021-07-16 10:15:39 +02:00
Vincent Bernat
4d76aedb61
i3-companion: reduce CPU usage by avoiding f-string for logger.debug
2021-07-16 08:22:59 +02:00
Vincent Bernat
bf08c327a3
i3-companion: make debounce decorator composable
...
This allows us to move the retry behavior into a separate decorator.
The semantic is a bit different as, now, if there is another iteration
pending, it is lost.
2021-07-16 08:03:03 +02:00
Vincent Bernat
a5e5b23ec8
i3-companion: fix bluetooth on/off
2021-07-16 07:27:59 +02:00
Vincent Bernat
fc3563777a
i3-companion: make more properties of DBusSignal optional
2021-07-16 01:18:19 +02:00
Vincent Bernat
c974b59082
i3-companion: make DBusSignal accept more filters
2021-07-16 01:15:33 +02:00
Vincent Bernat
2fd855e191
i3-companion: push bluetooth status to polybar
2021-07-16 00:52:54 +02:00
Vincent Bernat
e79b7291ad
i3-companion: avoid leaking X11 file descriptor
2021-07-15 21:26:54 +02:00
Vincent Bernat
0f4e668b51
i3-companion: avoid leaking window name in logs
2021-07-15 20:52:32 +02:00
Vincent Bernat
ea4905bc9d
i3-companion: enable autoreconnect to i3
2021-07-15 18:20:59 +02:00
Vincent Bernat
550ad9deac
i3-companion: switch to Xlib to query XRandR state
2021-07-15 15:28:24 +02:00
Vincent Bernat
84b1aa99cc
i3-companion: don't restart everything on spurious RandR events
2021-07-15 15:14:39 +02:00
Vincent Bernat
c7365a8886
i3-companion: add icon for d-feet
2021-07-14 20:47:46 +02:00
Vincent Bernat
ba28674f9b
Revert "polybar: tentative to use Material Icons"
...
This reverts commit 4e152f0466
. Not
worth it currently.
2021-07-14 17:33:19 +02:00
Vincent Bernat
4e152f0466
polybar: tentative to use Material Icons
2021-07-14 17:33:03 +02:00
Vincent Bernat
113efb421f
polybar: change notification icon
2021-07-14 17:25:41 +02:00
Vincent Bernat
295e13f1c4
polybar: display dunst state for notifications
2021-07-14 17:14:52 +02:00
Vincent Bernat
80c4605916
i3-companion: use proper DBus language
...
From https://www.freedesktop.org/wiki/IntroductionToDBus/#addressing
2021-07-14 17:09:45 +02:00
Vincent Bernat
de9c33eaad
i3-companion: specify bus to listen to for DBus events
2021-07-14 16:57:23 +02:00
Vincent Bernat
0e95635691
i3-companion: decorator to declare static variables
...
This seems cleaner than using `getattr()` to initialize the variable
inside the function.
Also, the debouncer function does not need this and can work with a
dictionary mapping functions to their worker.
2021-07-14 11:08:39 +02:00
Vincent Bernat
896e12e73e
i3-companion: polybar's fonts are 1-indexed
2021-07-14 09:09:33 +02:00
Vincent Bernat
65caa00117
i3-companion: use window current workspace for exclusivity check
2021-07-14 07:39:58 +02:00
Vincent Bernat
81cdc7b40d
i3-companion: remove debug code
2021-07-13 17:10:54 +02:00
Vincent Bernat
71a3d1d4a4
i3-companion: move polybar handling into its own function
2021-07-13 08:11:48 +02:00
Vincent Bernat
71dcb5d6bc
i3-companion: rename dampen to debounce
...
I think this is more correct. Dampen is used in network world, but
debounce seems more common (notably, we debounce push buttons).
Another word could be throttle but that does not match as we need to
react to the last event of a batch instead of the first (and we sure
don't want to drop the last).
2021-07-13 00:39:45 +02:00
Vincent Bernat
2781777842
i3-companion: also dampen a bit workspace renames
...
Just because I want to use this new function!
2021-07-13 00:31:26 +02:00
Vincent Bernat
b6354b1256
i3-companion: move all state inside fn.worker namespace
...
This is cleaner than putting arbitrary attributes inside a task. The
scheduling will be done later, so it is safe to put put everything
inside the namespace object and avoid polluting the function
namespace.
2021-07-13 00:26:31 +02:00
Vincent Bernat
b62f747837
i3-companion: add back ability to trigger urgent work despite of damping
2021-07-13 00:13:55 +02:00