Announcement

Collapse
No announcement yet.

Keyboard shortcut to resize active window to specific dimensions?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Keyboard shortcut to resize active window to specific dimensions?

    I have set Firefox to always open 32px from the top of my screen with a height of 736px and to have full screen width (1366px).

    How can I set up a keyboard shortcut to make any other application's window temporarily have the same dimensions? What would be the action to provide in System Settings > Custom Shortcuts? Or do I need to use a script and point to that?

    Code:
    #!/bin/sh
    
    wmctrl -r :ACTIVE: -b remove,maximized_vert
    wmctrl -r :ACTIVE: -b remove,maximized_horz
    #g,x,y,w,h: g is most commonly 0
    wmctrl -r :ACTIVE: -e 1,0,32,1366,736
    Attached Files
    Last edited by chimak111; Jun 06, 2018, 06:01 AM.
    Kubuntu 20.04

    #2
    Yeaaahhhh...

    all that "cli"stuff is great but it is welll...

    back when "cli stuff" was "universal..."...

    Kubuntu uses "KDE plasma"...

    YEaaahhhhhh... " a lot" of KDE plasma is congruent with ..."generic cli stuff'...but...

    KDE is about...ummmm KDE...

    and Kubuntu is ...KDE...

    so...yeah... CLI stuff is ELEGANT...

    The old woodsmoker WISHES that "he could do cli stuff"...and it can be done...

    but the EASY WAY...

    is a couple of clicks...

    so...to that end...for the old stupid woodsmoker...

    go to the top left little symbol and adjust the particular application window...

    BUT...given that...it works BEST when a particular application is associated with a particular "activity"...

    In other words...

    a) create an activity

    b) associate the application with the activity

    c) click the little symbol at the top left of the application and DELIMIT the size of the application...

    In other words...the "default" is to open in either:

    a) remember settings on close
    b) "set a size" in the activity / application / little symbol at top left as in "Calligra symbol"... more actions / special application settings...

    the user will then be presented with a

    LOT OF VARIABLES IN A BIG WINDOW...

    it WILL take some fiddling depending upon your particular install

    if you have any questions please come back.

    woodpostedaboutthisinKparadigmshiftforKDEmediacent ersmoke
    Last edited by woodsmoke; Jun 13, 2018, 01:17 AM.
    sigpic
    Love Thy Neighbor Baby!

    Comment

    Working...
    X