-- shebang for running in several platforms
-- #!/bin/sh
-- _=[[
-- exec lua "$0" "$@"
-- ]]
f = assert (io.popen ("wmctrl -lp"))
for line in f:lines() do
w_id = string.sub(line,1,10)
i, j = string.find(line,"conky")
if (i == nil) then
os.execute("xdotool windowminimize " .. w_id)
end
end -- for loop
f:close()
这是脚本 minallwin.lua(用 lua 语言制作)
own_window_type
如果您将其设置为conky ,则有一个选项desktop
不会被最小化:并添加:
保存文件并完成。