You are not logged in.

#401 2011-06-15 14:52:09

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: The i3 thread

Thanks for the update smartass ! (I wanted to say that since I saw your nick wink tongue )

I will try it out tonight.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#402 2011-06-15 16:55:16

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: The i3 thread

smartass wrote:

Pank, I'm sorry, but I'm getting a little confused
[...]
You say you can display it on the desktop, but you can't get it there. Sorry, I'm lost.

I mustn't have expressed myself clearly. Sorry.

  1. Conky is used to draw an agenda on my desktop. This is working

  2. It would be desirable to have conky draw itself within a semi transparent box on the desktop, as the image is changing regularly.

  3. lua script may be used for this end, but it requires Conky to be drawn within its own window.

  4. i3 grants Conky an actual window if it requests so, which is not desirable. Maybe this can be fixed by specifying a proper window hint of class.

And the tree branch even implements layout saving and other cool features.

I never figured out how to use it or why it would be useful.

I miss assignment.


Arch x64 on Thinkpad X200s/W530

Offline

#403 2011-06-15 17:01:57

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: The i3 thread

oh ! workspace assignment does not work with the tree branch?

I will look up all the difference between the tree and i3 from the repos and see if its worth the switch. Meanwhile if any one of you guys know a link which lists all the differences, please post.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#404 2011-06-15 17:13:28

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: The i3 thread

Inxsible wrote:

oh ! workspace assignment does not work with the tree branch?

Not the last time I checked, at least. Might have changed, though...


Arch x64 on Thinkpad X200s/W530

Offline

#405 2011-06-15 17:25:06

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: The i3 thread

I am currently perusing http://i3wm.org/docs/tree-migrating.html and http://i3wm.org/blog/

But I don't see a section which lists the difference. Naming of workspaces and even assignment (to a certain degree) I can live with, but if it changes other things that I am more comfortable with, then I am not sure.

Just to confirm, because you start the tree branch using i3-tree, you can install it alongside i3-wm correct? Or do they conflict each other.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#406 2011-06-15 17:36:45

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: The i3 thread

