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.
This commit is contained in:
Vincent Bernat 2021-07-04 19:08:48 +02:00
parent 662db00e36
commit 43ab22dee5
5 changed files with 129 additions and 4 deletions

View file

@ -43,15 +43,15 @@ enable-scroll = false
label-mode-background = ${colors.highlight}
label-mode-padding = 1
label-focused = %index%
label-focused = %name%
label-focused-background = ${colors.highlight}
label-focused-padding = 1
label-unfocused = %index%
label-unfocused = %name%
label-unfocused-padding = 1
label-visible = %index%
label-visible = %name%
label-visible-background = ${self.label-focused-background}
label-visible-padding = ${self.label-focused-padding}
label-urgent = %index%
label-urgent = %name%
label-urgent-background = #a00000
label-urgent-padding = 1

View file

@ -0,0 +1,7 @@
[Unit]
Description=i3 companion
PartOf=graphical-session.target
[Service]
ExecStart=%h/.config/i3/bin/i3-companion
Restart=on-failure

View file

@ -8,6 +8,7 @@ After=tmux.service
After=ssh-agent.service
Before=wallpaper.service
Before=polybar.service
Before=i3-companion.service
[Service]
ExecStart=/usr/bin/i3

View file

@ -4,6 +4,7 @@ BindsTo=graphical-session.target
Wants=autorandr.service
Wants=dunst.socket
Wants=i3.service
Wants=i3-companion.service
Wants=inputplug.service
Wants=misc-x.service
Wants=picom.service