# 三指手势 gestures swipe left 3 $HOME/Program/bin/move_window_or_tab gestures swipe right 3 $HOME/Program/bin/move_window_or_tab right gestures swipe up 3 $HOME/Program/bin/move_window_or_tab up gestures swipe down 3 $HOME/Program/bin/move_window_or_tab down
# 四指手势 gestures swipe left 4 i3-msg workspace prev gestures swipe right 4 i3-msg workspace next gestures swipe up 4 $HOME/Program/bin/show_or_hide_scratchpad up gestures swipe down 4 xdotool key super+shift+minus
# 核心逻辑部分 if [[ $DIRECTION == 'up' ]]; then if i3-msg focus floating; then i3-msg move scratchpad fi elif [[ $DIRECTION == 'down' ]]; then if i3-msg focus floating; then i3-msg move scratchpad i3-msg move scratchpad else i3-msg move scratchpad fi i3-msg [floating] resize set 1280 1200 i3-msg move position center fi