Commit graph

471 commits

Author SHA1 Message Date
Vincent Bernat
6638bfdb36 i3-companion: log to systemd 2021-07-10 13:17:07 +02:00
Vincent Bernat
5583ecdc52 i3-companion: add icon for gitg 2021-07-10 13:07:14 +02:00
Vincent Bernat
a2588342ff i3-companion: fix logic for container layout
Only empty workspaces are special. They follow `workspace_layout`
value, except if `default`, in this case `layout`.
2021-07-09 20:35:59 +02:00
Vincent Bernat
8490fed7bc i3-companion: don't display layout for leaves, it does not make sense
If we change the direction of a window, this creates a new container.
I don't think layout is used at all for windows.
2021-07-09 20:18:53 +02:00
Vincent Bernat
47d4fc848c i3-companion: don't display layout for workspaces unless empty 2021-07-09 20:11:56 +02:00
Vincent Bernat
856ef13c02 i3-companion: display tree for the current workspace
This helps to understand what's happening.
2021-07-09 16:12:00 +02:00
Vincent Bernat
ae73f4c60f input: fix configuration between guybrush/chocobo 2021-07-08 22:54:38 +02:00
Vincent Bernat
f4f7a1c617 input: fix touchpad configuration 2021-07-08 22:53:18 +02:00
Vincent Bernat
f731de2528 input: reenable natural scrolling on SynPS/2 2021-07-08 21:15:54 +02:00
Vincent Bernat
5141bf86cd xsettinsd: restart i3-cmd on DPI change as well
It reads DPI value from Xft.dpi.
2021-07-08 17:54:34 +02:00
Vincent Bernat
7f17d6f397 i3-companion: only consider instance/class for icon
Name may be too random. Straighten a bit the regex too to avoid
matching on prefixes.
2021-07-08 14:25:14 +02:00
Vincent Bernat
396ca23b33 i3-companion: use Steam icon for Steam 2021-07-08 12:06:42 +02:00
Vincent Bernat
5239148319 i3-companion: use bindings to communicate with companion
This avoids spawning an i3-msg process. The drawback is that we have
to listen to all keybindings.
2021-07-08 12:01:17 +02:00
Vincent Bernat
a3ffbddf82 polybar: handle alone/primary/secondary configurations 2021-07-08 08:12:39 +02:00
Vincent Bernat
3909defef4 i3-companion: also display window type on window info 2021-07-07 23:12:57 +02:00
Vincent Bernat
9196497e6c i3-companion: don't move exclusive apps to new workspace when alone 2021-07-07 23:11:22 +02:00
Vincent Bernat
eea648a27a i3-companion: display percent value for window info 2021-07-07 22:04:38 +02:00
Vincent Bernat
b368fb65c5 i3-companion: not all containers have a window ID 2021-07-07 22:03:39 +02:00
Vincent Bernat
2206d4f236 xss-lock: better comments 2021-07-07 18:55:50 +02:00
Vincent Bernat
fa589e3716 xss-lock: pause notifications when screen is locked 2021-07-07 18:54:18 +02:00
Vincent Bernat
d215c151a9 i3-companion: fix some edge cases for exclusive workspaces 2021-07-07 18:52:19 +02:00
Vincent Bernat
46462ebd4a i3-companion: make some workspace exclusives
When they contain some apps, new apps should go to a new workspace,
unless they can intrude.
2021-07-07 17:53:59 +02:00
Vincent Bernat
ed203771f1 i3-companion: add back missing event binding 2021-07-07 16:58:07 +02:00
Vincent Bernat
6b63b84fdf i3-companion: moar icons 2021-07-07 15:01:30 +02:00
Vincent Bernat
7a816e4292 i3-companion: enhance help with list of functions 2021-07-07 14:14:35 +02:00
Vincent Bernat
e089c59de5 i3-companion: organize code a bit differently to ease browsing
This is not ideal, but I don't want to split into several files yet.
2021-07-07 14:14:12 +02:00
Vincent Bernat
ec86d91c91 i3-companion: use decorators to declare event functions 2021-07-07 14:02:07 +02:00
Vincent Bernat
e1fcaede3f i3-companion: add a binding to show window info 2021-07-07 12:30:30 +02:00
Vincent Bernat
a91cc6d56e i3-companion: reload xsettingsd and update wallpaper on XRandR changes 2021-07-07 06:34:19 +02:00
Vincent Bernat
b8a6ad1122 i3-companion: switch to asyncio 2021-07-07 00:24:23 +02:00
Vincent Bernat
d4b25aa2da i3-companion: log output events
This will be useful when trying to debug output changes. I need to
know what I need to restart. Awesome was restarted while i3 does not.
On top of my head, I need to reload xsettingsd.service and start
wallpaper.service.
2021-07-06 14:53:48 +02:00
Vincent Bernat
1caacfd679 i3-companion: swallow quake console functionality
While payload could be structured, we keep a string as it is easier to
express it in i3 configuration file.
2021-07-06 10:37:01 +02:00
Vincent Bernat
4dcf46c2ed i3-companion: when no app, remove trailing ":" in workspace name 2021-07-06 08:25:14 +02:00
Vincent Bernat
b8bfc9d586 i3-companion: improve a bit code for new workspaces 2021-07-05 19:54:21 +02:00
Vincent Bernat
c5b2baca1e i3-companion: also offer possibility to move a window to a new workspace 2021-07-05 19:52:25 +02:00
Vincent Bernat
f0c47af02e i3-companion: add a command to open a new workspace
This is quite a generic idea: use tick to trigger some actions without
spawning a whole Python process.
2021-07-05 19:09:58 +02:00
Vincent Bernat
2e53b86fea i3-companion: icon for inkscape and zathura 2021-07-05 17:21:51 +02:00
Vincent Bernat
c1117ba343 Revert "i3-companion: tentative to display workspace layout"
This reverts commit c3f12f311f.
2021-07-05 15:02:30 +02:00
Vincent Bernat
c3f12f311f i3-companion: tentative to display workspace layout
Unfortunately, we don't modify workspace layout, we modify container
layout. We could modify workspace layout, but this seems a bit
useless.
2021-07-05 14:58:48 +02:00
Vincent Bernat
a21074190c i3-companion: add icons for Discord and Signal 2021-07-05 10:50:33 +02:00
Vincent Bernat
1b05771dd0 i3-companion: add icon for Zoom 2021-07-05 10:29:45 +02:00
Vincent Bernat
b6291798e4 xsettingsd: do not restart polybar if it is not already running 2021-07-05 10:05:34 +02:00
Vincent Bernat
fa58f9f7eb xsettingsd: fix creation of ~/.xsettingsd 2021-07-05 09:46:41 +02:00
Vincent Bernat
d2e9eb6aa3 i3-companion: remove autosplit
Not sure if this is really useful. When windows become too small, it
would be smarter to have something different.
2021-07-05 08:12:51 +02:00
Vincent Bernat
a77a5e27ce More configuration
Including a Quake console and autosplit in i3-companion.
2021-07-05 08:04:35 +02:00
Vincent Bernat
43ab22dee5 i3-companion: add a companion for i3
This is a Python script implementing what's missing from i3.
Currently, it will only rename workspace to add icons with their
content.
2021-07-04 19:08:48 +02:00
Vincent Bernat
662db00e36 More configuration
Notably polybar
2021-07-04 18:25:28 +02:00
Vincent Bernat
f306d92a0d More initial configuration
Notably add Dunst for notifications.
2021-07-04 14:54:07 +02:00
Vincent Bernat
d85a504c53 Initial i3 configuration
This is derived from my Awesome configuration. Still a lot to do from
a WM perspective. The organization is a bit different and I am giving
it up on the per-display systemd units as it does not really work due
to the fact we only have one user DBus and one environment.
2021-07-04 08:38:39 +02:00
Vincent Bernat
dd042ae594 xss-lock: don't suspend compositor on lock
Let's see if the confidentiality issue is still here. The problem with
suspending the compositor is that Firefox with EGL will freeze its
rendering. See https://bugzilla.mozilla.org/show_bug.cgi?id=1712665.

OK, the problem was that when screens are added/removed, i3lock is
unable to stay on top. I'll live with that for now.
2021-06-30 20:26:30 +02:00