V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
joyanhui
V2EX  ›  Linux

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

  •  
  •   joyanhui · Apr 26, 2023 · 1791 views
    This topic created in 1108 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   ·   961 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:12 · PVG 04:12 · LAX 13:12 · JFK 16:12
    ♥ Do have faith in what you're doing.