Choose style:

Author Topic: Moving from openbox to xfwm4 (SOLVED)  (Read 2534 times)

0 Members and 1 Guest are viewing this topic.

Offline xanadu

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 6
Moving from openbox to xfwm4 (SOLVED)
« on: July 28, 2014, 07:19:43 pm »
I've finally made the switch to Peppermint 5. In Peppermint 3, I had Openbox set up with some handy shortcut keys that would: tile/snap the active window to the left or right half of the screen (windows+left and windows+right keys, respectively). Is there a way to do this in xfwm4? I don't always want to have to drag the windows with the mouse. I've found the keyboard shortcuts in the control center, but I don't see shortcuts for something similar (unless I missed it).

Openbox also allowed you to have specific applications launch in specific workspaces, which was very useful, as I liked to have the terminal occupy the left half of workspace 2, and my calender occupy the right half of workspace 2 . Is there some way to accomplish something similar in xfwm4?

If no to both questions, I may switch back to Openbox, assuming that's not hard to do in Peppermint 5. I never realized just how often I relied on those customizations until I installed Peppermint 5.
« Last Edit: July 28, 2014, 10:00:12 pm by PCNetSpec, Reason: Marked as (SOLVED) »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26454
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Moving from openbox to xfwm4
« Reply #1 on: July 28, 2014, 08:20:12 pm »
I've preconfigured the keyboard shortcuts
Super+Left
Super+Right
Super+Up
Super+Down

to tile the windows where you want them.

To install run these commands in sequence:
Code: [Select]
cd ~/.config/xfce4/xfconf/xfce-perchannel-xml
then
Code: [Select]
cp -v xfce4-keyboard-shortcuts.xml xfce4-keyboard-shortcuts.xml.bak
then
Code: [Select]
wget https://dl.dropboxusercontent.com/u/11876059/xfce4-keyboard-shortcuts.xml.tar.gz
then
Code: [Select]
tar xvf xfce4-keyboard-shortcuts.xml.tar.gz
Now LOG OFF/ON to activate the new shortcuts.

Then test the keyboard combo's above

Super key is also known as the Windows key.



Alternately, you can install xfce4-settings:
Code: [Select]
apt install xfce4-settings
then run:
Code: [Select]
sudo gedit /usr/share/applications/xfce-settings-manager.desktop
find the line that reads

OnlyShowIn=XFCE;

and change it to

OnlyShowIn=XFCE;LXDE;

SAVE the file.

Now go to
menu > Preferences > Settings Manager > Window Manager > Keyboard (tab)
and configure the:-
Tile window to the top
Tile window to the bottom
Tile window to the left
Tile window to the right

shortcuts in there.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline xanadu

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 6
Re: Moving from openbox to xfwm4
« Reply #2 on: July 28, 2014, 08:58:29 pm »
I did the first method, worked like a charm. Thank you.

As for the other thing, having applications start in specific workspaces, that doesn't seem like a native option in xfce/xfwm4. I know that wmctl is one way I could do it. Devil's Pie is another option: http://www.burtonini.com/blog/computers/devilspie. I'll probably mess around with the latter, as it seems to do just what I want.

Unfortunately, this was so easy to do in Openbox:
Code: [Select]
   <!-- Move qBittorrent to Desktop 2 -->
    <application name="qbittorrent" class="Qbittorrent" type="normal">
      <layer>normal</layer>
      <desktop>2</desktop>
      <maximized>true</maximized>
    </application>

 

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26454
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Moving from openbox to xfwm4
« Reply #3 on: July 28, 2014, 09:19:51 pm »
I was just testing devilspie, and the GUI gdevilspie, which makes setting up the rules very easy.
(it can do exactly what you wish .. detect an application starting and send it to a particular workspace)

BUT

The version of gdevilspie in the repo's is broken .. however there's a fixed .deb in response #10 here:
https://bugs.launchpad.net/ubuntu/+source/gdevilspie/+bug/1161594
direct download link here:
https://bugs.launchpad.net/ubuntu/+source/gdevilspie/+bug/1161594/+attachment/3861859/+files/gdevilspie_0.5-3_all.deb

So install devilspie:
Code: [Select]
sudo apt install devilspie
then download the .deb from the above link and double-click it to install.

Then go to
menu > Accessories > gDevilspie
click "Run" to start t deamon
tick the box to autostart at login
create your rule

One thing I noticed was rules don't get acted upon until you create them, then log off/on again.
« Last Edit: July 28, 2014, 09:22:46 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline xanadu

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 6
Re: Moving from openbox to xfwm4 (SOLVED)
« Reply #4 on: July 28, 2014, 09:35:58 pm »
Thanks, I was just discovering that gdevilspie in the repos is broken. This is helpful.

For anyone else who stumbles upon this, I found this helpful: http://www.webupd8.org/2011/02/how-to-start-applications-minimized.html

I'll consider this solved.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26454
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Moving from openbox to xfwm4
« Reply #5 on: July 28, 2014, 09:52:56 pm »
You have to mark the FIRST posting in the topic as (SOLVED) .. not the last posting.

Otherwise it doesn't get tagged as solved in the forum Index.

TIA :)

[EDIT]

I've done this one for you.
« Last Edit: July 28, 2014, 09:59:36 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec