cortile icon indicating copy to clipboard operation
cortile copied to clipboard

requested feature (switcher mode) show tiling for all open windows

Open ahmeteid7 opened this issue 1 year ago • 5 comments

can cortile has feature that show all open windows(active and not active) as switcher app. i know he do tiling for the raise window, what if i want to have(tiling show) which show the minimize windows too as switcher mode like skippy-xd and xfcedashboard

ahmeteid7 avatar Mar 22 '24 17:03 ahmeteid7

can cortile has feature that show all open windows(active and not active) as switcher app.

I do not fully understand the question, most switchers can be configured to also show inactive (minimized) windows.

...i want to have(tiling show) which show the minimize windows too as switcher mode like skippy-xd and xfcedashboard

Does anything speak against using the build in window switcher, or do you mean in cases where no window switcher is integrated in the system?

leukipp avatar Apr 05 '24 15:04 leukipp

there is no conflict bw cortile and the switchers apps, it's good. i mean i want not use them during using cortile, so i disabled them when cortile running. and i want to use cortile to show all opened apps: so i used that command to show all opened windows during cortile: wmctrl -l | awk '{print $1}' | xargs -I {} wmctrl -ia {} it's good, but cortile doesn't show all opend windows,because i think the default of it is 3 slaves and one master, so i can change that default to show all opened windows? so the script that show all opened windows will be like that:

slaves and masters= the number of opened windows;
wmctrl -l | awk '{print $1}' | xargs -I {} wmctrl -ia {}

ahmeteid7 avatar Apr 05 '24 17:04 ahmeteid7

it's good, but cortile doesn't show all opend windows,because i think the default of it is 3 slaves and one master, so i can change that default to show all opened windows?

Since v.2.4.0 the last number of maximum windows is preserved, so you could theoretically set (e.g.),

# Maximum number of allowed master windows (0 - 5).
window_masters_max = 5

# Maximum number of allowed slave windows (1 - 5).
window_slaves_max = 5

then use socket communication to increase masters/slaves before calling wmctrl -l | awk '{print $1}' | xargs -I {} wmctrl -ia {}. Nevertheless, there is a limit to the number of windows displayed, and as the number get larger the arrangement will become quite lumpy.

In general, minimized windows are not known (tracked) by cortile at all. All other open windows are tracked, but may be invisible, because they are stacked behind other slaves. Raising them to front can be done by using:

  • build in taskbars/panels that show opened windows
  • build in or external window switcher applications
  • cortile next/previous window shortcuts:
Keys Description
Ctrl+Shift+KP_2 Focus next window
Ctrl+Shift+KP_8 Focus previous window

leukipp avatar Apr 05 '24 17:04 leukipp

# Maximum number of allowed master windows (0 - 5).
window_masters_max = 5

# Maximum number of allowed slave windows (1 - 5).
window_slaves_max = 5

can set that with script?

ahmeteid7 avatar Apr 05 '24 19:04 ahmeteid7

Those values are the maximum values (upper bound)

# Maximum number of allowed master windows (0 - 5).
window_masters_max = 5

# Maximum number of allowed slave windows (1 - 5).
window_slaves_max = 5

in case you press

Keys Description
Ctrl+Shift+KP_Add Increase number of master windows
Ctrl+Shift+Plus Increase number of maximum slave windows

several times.

You can set that to any value you want (in this case maximal 10 windows will be visible, no matter what). The configuration is applied on app startup and you can`t change it afterwards.

When cortile is running you can still decrement/increment the current max window size via keyboard shortcuts/hot corner/tray icon/etc. When using socket communication this would be,

echo '{"Action":"master_increase"}' | nc -U /tmp/cortile.sock.in
echo '{"Action":"slave_increase"}' | nc -U /tmp/cortile.sock.in

but I'm still not sure if this is what you need.

leukipp avatar Apr 05 '24 19:04 leukipp

The socket communication will not work any more, please review cortile-addons and #65.

leukipp avatar Aug 16 '24 19:08 leukipp