vis-config

lua scripts to configure vis editor

git clone https://9o.is/git/vis-config.git

commit ad24747f66b75a6815fb594b9fbffc36d095eea4
parent 5d02bbbbd8533893b907ceed594e57efe3967f99
Author: Jul <jul@9o.is>
Date:   Thu, 26 Feb 2026 04:48:35 +0800

remove tmux from x11

Diffstat:
Mlib/window-manager/x11.lua | 25+------------------------
1 file changed, 1 insertion(+), 24 deletions(-)

diff --git a/lib/window-manager/x11.lua b/lib/window-manager/x11.lua @@ -1,9 +1,7 @@ local fd_qrexec -local fd_tmux local fd_xev local winid local xembed -local tmuxid local laststatus local function write(cmd) @@ -16,16 +14,6 @@ local function write(cmd) return true end -local function write_tmux(cmd) - if io.type(fd_tmux) ~= 'file' then - vis:info('tmux client is not running') - return false - end - fd_tmux:write(cmd .. '\n') - fd_tmux:flush() - return true -end - local function open_status() local cmd if os.execute('qubesdb-read-bool /qubes-service/guivm') then @@ -47,8 +35,6 @@ x11.init = function() xembed = os.getenv('XEMBED') winid = os.getenv('WINDOWID') - tmuxid = os.getenv('TMUX_PANE') - if not winid then return end @@ -56,13 +42,8 @@ x11.init = function() fd_qrexec = open_status() fd_xev = listenfocus() - if tmuxid then - fd_tmux = vis:communicate('tmux', - string.format("exec env -u TMUX tmux -C attach -t %s", tmuxid)) - end - vis.events.subscribe(vis.events.PROCESS_RESPONSE, function(name, event, code, msg) - if name ~= 'qrexec-winstatus' and name ~= 'xev-winstatus' and name ~= 'tmux' then + if name ~= 'qrexec-winstatus' and name ~= 'xev-winstatus' then return end @@ -109,10 +90,6 @@ x11.terminal = function(argv) end x11.set_title = function(title) - if fd_tmux then - return write_tmux(string.format("select-pane -t %s -T '%s'", tmuxid, title)) - end - local f = io.open("/dev/tty", "w") if f then f:write("\27]2;" .. title .. "\7")