mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-29 04:50:01 +02:00
i3-companion: move configuration at the top
This commit is contained in:
parent
f2e6173e30
commit
7669da1c9f
1 changed files with 25 additions and 30 deletions
|
@ -23,6 +23,31 @@ from systemd import journal
|
|||
import ravel
|
||||
import dbussy
|
||||
|
||||
# See https://fontawesome.com/v6.0/icons
|
||||
application_icons = {
|
||||
"chromium": "",
|
||||
"discord": "",
|
||||
"emacs": "",
|
||||
"firefox": "",
|
||||
"gimp": "",
|
||||
"gitg": "",
|
||||
"google-chrome": "",
|
||||
"inkscape": "",
|
||||
"libreoffice": "",
|
||||
"mpv": "",
|
||||
"pavucontrol": "",
|
||||
"signal": "",
|
||||
"snes9x-gtk": "",
|
||||
"spotify": "",
|
||||
"steam": "",
|
||||
"vbeterm": "",
|
||||
"zathura": "",
|
||||
"zoom": "",
|
||||
}
|
||||
application_icons_nomatch = ""
|
||||
application_icons_alone = {application_icons[k] for k in {"vbeterm"}}
|
||||
exclusive_apps = {"emacs", "firefox"}
|
||||
intrusive_apps = {"vbeterm"}
|
||||
|
||||
logger = logging.getLogger("i3-companion")
|
||||
|
||||
|
@ -34,7 +59,6 @@ StartEvent = object()
|
|||
I3Event = i3ipc.Event
|
||||
CommandEvent = collections.namedtuple("CommandEvent", ["name"])
|
||||
|
||||
|
||||
NM_ACTIVE_CONNECTION_STATE_ACTIVATED = 2
|
||||
NM_DEVICE_TYPE_ETHERNET = 1
|
||||
NM_DEVICE_TYPE_WIFI = 2
|
||||
|
@ -78,31 +102,6 @@ async def notify(i3, **kwargs):
|
|||
return await notifications.Notify(**parameters)
|
||||
|
||||
|
||||
# See https://fontawesome.com/v5.15/icons
|
||||
application_icons = {
|
||||
"chromium": "",
|
||||
"discord": "",
|
||||
"emacs": "",
|
||||
"firefox": "",
|
||||
"gimp": "",
|
||||
"gitg": "",
|
||||
"google-chrome": "",
|
||||
"inkscape": "",
|
||||
"libreoffice": "",
|
||||
"mpv": "",
|
||||
"pavucontrol": "",
|
||||
"signal": "",
|
||||
"snes9x-gtk": "",
|
||||
"spotify": "",
|
||||
"steam": "",
|
||||
"vbeterm": "",
|
||||
"zathura": "",
|
||||
"zoom": "",
|
||||
}
|
||||
application_icons_nomatch = ""
|
||||
application_icons_alone = {application_icons[k] for k in {"vbeterm"}}
|
||||
|
||||
|
||||
@on(I3Event.WINDOW_MOVE, I3Event.WINDOW_NEW, I3Event.WINDOW_CLOSE)
|
||||
async def workspace_rename(i3, event):
|
||||
"""Rename workspaces using icons to match what's inside it."""
|
||||
|
@ -167,10 +166,6 @@ async def new_workspace(i3, event):
|
|||
)
|
||||
|
||||
|
||||
exclusive_apps = {"emacs", "firefox"}
|
||||
intrusive_apps = {"vbeterm"}
|
||||
|
||||
|
||||
@on(I3Event.WINDOW_NEW)
|
||||
async def worksplace_exclusive(i3, event):
|
||||
"""Move new windows on a new workspace instead of sharing a workspace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue