Author Topic: xfce4-terminal and fluxbox apps  (Read 3425 times)

Snap

  • Posts: 490
    • View Profile
xfce4-terminal and fluxbox apps
« on: July 04, 2015, 09:01:41 AM »
I forget things way faster than learning them. I think I managed to get this working once but I cannot remember how (if I ever did it)

Is there a way to get the xfce4-terminal centered when opened normal but on the top screen when opened as dropdown? The apps file is the one that always drives me crazy. The trickiest par of fluxbox IMHO.

PackRat

  • Posts: 2198
    • View Profile
    • PackRat configs on github
Re: xfce4-terminal and fluxbox apps
« Reply #1 on: July 04, 2015, 09:34:33 PM »
here you go:

Code: [Select]
[app] (name=xfce4-terminal) (class=Xfce4-terminal) (role=xfce4-terminal-dropdown)
  [Position] (TOPCENTER) {0 0}
  [Deco] {0x5e0}
  [Layer] {2}
  [Alpha] {255}
[end]
[app] (name=xfce4-terminal) (class=Xfce4-terminal)
  [Dimensions] {80% 89%}
  [Position] (CENTER) {0 0}
  [Deco] {0x66f}
  [Minimized] {no}
  [Maximized] {no}
  [Fullscreen] {no}
  [Layer] {8}
  [Alpha] {255}
[end]

Change the [DECO] lines to {NORMAL} if you want all your borders, buttons etc ... You will find the [DECO] options in the fluxbox-style man page.

If you want your xfce4-terminals grouped together, then add one line to the stanza:

Code: [Select]
[group]  (workspace=[current])
[app] (name=xfce4-terminal) (class=Xfce4-terminal)
<rest of stuff>
[end]

As far as setting up the apps file, right clicking on the title bar brings up the WindowMenu; the Remember section writes information to the ~/.fluxbox/apps file. Once you get the windows set up like you want, just activate the WindowMenu and have fluxbox remember the set up.

Learn the apps file and window grouping and you will unleash the elegance of fluxbox.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

  •      v-ger
  • Posts: 4185
    • View Profile
    • VSIDO Community
Re: xfce4-terminal and fluxbox apps
« Reply #2 on: July 04, 2015, 10:23:15 PM »
Nice assist PackRat

I am damned glad to have your expertise with us here

Thank you
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 2198
    • View Profile
    • PackRat configs on github
Re: xfce4-terminal and fluxbox apps
« Reply #3 on: July 05, 2015, 12:21:09 AM »
No problemo.

And since we are talking xfce4-terminal here I will add that many apps - including xfce4-terminal, thunar, and (I think) spacefm, will open with a unique role attribute. When using the Remember section of the WindowMenu, that role is captured. So for example, xfce4-terminal entry will look like -

Code: [Select]
[app] (name=xfce4-terminal) (class=Xfce4-terminal) (role=<Some Unique Text>)
since the role is unique, the xfce4-terminals will not group. Just delete the "(role=<Some Unique Text>)" from the line and all will be good. Applies to any app that does it.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

jedi

  • DEFCON 1
  • Posts: 1630
  • Not all those who wander are lost.
    • View Profile
    • NixNut.com
Re: xfce4-terminal and fluxbox apps
« Reply #4 on: July 05, 2015, 06:14:55 AM »
PackRat you are a Linux GOD!!!  We are so lucky to have you here.  Adding that to my apps file has made my VSIDO truly perfect now!  Thank-you for that!   :)
Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

Snap

  • Posts: 490
    • View Profile
Re: xfce4-terminal and fluxbox apps
« Reply #5 on: July 06, 2015, 07:52:26 AM »
Great explanation, Ratman. You've made my day! Big thanks.

Snap

  • Posts: 490
    • View Profile
Re: xfce4-terminal and fluxbox apps
« Reply #6 on: July 06, 2015, 07:54:37 AM »
Quote
Learn the apps file and window grouping and you will unleash the elegance of fluxbox.

For sure.

The problem is that when I stop tweaking it for a while I competely forget how to deal with it and have to start from the bottom up again. Crap memory around here.

jedi

  • DEFCON 1
  • Posts: 1630
  • Not all those who wander are lost.
    • View Profile
    • NixNut.com
Re: xfce4-terminal and fluxbox apps
« Reply #7 on: July 07, 2015, 03:34:25 AM »
Seriously PackRat...
Big thanks.  I'm understanding that apps file better every day now!  Adjusted it so my drop-down terminal shows up in the upper left corner!  Love it!!!  8)

Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

Snap

  • Posts: 490
    • View Profile
Re: xfce4-terminal and fluxbox apps
« Reply #8 on: July 07, 2015, 08:12:00 AM »
Me too. Finally learning the apps file. Still fighting with conky positioning, but for the most part I'm starting to have all the windows the way I want them (unlike jedi, xfce4-terminal pops top center).  ;D

Thanks again, PackRat.