linux - 如何将 xinit 和 xsetroot 串在一行中?

标签 linux xserver

我的目标是在没有 xterm 的 xinit 中显示纯色背景,全屏纯色背景就可以了。 我意识到我可以使用 xsetroot -solid color 来达到此目的,但 xterm 仍然存在。 我还知道我可以使用“xinit ./mplayer *mp4”在 xinit 内运行全屏视频

我尝试对 xsetroot 使用相同的解决方法

xinit /usr/bin/xsetroot -solid green

但这不起作用。

有人知道实现我上述目标的任何解决方法吗?

非常感谢您的投入。

最佳答案

尝试:

xinit ; DISPLAY=:0 /usr/bin/xsetroot -solid green

或者使用

创建一个 .xinitrc
/usr/bin/xsetroot -solid green &

在里面。

HTH

关于linux - 如何将 xinit 和 xsetroot 串在一行中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6990610/

相关文章:

linux - 在 Ubuntu Linux 中提取 EXE 图标

c++ - 特定目标文件的单线程构建

c - 找不到 glXCreateContextAttribsARB(在 OpenGL 4.2 驱动程序、GLX 1.4 上)

linux - 无法在 xserver 客户端上显示 xclock 程序 - Mobaxterm

linux - 如何通过sysfs访问设备?

linux - 压缩文件并打印到标准输出

c - 如何使用 Motif 编译 '97 C 代码?

linux - unix/Xserver 上的最小公分母 GUI 库

linux - 在 Linux 中,是否需要 X 服务器来进行离屏渲染?

hadoop - 宏:编辑记录的MobaXterm宏