Re: [i3] Problems setting multi monitor
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] append layout works from commandline, (i3: to exclusive) but not from .i3/config
Please don’t break threading in your replies, that makes it hard for people to follow the discussion. On Tue, Aug 11, 2015 at 7:17 PM, wrote: > Hello Michael, > > >> > >> > What am I doing wrong? >> >> append_layout is a command, not a configuration directive. Just like >> the workspace command you are using a line above, you’ll need to use >> i3-msg to send it. > > Sorry, my fault: the statement above is in one line (the tickmarks might be a > hint that's easily overlooked... > > Hope, that's in one line now: > > exec --no-startup-id i3-msg 'workspace $wsp3; append_layout > /home/markus/.i3/emacs.json' See http://i3wm.org/docs/debugging.html for how to look at i3’s log. It should give you some more details about what’s going on. > > -- > Markus Grunwald > https://www.the-grue.de > > Fragen zur Mail? https://www.the-grue.de/mail_und_co > https://www.the-grue.de/~markus/markus_grunwald.gpg -- Best regards, Michael
Re: [i3] append layout works from commandline, (i3: to exclusive) but not from .i3/config
Hello Michael, > > > > What am I doing wrong? > > append_layout is a command, not a configuration directive. Just like > the workspace command you are using a line above, you’ll need to use > i3-msg to send it. Sorry, my fault: the statement above is in one line (the tickmarks might be a hint that's easily overlooked... Hope, that's in one line now: exec --no-startup-id i3-msg 'workspace $wsp3; append_layout /home/markus/.i3/emacs.json' -- Markus Grunwald https://www.the-grue.de Fragen zur Mail? https://www.the-grue.de/mail_und_co https://www.the-grue.de/~markus/markus_grunwald.gpg
Re: [i3] append layout works from commandline, but not from .i3/config
On Tue, Aug 11, 2015 at 6:37 PM, wrote: > Hello, > > I have a layout stored in emacs.json (attached). When I run this command from > the commandline, everything works fine: > > markus@haktar % i3-msg 'append_layout /home/markus/.i3/emacs.json' > > But when I run this command from .i3/config, one placeholder is missing: the > one in the horizontal container next to emacs: > > exec --no-startup-id i3-msg 'workspace $wsp3; > append_layout /home/markus/.i3/emacs.json' > > What am I doing wrong? append_layout is a command, not a configuration directive. Just like the workspace command you are using a line above, you’ll need to use i3-msg to send it. > > Thanks for your help, > -- > Markus Grunwald -- Best regards, Michael
[i3] append layout works from commandline, but not from .i3/config
Hello, I have a layout stored in emacs.json (attached). When I run this command from the commandline, everything works fine: markus@haktar % i3-msg 'append_layout /home/markus/.i3/emacs.json' But when I run this command from .i3/config, one placeholder is missing: the one in the horizontal container next to emacs: exec --no-startup-id i3-msg 'workspace $wsp3; append_layout /home/markus/.i3/emacs.json' What am I doing wrong? Thanks for your help, -- Markus Grunwald emacs.json Description: application/json
Re: [i3] Problems setting multi monitor
On 11/08/2015 13:54, Florian Lindner wrote: > 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. Hi 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 Have a nice day > > 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 >> 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
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 > 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 > >