Announcement

Collapse
No announcement yet.

Window sizing and placing using the keyboard possible?

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

    Window sizing and placing using the keyboard possible?

    I've been using Openbox and, by editing ~/.config/openbox/rc.xml, I can define keyboard shortcuts to place the window currently in focus in defined areas of the screen. For example:
    Code:
        <!-- Keybindings for window tiling -->
    <keybind key="W-Left">        # HalfLeftScreen
      <action name="Unmaximize"/>
      <action name="MoveResizeTo"><x>0</x><y>0</y><height>100%</height><width>50%</width></action>
    </keybind>
    <keybind key="W-Right">        # HalfRightScreen
      <action name="Unmaximize"/>
      <action name="MoveResizeTo"><x>-0</x><y>0</y><height>100%</height><width>50%</width></action>
    </keybind>
    <keybind key="W-Up">        # HalfUpperScreen
      <action name="Unmaximize"/>
      <action name="MoveResizeTo"><x>--4</x><y>0</y><width>100%</width><height>50%</height></action>
    </keybind>
    <keybind key="W-Down">        # HalfLowerScreen
      <action name="Unmaximize"/>
      <action name="MoveResizeTo"><x>--4</x><y>-0</y><width>100%</width><height>50%</height></action>
    </keybind>
    where "W" is the Meta or Super key and "left", "right", "up" and "down" are the arrow keys.

    My question is this: how can I do something equivalent in Kubuntu 16.04 (Plasma 5.5) with kwin?
    Last edited by chimak111; Jun 19, 2017, 07:22 PM. Reason: added version: 16.04, Plasma 5.5
    Kubuntu 20.04

    #2
    "Kwin"

    Are you not using a newer version of Kubuntu that utilizes Plasma?
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      system settings>shortcuts>global shortcuts>kwin

      VINNY
      i7 4core HT 8MB L3 2.9GHz
      16GB RAM
      Nvidia GTX 860M 4GB RAM 1152 cuda cores

      Comment


        #4
        Originally posted by Snowhog View Post
        Are you not using a newer version of Kubuntu that utilizes Plasma?
        Plasma (the desktop shell) still uses kwin (the window manager).

        Comment


          #5
          Originally posted by chimak111 View Post
          I can define keyboard shortcuts to place the window currently in focus in defined areas of the screen.
          Or you can just drag the window to a corner-edge and let it go to get a 1/4 screen corner window position, or center-edge to get a half-screen window.

          Please Read Me

          Comment


            #6
            After reading Latest round of backports PPA updates include Plasma 5.10.2 for Zesty 17.04 I went ahead and ran
            Code:
            sudo add-apt-repository ppa:kubuntu-ppa/backports
            and updated and dist-upgraded.

            I hope that went off successfully. For example:
            Code:
            $ apt policy kwin
            kwin:
             Installed: 4:5.8.7-0ubuntu1~ubuntu16.04~ppa2
             Candidate: 4:5.8.7-0ubuntu1~ubuntu16.04~ppa2
             Version table:
            *** 4:5.8.7-0ubuntu1~ubuntu16.04~ppa2 500
                   500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial/main amd64 Packages
                   100 /var/lib/dpkg/status
                4:5.6.5-0ubuntu1~ubuntu16.04~ppa1 500
                   500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu xenial/main amd64 Packages
                4:5.5.5-0ubuntu1 500
                   500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
            $
            And
            Code:
            system settings>shortcuts>global shortcuts>kwin
            does the needful. Thanks, vinny!
            Kubuntu 20.04

            Comment

            Working...
            X