Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-12-20 16:45:35

tsoj
Member
Registered: 2019-12-20
Posts: 4

Settings for alt-tab window cycle

Hello,

I was wondering if I can adjust the size of the area where the window thumbnails are shown when I press alt-tab for a longer time.
Preferably I would set it to full screen because I like to click the window I want to switch to with my mouse (instead of pushing tab multiple times (only to overshoot)) and with my small notebook screen it is easier if the thumbnails would be a bit larger.

Last edited by tsoj (2019-12-20 16:46:20)

Offline

#2 2019-12-20 16:59:41

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 6,158

Re: Settings for alt-tab window cycle

Hello and welcome.

Which version of xfwm4 are you running? If it's 4.14, then the following snippet in ~/.config/gtk-3.0/gtk.css can be used to adjust the icon and preview window sizes of the overlay:

#xfwm-tabwin {
   -XfwmTabwinWidget-icon-size: 64px;
   -XfwmTabwinWidget-preview-size: 64px; }

The minimum/maximum acceptable sizes for icon-size are 24/128 and for preview-size are 48/512.

Offline

#3 2019-12-20 21:26:25

tsoj
Member
Registered: 2019-12-20
Posts: 4

Re: Settings for alt-tab window cycle

Thanks for your answer!
I tried different numbers but say seem to not do anything I want.
This is what it currently looks like:
hXmLIN0.jpg
And this is what I wish it would look like (done with gimp):
WH9sN96.jpg

Also, the ~/.config/gtk-3.0/gtk.css didn't exist, is this correct that I had to first create this file?
In case this is not possible, what code would be a good starting point to read, understand and solve this? I've never done graphics UI programming so I would be a bit lost where to start.

Offline

#4 2019-12-20 23:40:58

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 6,158

Re: Settings for alt-tab window cycle

tsoj wrote:

Thanks for your answer!
I tried different numbers but say seem to not do anything I want.

You need to restart xfwm4 after every change you make:

xfwm4 --replace

...this will force it to re-read the configuration files.

Also, the ~/.config/gtk-3.0/gtk.css didn't exist, is this correct that I had to first create this file?

Yes, create the file if it doesn't exist.

Can you:

  1. Post back the content of your ~/.config/gtk-3.0/gtk.css file.
    --

  2. Post back the results of:

    xfwm4 -V

    (the above will only work with xfwm4 version 4.13 or greater).

Offline

#5 2019-12-21 00:06:00

tsoj
Member
Registered: 2019-12-20
Posts: 4

Re: Settings for alt-tab window cycle

ToZ wrote:
tsoj wrote:

Thanks for your answer!
I tried different numbers but say seem to not do anything I want.

You need to restart xfwm4 after every change you make:

xfwm4 --replace

...this will force it to re-read the configuration files.

Also, the ~/.config/gtk-3.0/gtk.css didn't exist, is this correct that I had to first create this file?

Yes, create the file if it doesn't exist.

Can you:

  1. Post back the content of your ~/.config/gtk-3.0/gtk.css file.
    --

  2. Post back the results of:

    xfwm4 -V

    (the above will only work with xfwm4 version 4.13 or greater).

xfwm4 -V

outputs

This is xfwm4 version 4.14.0git.5ea89c (revision 5ea89c) for Xfce 4.14
	Released under the terms of the GNU General Public License.
	Compiled against GTK+-3.24.12, using GTK+-3.24.13.

	Build configuration and supported features:
	- Startup notification support:                 Yes
	- XSync support:                                Yes
	- Render support:                               Yes
	- Xrandr support:                               Yes
	- Xpresent support:                             Yes
	- Embedded compositor:                          Yes
	- Epoxy support:                                Yes
	- KDE systray proxy (deprecated):               No

With two windows the biggest it got was with 483px after that it got small again:

#xfwm-tabwin {
   -XfwmTabwinWidget-icon-size: 40px;
   -XfwmTabwinWidget-preview-size: 483px;
}

With five windows open this is the biggest I got, 394px and bigger was again as big as something like 128px:

#xfwm-tabwin {
   -XfwmTabwinWidget-icon-size: 40px;
   -XfwmTabwinWidget-preview-size: 393px;
}

Offline

#6 2019-12-21 02:04:33

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 6,158

Re: Settings for alt-tab window cycle

What is your screen resolution?

Offline

#7 2019-12-21 15:40:25

tsoj
Member
Registered: 2019-12-20
Posts: 4

Re: Settings for alt-tab window cycle

1920 x 1080, so today (after a restart) with two windows 512px is big again, but with three windows it is still way smaller (like with 128px).

Offline

#8 2019-12-21 15:49:24

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 6,158

Re: Settings for alt-tab window cycle

Perhaps thats just a limitation with the size - it can only go so large. Give xfdashboard a try. It will give you a full-screen preview (it's kind of like the gnome activities window) - maybe more along the lines of what you are looking for.

Offline

Board footer

Powered by FluxBB