Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
joyanhui
V2EX  ›  Linux

i3wm 怎么让一个按键执行多个窗口命令?

  •  
  •   joyanhui · Apr 26, 2023 · 1856 views
    This topic created in 1138 days ago, the information mentioned may be changed or developed.
    bindsym --whole-window $mod+button1 resize set 1280 1000 &&  move position 10px 10px &&mode "default" 
    

    这三个操作 单独执行没问题,写一起 一直报说说没有 px pt

    ERROR: Expected one of these tokens: 'px', 'ppt', <end>
    ERROR: Your command: [con_id="0x55829e988750"] resize set 1280 1000 &&  move position 10px 10px &&mode "default" 
    ERROR:                  
    
    err1y
        1
    err1y  
       Apr 26, 2023 via iPhone
    用括号括起来试试
    bindsym --whole-window $mod+button1 (resize set 1280 1000 && move position 10px 10px &&mode "default" )
    lxy42
        2
    lxy42  
       Apr 26, 2023 via Android
    用逗号或分号分割不同的命令
    joyanhui
        3
    joyanhui  
    OP
       Apr 27, 2023
    @err1y
    @lxy42

    3ks
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5450 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 07:38 · PVG 15:38 · LAX 00:38 · JFK 03:38
    ♥ Do have faith in what you're doing.