更先进的i3工作区切换。

pi3-switch的Python项目详细描述


关于

这个简单的程序将选定的i3工作区移动到当前输出,由光标位置或聚焦窗口决定。有三种模式可用-有关更多信息,请参阅使用部分。

用法

usage: pi3-switch [-h] [-f] [-p | -m | -s] WORKSPACE_NAME

Moves selected i3 workspace to the current output (by default determined by
cursor location) and focuses it.

positional arguments:
  workspace     name of the i3 workspace

optional arguments:
  -h, --help    show this help message and exit
  -f, --focus   use focused window instead of cursor position to determine the
                current output
  -p, --push    moves replaced workspace to the second output (works only if
                there are two outputs, ignored otherwise)
  -m, --master  same as 'push' but will only move from primary output to the
                secondary
  -s, --swap    (NOT IMPLEMENTED YET) behaves like xmonad, swaps workspaces if
                they are on a different output

安装

使用pipsi(推荐)或pip:

安装
pipsi install pi3-switch

将keybindings添加到~/.config/i3/config并重新加载i3(请记住根据需要修改标志):

bindsym $mod+1 exec pi3-switch -p 1
bindsym $mod+2 exec pi3-switch -p 2
bindsym $mod+3 exec pi3-switch -p 3
bindsym $mod+4 exec pi3-switch -p 4
bindsym $mod+5 exec pi3-switch -p 5
bindsym $mod+6 exec pi3-switch -p 6
bindsym $mod+7 exec pi3-switch -p 7
bindsym $mod+8 exec pi3-switch -p 8
bindsym $mod+9 exec pi3-switch -p 9
bindsym $mod+0 exec pi3-switch -p 10

学分

感谢travis finkenauer的灵感(i3-wk-switch)和 tony crisci提供了一个易于使用的i3 python库(i3ipc-python)。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在可序列化接口下重写readObject()和writeObject()方法在实际开发中的应用如何?   java JAXWS在显式添加SOAPAction头后发送空值   拆分从文件中读取的字符串时发生java ArrayIndexOutOfBoundsException   java使用Fabric远程启动Tomcat   这可以用Java实现吗?   java从AccoutHeaderBuilder()中定义的ProfileSettingDrawerItem()打开活动   java我需要我的SpringBootWebApplication在JUnit中重新启动   java通过蓝牙将数据从手机发送到笔记本电脑   java HttpServletRequest:如何确定所请求资产的ContentType   使用WMQ代码(非JMS)实现IBM MQ侦听器的java   使用java执行后台进程静默模式。exe   java如何从stringarray列表中随机选择   HackerAth上的java NZEC错误   java如何修复错误502状态   java JPanel GridLayout(部分由循环填充)将新值添加到end,而不考虑它们的添加顺序   java BigInteger循环和逻辑未按计划工作