mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-02 17:24:27 +02:00
i3-companion: make i3-tabbed work by inhibiting exclusive workspaces
This commit is contained in:
parent
69e027f250
commit
f95d1e2b92
2 changed files with 34 additions and 6 deletions
|
@ -1,12 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# Splits the current terminal into a tab layout, runs a command, then restores the original layout.
|
||||
# Handy for opening images and videos "inside" a terminal.
|
||||
# Splits the current terminal into a tab layout, runs a command, then
|
||||
# restores the original layout. Handy for opening images and videos
|
||||
# "inside" a terminal.
|
||||
#
|
||||
# This effect is similar to dwm's window swallowing patch: https://www.youtube.com/watch?v=92uo5OBOKfY
|
||||
#
|
||||
# To be super minimal, configure i3 to use a 0px font size to hide the tab title bars. With the
|
||||
# unfortunate caveat that this will cause i3 error messages to become unreadable.
|
||||
# Stolen from https://github.com/aduros/dotfiles/blob/master/home/bin/i3-tabbed
|
||||
|
||||
from i3ipc import Connection
|
||||
import subprocess
|
||||
|
@ -28,6 +28,9 @@ elif layout == "splitv":
|
|||
orig.command("split h")
|
||||
orig.command("layout tabbed")
|
||||
|
||||
# Ensure we don't collide with exclusive app handling
|
||||
i3.send_tick("inhibit-exclusive")
|
||||
|
||||
try:
|
||||
# Run the given command
|
||||
code = subprocess.run(sys.argv[1:]).returncode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue