加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

使用wmctrl关闭窗口

发布时间:2020-12-14 04:30:26 所属栏目:Windows 来源:网络整理
导读:我可以使用在Ubuntu上运行wine的wmctrl关闭窗口吗? 对于上下文: $wmctrl -mName: compizClass: N/APID: N/AWindow manager's "showing the desktop" mode: OFF 也: $wmctrl -l0x0240a3be -1 mjol N/A0x02000003 0 mjol Top Expanded Edge Panel0x0200004c
我可以使用在Ubuntu上运行wine的wmctrl关闭窗口吗?

对于上下文:

$wmctrl -m
Name: compiz
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: OFF

也:

$wmctrl -l
0x0240a3be -1 mjol N/A
0x02000003  0 mjol Top Expanded Edge Panel
0x0200004c  0 mjol Bottom Expanded Edge Panel
0x01e00024  0 mjol x-nautilus-desktop
0x04800253  0 mjol using wmctrl to close windows - Stack Overflow - Google Chrome
0x03c0c8c3  0 mjol Terminal
0x03c53f25  0 mjol Terminal
0x04400001  0 mjol Untitled - SketchUp
0x04400003  0 mjol Instructor
0x04400009  0 mjol SketchUp

我要关闭的窗口是最后一个:

0x04400009  0 mjol SketchUp

我尝试过以下方法:

$wmctrl -c "SketchUp"

$wmctrl -c 0x04400009

$wmctrl -i 0x04400009

$wmctrl -c -i 0x04400009

但没有任何作用.

解决方法

也许有点晚了,但现在第一次见到. 读取wmctrl的信息,它表示正确的语法是动作之前的’选项’,-i是一个选项,-c是一个动作.试试wmctrl -i -c 0x04400009

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读