Author Topic: manjaro-i3 16.06-dev (unstable branch)  (Read 7190 times)

0 Members and 1 Guest are viewing this topic.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #15 on: 17. March 2016, 16:14:00 »
Yeah, i3 has way better multimonitor support, because the core project actually focuses on it. Bspwm can emulate it, but emulation scripts are written by me, and I don't have multiple monitors to test it on. And have been unlucky trying to get people to test them.

Writing that automatic tiling script should be easy. You begin with
Code: [Select]
#/usr/bin/bashOr if you want to make it lighter (requires package dash to be installed)
Code: [Select]
#/usr/bin/dash
Then you need something to trigger an action when a new window is created. I'm not sure about the command (I don't use i3, you can check from i3 documentation), but I think this one does it:

Code: [Select]
i3-ipc SUBSCRIBE I3_IPC_EVENT_WINDOW  | while read line; do
   <some stuff>
done

That <some stuff> is counting windows on the desktop and running splitting command if that number is greater than 1.

That would be something like this:
Code: [Select]
  window_count=$(<i3 command to list windows of the desktop> | wc -l)
  [ "$window_count" -gt 1 ] && <i3 command to split container horizontally>

So all in all you would have

Code: [Select]
#/usr/bin/dash
i3-ipc SUBSCRIBE I3_IPC_EVENT_WINDOW  | while read line; do
   window_count=$(<i3 command to list windows of the desktop> | wc -l)
  [ "$window_count" -gt 1 ] && <i3 command to split container horizontally>
done

Just find the right i3 commands to replace that stuff in <> and there is your script. You can probably fond them here: http://build.i3wm.org/docs/i3-msg.html or here: https://i3wm.org/docs/ipc.html

Offline torvic9

  • Sr. Mitglied
  • ****
  • Posts: 253
  • Hello world!
  • Branch: stable
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #16 on: 17. March 2016, 18:04:09 »
Okay, that doesn't look too difficult. I'll have a look as soon as I find some time. Gonna post the script if I get it to work.
Here is an excerpt of the python script, it splits the windows according to their height and width. This should also be possible with your suggestion:
Code: [Select]
current_win = i3.filter(nodes=[], focused=True)
    for win in current_win:
        parent = find_parent(win['id'])

        if parent and "rect" in parent and parent['layout'] != 'tabbed':
            height = parent['rect']['height']
            width = parent['rect']['width']

            if height > width:
                new_layout = 'vertical'
            else:
                new_layout = 'horizontal'

            i3.split(new_layout)
i3: i7-5820K | 32 GB | GeForce GTX 960, nvidia | linux44-custom
KDE: i7-920 | 12 GB | GeForce GTS 450, nouveau | linux44
Gnome: Thinkpad X200s | linux41

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #17 on: 18. March 2016, 05:05:02 »
Yeah, should be possible. I would probably do it with bash instead of python. Here is something similar done for bspwm with bash and wmutils:
https://github.com/Chrysostomus/bspwm-scripts/blob/master/bin/auto-presel

But since i3 can output geometry of focused window, wmutils is probably not necessary.

I prefer bash because of lighter depends and because I don't know python. But I know there is a lot stuff done for i3 in python.
« Last Edit: 18. March 2016, 05:09:32 by Chrysostomus »

Offline mrneilypops

  • Vollwertiges Mitglied
  • ***
  • Posts: 110
  • Manjaro Linux Tester
    • dwmX
  • Branch: unstable
  • Desktop: i3
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #18 on: 26. March 2016, 16:24:13 »
Test driving the dev release...very nice work!
https://scrot.moe
mrneilypops free scrot and wall host

Offline c00ter

  • Held Mitglied
  • *****
  • Posts: 1534
  • Towelie's cupcake
  • Branch: ☮Olive☮
  • Desktop: Depends©
  • GPU Card: Intel HD4400M CPU: Core i7-4510U
  • GPU driver: Intel/Free
  • Kernel: 4.4-lts & 4.5
  • Skill: Novice
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #19 on: 26. March 2016, 16:48:33 »
Why is it, when I was younger all my friends got into rafting--so I did. Then they got into motorcycles, and I bought my first Harley. Same for hunting, sky diving, etc. Now my friends use computers and are largely online. And apparently members of the "DE/WM of The Month Club." This forces me to feed into their addiction.

Thanks, Bernhard. Thanks bunches. You crafty little devil, you.  >:D

Regards
“What, me worry?” ― Alfred E. Newman

Manjaro Wiki: https://wiki.manjaro.org/
Arch Wiki: https://wiki.archlinux.org/
Pacman Rosetta: https://wiki.archlinux.org/index.php/Pacman/Rosetta

Offline mrneilypops

  • Vollwertiges Mitglied
  • ***
  • Posts: 110
  • Manjaro Linux Tester
    • dwmX
  • Branch: unstable
  • Desktop: i3
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #20 on: 30. March 2016, 22:38:08 »
Hi,
I am enjoying my fresh manjaro-i3-dev install.

Just a couple of points;
-> My existing Arch install was not detected by GRUB on /dev/sdb
I tried both CLI and THUS installs...no big deal at this time as this is a dev box...I simply changed to one SSD drive for the moment.

EDIT: After install reconnected my Arch SSD and 'sudo update-grub' located and updated GRUB.

-> It would be cool to have the 'default' i3wm MOD key option (MOD1/MOD4) after install.
Again, no big deal, I simply edited the i3 config file and restarted i3...

