Re: [i3] Problems setting multi monitor

2015-08-12 Thread Ultrabug
On 12/08/2015 01:21, Florian Lindner wrote:
 Hello,
Hi

 Am Dienstag, 11. August 2015, 15:03:17 schrieb Ultrabug:
 On 11/08/2015 13:54, Florian Lindner wrote:

 It may not answer all your questions but I wanted to point out that
 *py3status* [1] provides a *xrandr* *module* to handle your screen
 layouts easily and automatically if you want (with click event support
 to switch easily).

 You can maybe take a look at the source code [2] to get inspiration for
 your own or use it through py3status and contribute to it if you want ;)

 DISCLAIMER : I created py3status, so ofc I'm biased but I sincerly think
 that this module could help you one way or another

 [1] py3status : https://github.com/ultrabug/py3status
 [2] xrandr module :
 https://github.com/ultrabug/py3status/blob/master/py3status/modules/xrandr.py
 Thanks for pointing me to py3status. Especially the xrandr plugin looks very 
 interesting.

 In fact I installed it today and actually started to play around with the 
 battery_level plugin.

 However it seems to be quite simplicistic like no notificiation on low 
 battery and has some issues with multiple batteries. 
Some other modules (pomodoro) indeed provide notifications, it's just
that it has not been implemented/contributed in the battery_level one.

I'm always open to suggestions and contributions, feel free to come on
Freenode IRC #py3status channel if you want to talk about it more
lively or email me ;)

 I also came along i3pystatus, which seems to be strive for the same like 
 py3status, right? They have a more elaborate battery plugin, but no display 
 configuration plugin at all. Are py3status and i3pystatus compatible anyhow?
Even tho they use python as their primary language, these are two
separate projects with different approaches to enhance your i3bar. I
think the main one is still that py3status uses natively your
i3status.conf and enhance it [2] so you don't need any other config file
[1].

They both provide their own set of modules but those are not directly
compatible between them since their implementation is different. So I
guess it's just a matter of taste and contribution / discussion :)
 Best Regards,
 Florian
[1]
https://github.com/ultrabug/py3status/wiki/Load-and-order-py3status-modules-directly-from-your-current-i3status-config
[2]
https://github.com/ultrabug/py3status/wiki/Handle-click-events-directly-from-your-i3status-config

Have a nice day,

Kindly



Re: [i3] Problems setting multi monitor

2015-08-11 Thread Florian Lindner
Am Montag, 10. August 2015, 18:30:13 schrieb Anton Löfgren:
 AFAIK, the shebang must be an absolute path. That is, you'll probably have 
 more luck replacing #!env with #!/usr/bin/env.

It seemed to be a problem with PATH. Starting /usr/bin/python explicitly makes 
it work.
 
 How do you call it standalone? I'm assuming by invoking python manually. 

No, without python.


Some more questions:

*) The monitor in the middle is set primary and assigned workspace 2. Howeve 
the i3-nagbar always appears at workspace 1 (left of 2). How can I make the 
nagbar appears on the primary output?

*) For setting my backgrounds I use feh:

exec --no-startup-id feh --randomize --bg-max Bilder/Backgrounds 

This works fine if executed in a shell, after i3 startup. Each display is 
assigned a different background image, if the aspect ratio does not fit there 
are black bars. But if I put in my i3 config it behaves differently. It gives 
each screen the same background image. Instead of black bars there is another 
image under it when aspect ration does not fit. This question may not fit here, 
but maybe someone has an idea...

*) 
bar {
status_command i3status
# tray_output primary
}

puts the tray output on workspace 3, left of my primary. Activating the 
tray_output primary and restart (mod+shift+r) and it works like it should, tray 
on the primary. But a real restart (exit and log in again) screws it. There are 
no tray icons at all. The owncloud client (which is started using dex -ae i3) 
opens in a window, instead minmized. However, all programs that should appear 
in the tray are running (klipper, kmix)

Sorry for putting so much questions at you ;-)