Workspace assignments have been fixed in -tree.  See [http://code.stapelberg.de/git/i3/log/?h=tree].

Offline

#407 2011-06-15 17:41:59

smartass
Member
From: Prague, Czech Republic
Registered: 2011-02-25
Posts: 60

Re: The i3 thread

I'm afraid the website about the tree branch http://i3wm.org/tree/ and other web sites like the blog have been updated quite a long time ago, so the only way ATM is to check the git log.
Also the userguide in the git tree of the tree branch gets updated from time to time and contains relevant info (usually wink)
Yes, workspace assignments works well and you can name your workspaces as you wish in the config file.

I'm afraid the packages conflict, the binaries have the same name. But I think it's hackable.
Anyways, the tree-branch will very likely replace the existing i3 version, so better switch now and get used to it than get caught later (a bit like gnome 2 --> 3 some might say, but the tree branch gives you even more control than the previous release and is certainly an improvement)

Last edited by smartass (2011-06-15 17:51:51)


KISS my Arch, Willy Gates!

Offline

#408 2011-06-15 19:18:03

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: The i3 thread

Yeah, assignment is working correctly.

Should workspace names show up in i3bar? My workspaces are still named with integers although I have

## WORKSPACE
workspace 1 mail
workspace 2 www
workspace 3 txt

in my config. But syntax might have changed...


Arch x64 on Thinkpad X200s/W530

Offline

#409 2011-06-15 19:47:01

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: The i3 thread

Ok I gave the tree branch another shot. It's great that the assignments work now. Using conky with i3bar works (kinda), but I want to have conky standalone. I'll stay with the stable version for now, mostly because the tree branch seems very slow here (switching between windows is really slow) and I'm very used to the way the stable version works, it's very close to perfect for me. But it's really interesting to watch the development.

Offline

#410 2011-06-15 19:54:52

smartass
Member
From: Prague, Czech Republic
Registered: 2011-02-25
Posts: 60

Re: The i3 thread

Ok, didn't feel like doing what I should do, so I think I've solved your problem Pank.

Here are the settings I used for it in my .conkyrc (no LUA fancy stuff, just the default one)

own_window yes 
own_window_type override #seems to work a bit like adding to root
own_window_argb_visual yes #which meens you MUST run xcompmgr or something similar for it to work
own_window_argb_value 128 #or whatever suits you best, 255 is fully opaque, 0 transparent
own_window_colour blue #up to you
alignment top_left #up to you

And here's the outcome
pankconky.th.png

Uploaded with ImageShack.us

Hope it works for you ! smile

i3bar displays custom named worskpaces, but the syntax is different. Actually, you have to completely forget about the old syntax big_smile

Last edited by smartass (2011-06-15 20:03:53)


KISS my Arch, Willy Gates!

Offline

#411 2011-06-15 22:09:49

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: The i3 thread

smartass wrote:

Ok, didn't feel like doing what I should do, so I think I've solved your problem Pank.

You certainly did, Sir!

tOTMwMQ


i3bar displays custom named worskpaces, but the syntax is different. Actually, you have to completely forget about the old syntax big_smile

Do you have a link for documentation or does one have to look into the source code?

Thanks,
Rasmus

Edit: Fun fact: My Imagemagick was not able to capture the Conky transparency so I had to install scrot.

Last edited by Pank (2011-06-15 22:11:00)


Arch x64 on Thinkpad X200s/W530

Offline

#412 2011-06-16 00:13:57

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: The i3 thread

Hey Rasmus, nice terminal font.

Me wants. Link please !!


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#413 2011-06-16 05:44:22

smartass
Member
From: Prague, Czech Republic
Registered: 2011-02-25
Posts: 60

Re: The i3 thread

I'm very happy it worked for you, Rasmus smile actually, it was all in the conky man page big_smile man FTW!

When you install the 'i3-tree' package form the AUR, the new default config file gets created int /etc/i3/config. I recommend you rename your old config and put the new one in your ~/.i3/ and then slowly add your custom tweeks from the old config, most should work.

The config is well commented and the userguide in the git tree/docs of the tree branch (you can browse at code.stapelberg.de) mentions most of it too.

EDIT:
Oh, now after checking the old userguide I get it. The old syntax of naming, changing workspaces has been merged into the workspace switching/moving commands, you simply name your workspaces in the move and switch commands.

bindsym Mod4+3 workspace web #if you go to "3"  it creates the workspace web
bindsym Mod4+Shift+3 move workspace web #creates workspace if it hasn't existed
Pank wrote:

Edit: Fun fact: My Imagemagick was not able to capture the Conky transparency so I had to install scrot.

Exactly what I found out yesterday big_smile

Last edited by smartass (2011-06-16 06:05:06)


KISS my Arch, Willy Gates!

Offline

#414 2011-06-16 07:44:46

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: The i3 thread

Inxsible wrote:

Hey Rasmus, nice terminal font.

Me wants. Link please !!

It is (shame on me!) xft monofur.

URxvt*font: xft:monofur:size=11:antialias=true

actually, it was all in the conky man page big_smile man FTW!

That is embarrassing. . . RTFM!

The config is well commented and the userguide in the git tree/docs of the tree branch (you can browse at code.stapelberg.de) mentions most of it too.

It is working now. I haven't stumbled on it in the man or it the default config. Fantastic none the less.


Arch x64 on Thinkpad X200s/W530

Offline

#415 2011-07-15 18:39:25

Atsutane
Package Maintainer (PM)
From: Germany
Registered: 2008-08-18
Posts: 96

Re: The i3 thread

So now there ist the fourth preview release, consider this one as a release candidate because from now on there won't be any big changes until the upcoming release in a couple of weeks.

...
The so called tree branch is the place where the next version of i3 is
developed. This time, we did a major code refactoring bringing many changes.
The idea is to use a tree as datastructure instead of separate lists (like one
for outputs, workspaces and a table for storing your window layout).

Quite a few advantages arise from this new data structure. The most prominent
ones will be a slightly different look and feel, the possibility to store your
layout and restore it later, correct resizing, a much cleaner command parser
and more little improvements.

This release is considered a release candidate for i3 v4.0. We will not make
big changes and plan to release v4.0 in a few weeks.
With this release, we want to gather feedback from you, so please
report any bugs you encounter in our bugtracker at http://bugs.i3wm.org/

What should be working in this release?
---------------------------------------

• Basic window management, navigation, moving
• Fullscreen mode, correct aspect ratio
• Stacked/Tabbed layout, floating mode
• Splitting (for fancy layouts), resizing
• Restarts (preserving the layout), crash handler
• RandR changes, keyboard layout changes
• Dock clients
• Assignments
• Config file compatibility
• i3bar, get it from http://git.merovius.de/

-- Michael Stapelberg, 2011-07-15


Here's the PKGBUILD:

# Maintainer: Thorsten Töpper <atsutane-tu@freethoughts.de>

pkgname=i3-tree-preview
pkgver=pr4
pkgrel=1
pkgdesc="An improved dynamic tiling window manager - tree preview"
arch=('i686' 'x86_64')
url="http://i3.zekjur.net/tree/"
license=('BSD')
replaces=("i3-wm")
depends=('libxcursor' 'xcb-util' 'libev' 'yajl')
makedepends=('bison' 'flex')
optdepends=('rxvt-unicode: The terminal emulator used in the default config.'
            'dmenu: As menu.'
            'perl: To migrate your configuration to v4 format.')
options=('docs' '!strip')
source=(http://i3.zekjur.net/downloads/i3-tree-${pkgver}.tar.bz2)
md5sums=('18a256720fd24013139298df31428841')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install

  install -Dm644 man/i3.1 \
    ${pkgdir}/usr/share/man/man1/i3.1
  install -Dm644 man/i3-msg.1 \
    ${pkgdir}/usr/share/man/man1/i3-msg.1
  install -Dm644 man/i3-input.1 \
    ${pkgdir}/usr/share/man/man1/i3-input.1
  install -Dm644 LICENSE \
    ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

  make clean
}

# vim:set ts=2 sw=2 et:

Edit: Changed package name, thanks for the hint Inxsible.

Last edited by Atsutane (2011-07-23 13:12:16)


[blog - mostly german] - [JabberID: atsutane 0x40 freethoughts 0x2E de] - [identi.ca]

Offline

#416 2011-07-15 19:14:20

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: The i3 thread

So the current version is 3-e, but on the bug tracker I see a 3-e-next, 3-f-next and tree.

Which one is the successor to 3-e? Or is the tree going to be developed in parallel with 3-e --> 3-f ....?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#417 2011-07-15 19:40:07

Atsutane
Package Maintainer (PM)
From: Germany
Registered: 2008-08-18
Posts: 96

Re: The i3 thread

The tree branch is developed in parallel.

There might be a bugfix release for 3e, but the next major release is i3 4.0, the first stable release of the tree branch. After that there won't be any further development for 3* and the tree branch will be merged into the next branch, the main development branch.


[blog - mostly german] - [JabberID: atsutane 0x40 freethoughts 0x2E de] - [identi.ca]

Offline

#418 2011-07-15 19:51:12

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: The i3 thread

ok I always get confused. Thanks for the clarification again.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#419 2011-07-15 20:05:42

Atsutane
Package Maintainer (PM)
From: Germany
Registered: 2008-08-18
Posts: 96

Re: The i3 thread

You're welcome, it is confusing. Hopefully things return to a way less complex state once 4.0 has been released. :-)


[blog - mostly german] - [JabberID: atsutane 0x40 freethoughts 0x2E de] - [identi.ca]

Offline

#420 2011-07-20 22:26:57

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: The i3 thread

Just wrote a transmission status for i3/dzen.  Might be useful to others here.  Note "message" is a call to dzen with my position parameters.  I bind it to Mod4+Ctrl+t.  It gives a 5 second summary on each torrent.

There must be more elegant solutions but hey I am no programmer smile

#!/bin/bash

COL1="^fg(#DA6F00)"
COL2="^fg(#DDDAEC)"

COUNT=`/usr/bin/transmission-remote -l | wc -l`
COUNT=$(($COUNT-2))
for i in $(seq 1 $COUNT)
do
    GRE=$(($i+1))
    TOR=`/usr/bin/transmission-remote -l | sed -n "$GRE"p | cut -c4`
    MES="$COL1`/usr/bin/transmission-remote -t$TOR -i | sed -n 10p` $COL2|"
    MES="$MES$COL1`/usr/bin/transmission-remote -t$TOR -i | sed -n 9p` $COL2|"
    MES="$MES$COL1`/usr/bin/transmission-remote -t$TOR -i | sed -n 7p` $COL2|"
    MES="$MES$COL1`/usr/bin/transmission-remote -t$TOR -i | sed -n 3p`"
    echo $MES | message
    #sleep 5
done

my message if needed

#!/bin/bash
dzen2 -x 1540 -y 886 -w 1340 -ta r -bg black -fg '#1793D1' -fn -*-terminus-*-*-*-*-12-*-*-*-*-*-iso8859 -p 5

Last edited by gazj (2011-07-20 22:30:18)

Offline

#421 2011-07-21 07:35:01

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: The i3 thread

I should contribute some, too! big_smile
This is my notification system which fits nicely into the bottom bar of i3:

(import chicken scheme extras)
(use posix xosd)

(define (xosd-set-pcm osd)
  (xosd:set-align osd 'left)
  (xosd:set-bar-length osd 40)
  (xosd:set-pos osd 'bottom)
  (xosd:set-vertical-offset osd 1)
  (xosd:set-horizontal-offset osd 180)
  (xosd:set-colour osd "#B3B3B3")
  (xosd:set-timeout osd 2))

(define (xosd-set-msg osd)
  (xosd:set-align osd 'center)
  (xosd:set-pos osd 'bottom)
  (xosd:set-font osd "sans-8")
  ; *-bitstream vera sans-medium-r-normal-*-11-*-*-*-*-*-*-*"
  (xosd:set-colour osd "#B3B3B3")
  (xosd:set-vertical-offset osd 2)
  (xosd:set-horizontal-offset osd -3)
  (xosd:set-timeout osd 10))

(define (sighandler ignore)
  (delete-file "/tmp/.ipcfifo")
  (exit 0))

(define (ipc-server)
  (define mypipe "/tmp/.ipcfifo")
  (define amixercheck "amixer sget PCM | grep \"Left: Playback\" | grep -o \"\\[[0-9]*%\\]\" | tr '[%]' ' ' | tr -d \"[:blank:]\"")
  (when (file-exists? mypipe)
    (delete-file mypipe))
  (create-fifo mypipe)
  (set-signal-handler! signal/term sighandler)
  (let ((osd-pcm (xosd:create 1)) (osd-msg (xosd:create 1)))
    (xosd-set-pcm osd-pcm)
    (xosd-set-msg osd-msg)
    (let loop ()
      (let ((pipedata (call-with-input-file mypipe read-line))); this blocks - sleep won't block
        (cond ((string=? pipedata "checkpcm")
               (let ((pcmlvl (call-with-input-pipe amixercheck read)))
                 (xosd:display osd-pcm 0 pcmlvl)))
              (else (xosd:display osd-msg 0 pipedata))))
       (loop))))
  
(process-fork ipc-server)

Build it with Chicken.

Offline

#422 2011-07-21 23:19:15

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: The i3 thread

I just switched to the tree version and I have one issue :

1) My workspace bar doesn't show even though I have

workspace_bar yes

in the config -- even though that was the default in i3-3e

Does the tree branch no longer have a built in workspace bar? Is it necessary to use a different app like i3-wsbar or similar to get the workspace bar?

Is there a config file available for i3-tree which lists each an every keybinding/function. I would like to have all of them and then I can choose what I want to use instead of having to compare each functionality with my older i3-3e.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#423 2011-07-22 06:06:18

smartass
Member
From: Prague, Czech Republic
Registered: 2011-02-25
Posts: 60

Re: The i3 thread

i3bar (for the tree branch use this package) is the next-gen bar for tree. I'm not absolutely sure about the status of implementation of the internal bar.

The documentation isn't complete yet. You have to forget the i3-3e defaults.
You could browse the userguide in the git tree of the tree branch, it gets updated from time to time. It doesn't contain anything about workspace_bar anymore, so most likely it has been dropped.

The /etc/i3/config contains sane defaults to build on

Anyways, i3-nagbar should nag you if you mess up something.

Good luck migrating, it's worth it wink


KISS my Arch, Willy Gates!

Offline

#424 2011-07-22 06:15:32

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: The i3 thread

Edit: Did you get i3bar for -tree? I think you need i3bar-tree as well.


Not really relevant:

I exec the following script from my i3 config file

#!/bin/bash

bar='i3bar --dock=top --color-bar-bg #000000 --color-bar-fg #ff4500 --color-active-ws-bg #ff4500 --color-inactive-ws-fg #666666 --color-inactive-ws-bg #000000 --color-urgent-ws-bg #ff4500 --color-urgent-ws-fg #ffff00 --color-focus-ws-fg #ff4500 --color-focus-ws-bg #000000 --font -*-clean-*-*-*-*-12-*-*-*-*-*-iso10646-1'

cmd="conky"

if [ "$(pidof i3bar)" ]
  then
    kill $(pidof i3bar) && $bar
  else
    $bar -c conky
fi

Last edited by Pank (2011-07-22 06:17:55)


Arch x64 on Thinkpad X200s/W530

Offline

#425 2011-07-22 06:18:22

Atsutane
Package Maintainer (PM)
From: Germany
Registered: 2008-08-18
Posts: 96

Re: The i3 thread

First: i3status 2.3 has been released.

Inxsible wrote:

I just switched to the tree version and I have one issue :

1) My workspace bar doesn't show even though I have

workspace_bar yes

in the config -- even though that was the default in i3-3e

Does the tree branch no longer have a built in workspace bar? Is it necessary to use a different app like i3-wsbar or similar to get the workspace bar?

Yes there is no longer a built in bar to show the workspaces, try i3bar.

Inxsible wrote:

Is there a config file available for i3-tree which lists each an every keybinding/function. I would like to have all of them and then I can choose what I want to use instead of having to compare each functionality with my older i3-3e.

As far as I know, not yet. The sample configuration files at /etc/i3/ show most of them, also there's the i3-migrate-config-to-v4.pl script to convert the old config into a new one.


[blog - mostly german] - [JabberID: atsutane 0x40 freethoughts 0x2E de] - [identi.ca]

Offline

Board footer

Powered by FluxBB