窗口快捷键除了系统默认的之外,还能设置别的不?
Tofloor
poster avatar
chuqq
deepin
2018-02-02 06:18
Author
窗口快捷键除了系统默认的之外,还能设置别的不?

比如系统默认有窗口最大化的快捷键是super+up,我想加一个窗口平铺左半边的快捷键,可行吗?需要改哪个配置文件?
Reply Favorite View the author
All Replies
avatar
jingle
deepin
2018-02-02 16:39
#1
本帖最后由 jingle 于 2018-2-2 11:28 编辑

貌似现在快捷键设置有点麻烦  拖动半屏也可以的
Reply View the author
avatar
sonald
deepin
2018-02-02 19:16
#2
么有快捷键,但是有dbus接口。
qdbus com.deepin.wm  /com/deepin/wm com.deepin.wm.TileActiveWindow 1 左平铺
qdbus com.deepin.wm  /com/deepin/wm com.deepin.wm.TileActiveWindow 2 右平铺
你可以在控制中心自定义快捷键
Reply View the author
avatar
kim213
deepin
2018-02-02 22:01
#3
后面的版本会计划加入快捷键
Reply View the author
avatar
chuqq
deepin
2018-02-02 22:39
#4
https://bbs.deepin.org/post/152786
么有快捷键,但是有dbus接口。
qdbus com.deepin.wm  /com/deepin/wm com.deepin.wm.TileActiveWindow 1 左 ...

亲测有效,谢谢!

再请问,上半平铺和下半平铺有dbus接口吗?
Reply View the author
avatar
chuqq
deepin
2018-02-02 22:39
#5
https://bbs.deepin.org/post/152786
后面的版本会计划加入快捷键

谢谢,赞!
Reply View the author
avatar
sonald
deepin
2018-02-02 23:19
#6
https://bbs.deepin.org/post/152786
亲测有效,谢谢!

再请问,上半平铺和下半平铺有dbus接口吗?

哪有上半平铺这种东西。。。
Reply View the author
avatar
chuqq
deepin
2018-02-03 01:09
#7
https://bbs.deepin.org/post/152786
哪有上半平铺这种东西。。。

下面这段是lubuntu中.config/openbox/lubuntu-rc.xml中的配置:

  1.    
  2.             # HalfLeftScreen
  3.       
  4.       00100%50%
  5.    
  6.             # HalfRightScreen
  7.       
  8.       -00100%50%
  9.    
  10.             # HalfUpperScreen
  11.       
  12.       00100%50%
  13.    
  14.             # HalfLowerScreen
  15.       
  16.       0-0100%50%
  17.    
Copy the Code


我觉得实际的使用场景中,比如很多程序员喜欢把显示器竖着摆放,这样上下平铺比左右平铺更合适一些。
Reply View the author
avatar
sonald
deepin
2018-02-07 17:49
#8
https://bbs.deepin.org/post/152786
下面这段是lubuntu中.config/openbox/lubuntu-rc.xml中的配置:

这不就是普通的move+resize么,用xdotool 自己弄个脚本绑也可以么。mutter的平铺是一种窗管状态,取消平铺会回到之前的状态。
Reply View the author
avatar
chuqq
deepin
2018-02-15 04:05
#9
https://bbs.deepin.org/post/152786
么有快捷键,但是有dbus接口。
qdbus com.deepin.wm  /com/deepin/wm com.deepin.wm.TileActiveWindow 1 左 ...

还有一个问题,这种自定义快捷的方式对深度文件管理器没有效果,但是系统带的super+up和super+down快捷键对深度文件管理器是OK的,请问这是为什么?
Reply View the author
avatar
sonald
deepin
2018-03-05 17:53
#10
https://bbs.deepin.org/post/152786
还有一个问题,这种自定义快捷的方式对深度文件管理器没有效果,但是系统带的super+up和super+down快捷键 ...

有的窗口会设置最小宽度的要求。如果设置了,平铺前窗管会检查,只有要求的最小宽度不超过屏幕宽度的一半时才可以平铺。
Reply View the author
avatar
chuqq
deepin
2018-03-07 06:05
#11
https://bbs.deepin.org/post/152786
有的窗口会设置最小宽度的要求。如果设置了,平铺前窗管会检查,只有要求的最小宽度不超过屏幕宽度的一半 ...

了解了,谢谢!
Reply View the author