如果你使用过 Dwn 或 Awesome 这种平铺式窗口管理器,一定对这种显示方式印象深刻,现在即使在纯终端下,也可以平铺一把。
Dvtm 是一款仿照平铺式窗口管理器的虚拟终端,可以将多个终端界面同时显示出来,并支持随时创建和切换。
直接在终端运行 dvtm 即可启动。dvtm 的中的命令通过 Mod 键( 默认为 Ctrl+g ),再配合字母来激活。
Mod-c 创建新终端窗口
Mod-x 关闭当前窗口
Mod-l 增大当前窗口
Mod1-h 减小当前窗口
Mod-j 移动到下一窗口
Mod-k 移动到前一窗口
Mod-[1..n]
激活第 n 个窗口
Mod-. 最小化当前窗口
像 Dwm 一样,你可以给 dvtm 指定窗口的 “分割模式”:
+----------+----------+ +----------+----------+
| | | | | |
| | | | | |
| | | | | |
| | | | +----------+
| | | | | |
| | | | | |
| | | | | |
+---------------------+ +---------------------+
2 windows 3 windows
+----------+----------+ +----------+----------+
| | | | | |
| | | | +----------+
| +----------+ | | |
| | | | +----------+
| +----------+ | | |
| | | | +----------+
| | | | | |
+---------------------+ +---------------------+
4 windows 5 windows
+----------+----------+ +----------+----------+
| | | |
| | | |
| | | |
+---------------------+ +---------------------+
| | | | |
| | | | |
| | | | |
+---------------------+ +---------------------+
2 windows 3 windows
+---------------------+ +---------------------+
| | | |
| | | |
| | | |
+------+-------+------+ +----+-----+-----+----+
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
+------+-------+------+ +----+-----+-----+----+
4 windows 5 windows
+----------+----------+ +----------+----------+
| | | | | |
| | | | | |
| | | | | |
| | | +----------+----------+
| | | | |
| | | | |
| | | | |
+---------------------+ +---------------------+
2 windows 3 windows
+----------+----------+ +------+-------+------+
| | | | | | |
| | | | | | |
| | | | | | |
+----------+----------+ +------+---+---+------+
| | | | | |
| | | | | |
| | | | | |
+---------------------+ +---------------------+
4 windows 5 windows
三种分割模式的区别在于新窗口的出现位置,你可以通过快捷键实时切换:
Mod-t Change to vertical stack tiling layout.
Mod-b Change to bottom stack tiling layout.
Mod-g Change to grid layout.
如果你在终端下配置了鼠标,那就可以直接用鼠标来切换窗口,单击即为选择,双击即为最大化当前窗口。
更多的命令可以参考 man dvtm。
Dvtm 的主页: http://www.brain-dump.org/projects/dvtm
如果你想在图形界面下任意分割终端窗口,那么可以试试 GNOME Terminator。
is-Programmer 是一个面向 Linux 爱好者与程序员的 Blog 系统,具有简洁的风格,方便的代码高亮和数学公式插入功能,适合撰写学习笔记和技术文档。
Host by is-Programmer.com | Power by Chito 1.3.3 beta
2009年2月04日 06:15
linuxgem推荐了很多精品软件,太好了
man 一下还有其他快捷键
2009年2月04日 13:24
配置一下,就可以做成一个监控界面。
2009年3月31日 06:29
安装上后,在putty上无法 新增终端窗口,按Ctrl+g+c 没反应
是否一定要安装Xwindows之类的才能用?
2009年4月17日 03:08
@jack 我的用pietty远程连到LINUX下, 开着screen里运行dvtm很正常,很棒
2009年8月18日 01:42
用dvtm,但打开vim,里面的配色不显示。。。真是郁闷。直接没用dvtm了.
2013年5月11日 14:04
你说的快捷键没用吖?
2022年4月06日 05:48
I would like to say that this blog really convinced me to do it! Thanks, very good post. https://www.posterprintcenter.com/large-format-printing/delivery-installation.html
2022年4月13日 22:56
I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! 출장마사지
2022年4月18日 23:15
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. foto malen lassen
2022年4月19日 15:22
We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. cbd tropfen
2022年6月12日 00:30
We guarantee plagiarism-free work and that your custom college papers will pass Turnitin. Since Turnitin saves all files, we check papers with Copyleaks and Copyscape. essaywriter.org