목차

WMCtrl

창 목록

wmctrl -l

창 위치 옮기기

Window fullscreen toggle

wmctrl -r ':ACTIVE:' -b toggle,fullscreen

workspace 작업공간

# 작업공간 목록
wmctrl -d
 
# 작업공간 이동(0부터 시작)
wmctrl -s 0
gsettings get org.gnome.desktop.wm.preferences num-workspaces

show desktop

#!/bin/bash
status="$(wmctrl -m | grep "showing the desktop" | sed -r 's/(.*)(ON|OFF)/\2/g')"
 
if [ $status == "ON" ]; then
    wmctrl -k off
else
    wmctrl -k on
fi