Keep up the great work  8)

Have you considered glances as a cool system monitor in manjaro-i3?
https://nicolargo.github.io/glances/

« Last Edit: 31. March 2016, 16:20:11 by mrneilypops »
https://scrot.moe
mrneilypops free scrot and wall host

Offline lightbeam

  • Sr. Mitglied
  • ****
  • Posts: 286
  • Branch: Stable as in: "Whoa, Nelly!"
  • Desktop: Wide Openbox
  • GPU Card: AMD Radeon Xpress 200 Series - Methuselah Edition
  • GPU driver: Free as in Lunch
  • Kernel: Linux44, i686
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #21 on: 31. March 2016, 12:51:15 »
I'm happy to present a first development-build of manjaro-i3 16.06 8)

Very nice, Oberon!  Let me know when the gold master ships.   ;) ;D
---------------------------------------------------
I make you look good. 8)

Offline paolo

  • Neuling
  • *
  • Posts: 28
  • Branch: stable
  • Desktop: i3
  • GPU Card: ATI Mobility Radeon 7500 32MB
  • GPU driver: Mesa
  • Skill: Novice
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #22 on: 04. April 2016, 07:47:53 »
Hello to you all

@Oberon: thanks for your work!
Yesterday I install this release on 2 of my laptops and the first unstable update went smoothly  :D
Can I ask how to install the new Solarized graphics on my "old" Manjaro i3 installs?
I don't like it, I show you my mobile phone  ;) :D ;D

Thanks for all and sorry for my horrible english... before to go to work...
Dell Latitude C640 – CPU P4 2Ghz – RAM 2 GB
HP Compaq nx6310 - CPU M410 1,46Ghz - RAM 2 GB
Asus EeePC 1001PX - CPU Atom N450 1,66Ghz - RAM 2 GB
HP Pavillion dv2000 - CPU T7300 2Ghz - RAM 3 GB
all for Manjaro i3 by oberon

Offline Hammer2900

  • Neuling
  • *
  • Posts: 2
  • I'm new. Be nice!
  • Skill: Novice
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #23 on: 04. April 2016, 10:59:02 »
@Oberon: thanks!

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #24 on: 04. April 2016, 11:28:19 »
@paolo, very funny your mobile!! ;D ;D
To install all the 'solarization' on an existing install the easiest way of course would be to create a new user after you install the latest manjaro-i3-settings ;) Otherwise it will need a bit of tweaking.
You'll need gtk-theme-numix-solarized and artwork-i3 of course an then adjust dmenurc, i3status.conf and .Xresources.
The easiest way will be to remove your existing .dmenurc and ~/.i3status.conf (if present), just make sure you backup any adjustments you have made there!
The new .Xresources you can find here: https://raw.githubusercontent.com/manjaro/desktop-settings/master/community/i3/skel/.Xresources
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #25 on: 04. April 2016, 11:29:46 »
Thank you @mrneilypops, for your feedback!
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline paolo

  • Neuling
  • *
  • Posts: 28
  • Branch: stable
  • Desktop: i3
  • GPU Card: ATI Mobility Radeon 7500 32MB
  • GPU driver: Mesa
  • Skill: Novice
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #26 on: 04. April 2016, 22:42:36 »
@Oberon:

Thanks for your reply... I'm scared to modify some vital parts of my i3boxes   :-[ ...
here all works very well thanks to you and the Manjaro team  ;)
Dell Latitude C640 – CPU P4 2Ghz – RAM 2 GB
HP Compaq nx6310 - CPU M410 1,46Ghz - RAM 2 GB
Asus EeePC 1001PX - CPU Atom N450 1,66Ghz - RAM 2 GB
HP Pavillion dv2000 - CPU T7300 2Ghz - RAM 3 GB
all for Manjaro i3 by oberon

Offline mrneilypops

  • Vollwertiges Mitglied
  • ***
  • Posts: 110
  • Manjaro Linux Tester
    • dwmX
  • Branch: unstable
  • Desktop: i3
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #27 on: 04. April 2016, 23:02:37 »
@Oberon
The dev release has been running stable since install  8)
Very nice work.

I have changed the i3bar status to conky to include mpd...my fav music player.
Would it be possible to mod i3status-manjaro to include an mpd option?



... options I found on the interweb;
https://aur.archlinux.org/packages/i3status-mpd-git/
https://github.com/enkore/i3pystatus/blob/master/i3pystatus/mpd.py

keep up the great work!

« Last Edit: 04. April 2016, 23:07:05 by mrneilypops »
https://scrot.moe
mrneilypops free scrot and wall host

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #28 on: 04. April 2016, 23:35:29 »
Beautiful tweaking, mrneilypops!
I will look at it, thank you! :)
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline lightbeam

  • Sr. Mitglied
  • ****
  • Posts: 286
  • Branch: Stable as in: "Whoa, Nelly!"
  • Desktop: Wide Openbox
  • GPU Card: AMD Radeon Xpress 200 Series - Methuselah Edition
  • GPU driver: Free as in Lunch
  • Kernel: Linux44, i686
  • Skill: Intermediate
Re: manjaro-i3 16.06-dev (unstable branch)
« Reply #29 on: 05. April 2016, 20:05:21 »
Hello to you all

I show you my mobile phone  ;) :D ;D

Excellent!   ;D

---------------------------------------------------
I make you look good. 8)