Thanks!
Florian

 
 /Anton 
 
 On August 10, 2015 3:48:36 PM CEST, Florian Lindner mailingli...@xgm.de 
 wrote:
 Hello,
 
 I try to launch an xrandr script to set the multi monitor
 configuration. The script works when called standalone after i3
 startup, but not at startup
 
 #!env python
 
 import functools, subprocess, sys
 call = functools.partial(subprocess.check_call, shell=True)
 
 call(sleep 3)
 
 if sys.argv[1] == uni:
 call(xrandr --output DP2-2 --auto --primary)
 call(xrandr --output eDP1  --auto --left-of DP2-2)
 call(xrandr --output HDMI1 --auto --right-of DP2-2)
 
 
 The sleep 3 I put just to test, shouldn't be needed.
 
 It is launched as my first exec in my i3 config:
 
 exec --no-startup-id /home/florian/software/bin/screen_config uni
 
 but seems to have no effect at all, configuration is not changed.
 
 What can be the problem there?
 
 Thanks,
 Florian
 



Re: [i3] Problems setting multi monitor

2015-08-11 Thread Florian Lindner
Hello,

Am Dienstag, 11. August 2015, 15:03:17 schrieb Ultrabug:
 On 11/08/2015 13:54, Florian Lindner wrote:

 It may not answer all your questions but I wanted to point out that
 *py3status* [1] provides a *xrandr* *module* to handle your screen
 layouts easily and automatically if you want (with click event support
 to switch easily).
 
 You can maybe take a look at the source code [2] to get inspiration for
 your own or use it through py3status and contribute to it if you want ;)
 
 DISCLAIMER : I created py3status, so ofc I'm biased but I sincerly think
 that this module could help you one way or another
 
 [1] py3status : https://github.com/ultrabug/py3status
 [2] xrandr module :
 https://github.com/ultrabug/py3status/blob/master/py3status/modules/xrandr.py

Thanks for pointing me to py3status. Especially the xrandr plugin looks very 
interesting.

In fact I installed it today and actually started to play around with the 
battery_level plugin.

However it seems to be quite simplicistic like no notificiation on low battery 
and has some issues with multiple batteries. 

I also came along i3pystatus, which seems to be strive for the same like 
py3status, right? They have a more elaborate battery plugin, but no display 
configuration plugin at all. Are py3status and i3pystatus compatible anyhow?

Best Regards,
Florian


Re: [i3] Problems setting multi monitor

2015-08-10 Thread Anton Löfgren
AFAIK, the shebang must be an absolute path. That is, you'll probably have more 
luck replacing #!env with #!/usr/bin/env.

How do you call it standalone? I'm assuming by invoking python manually. 

/Anton 

On August 10, 2015 3:48:36 PM CEST, Florian Lindner mailingli...@xgm.de wrote:
Hello,

I try to launch an xrandr script to set the multi monitor
configuration. The script works when called standalone after i3
startup, but not at startup

#!env python

import functools, subprocess, sys
call = functools.partial(subprocess.check_call, shell=True)

call(sleep 3)

if sys.argv[1] == uni:
call(xrandr --output DP2-2 --auto --primary)
call(xrandr --output eDP1  --auto --left-of DP2-2)
call(xrandr --output HDMI1 --auto --right-of DP2-2)


The sleep 3 I put just to test, shouldn't be needed.

It is launched as my first exec in my i3 config:

exec --no-startup-id /home/florian/software/bin/screen_config uni

but seems to have no effect at all, configuration is not changed.

What can be the problem there?

Thanks,
Florian

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

[i3] Problems setting multi monitor

2015-08-10 Thread Florian Lindner
Hello,

I try to launch an xrandr script to set the multi monitor configuration. The 
script works when called standalone after i3 startup, but not at startup

#!env python

import functools, subprocess, sys
call = functools.partial(subprocess.check_call, shell=True)

call(sleep 3)

if sys.argv[1] == uni:
call(xrandr --output DP2-2 --auto --primary)
call(xrandr --output eDP1  --auto --left-of DP2-2)
call(xrandr --output HDMI1 --auto --right-of DP2-2)


The sleep 3 I put just to test, shouldn't be needed.

It is launched as my first exec in my i3 config:

exec --no-startup-id /home/florian/software/bin/screen_config uni

but seems to have no effect at all, configuration is not changed.

What can be the problem there?

Thanks,
Florian