Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Open windows with absolute position and size in awesome
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
doedel
Guru
Guru


Joined: 05 Feb 2006
Posts: 579
Location: Denmark

PostPosted: Sat May 09, 2015 9:24 am    Post subject: Open windows with absolute position and size in awesome Reply with quote

Hi,

I'm using awesome for a while and i'm quite happy with it.

I would like to write a script to open some console windows on a dedicated screen (maybe 9) with fixed sizes and positions. In these console windows i want to automatically start things like top, tail -f /var/log/messages, lm-sensors, ....

Can someone of maybe help me or give me hints where to look for?

Thanks in advance,
Nils
_________________
1 ha == 1 Hekto-Ar == 1 Hektar
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sat May 09, 2015 9:46 am    Post subject: Reply with quote

I think you can do this in two steps:

1. Start a terminal window with the command, and with a dedicated window name and title:

Example: urxvt -tn tail -T tail -geometry 80x40+400-200 -hold -e 'tail -f /var/log/messages'

2. In awesome, figure out how to put a window with name "tail" and title "tail" on desktop 9 only.


The position and size of the window is determined by the "-geometry" parameter. So, the only job of awesome is to put the window in Desktop 9. In above example, the window has size 80 cols, 40 rows, and the left bottom corner of the window has a position 400 pixels from left edge and 200 from bottom edge. I may be wrong about this last bit :P

EDIT: I think urxvt may not honor the position parameters. In that case, look into xterm. It should support the position.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
doedel
Guru
Guru


Joined: 05 Feb 2006
Posts: 579
Location: Denmark

PostPosted: Sat May 09, 2015 11:07 am    Post subject: Reply with quote

The problem is, awesome is a tiling window-manager which handles window sizes and positioning by predifned schemes. One scheme is floating. This should support manual arrangement of windows.

I tried with position arguments, but this didn't work in floating mode.
_________________
1 ha == 1 Hekto-Ar == 1 Hektar
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu May 14, 2015 2:16 pm    Post subject: Reply with quote

Which terminal did you use? It could also be that awesome prevents the terminal from being set up in specific positions.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum