modificare la geometria di una finestra fullscreen

Configurazione e uso di desktop e window manager alternativi, quali Enlightenment (E17), FVWM, Fluxbox, OpenBox e altri.
Scrivi risposta
DPD-
Scoppiettante Seguace
Scoppiettante Seguace
Messaggi: 453
Iscrizione: mercoledì 2 marzo 2011, 16:31
Desktop: KDE Plasma 5
Distribuzione: Kubuntu 18.04 (64 bit)
Sesso: Maschile
Località: Friuli
Contatti:

modificare la geometria di una finestra fullscreen

Messaggio da DPD- »

Questo script per Kwin imposta la geometria di un video fullscreen in modo da creare un video wall:

Codice: Seleziona tutto

/********************************************************************
 KWin - the KDE window manager
 This file is part of the KDE project.

Copyright (C) 2012 Martin Gräßlin <mgraesslin@kde.org>
Edited by DPD- in 2015

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/
function isVideoPlayer(client) {
    if (client.resourceName == "vlc") {
        return true;
    }
    if (client.resourceName == "smplayer") {
        return true;
    }
    if (client.resourceName == "dragon") {
        return true;
    }
    if (client.resourceName == "xv") { //mplayer
        return true;
    }
    if (client.resourceName == "ffplay") {
        return true;
    }
    return false;
}

var videowall = function(client, set) {
    if (isVideoPlayer(client) && set) {
        client.geometry = workspace.clientArea(KWin.FullArea, 0, 1);
    }
};

workspace.clientFullScreenSet.connect(videowall);
Io dovrei far lo stesso su un computer con linux mint 17 (de: cinnamon).
Ho provato ad usare il comando

Codice: Seleziona tutto

wmctrl -r vlc -e '0,0,0,$w,$h'
con gli opportuni valori di $w e $h.
Purtroppo però mi sono accorto che wmctrl permette di modificare la geometria di finestre minimizzate, ma non di quelle massimizzate e fullscreen.

Come posso fare?
Dettagli del mio computer: DELL Inspiron 3542 · Kubuntu 18.04 x64 KDE Plasma 5
Intel i5-4210U 1,7GHz × 4 thread · 8 GB DDR3L 1600MHz Ram + 8 GiB swap · Intel HD Graphics 4400
            
Scrivi risposta

Ritorna a “Altri ambienti desktop e window manager”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 19 ospiti