You are not logged in.

#301 2010-01-28 22:25:28

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: The wmii thread

this is what i wanted smile i don't want to change tag names, having tags named 1,2,3,4, i just want to categorize them (like "what's in 1 is WEB, in 2 is DEV, in 3 is LOL") big_smile
thanks mate big_smile

actually, searching for the correct tag with a mod-t is pretty uncomfortable... better mod-number big_smile

Offline

#302 2010-01-29 12:53:36

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: The wmii thread

skualito, sorry to bother you anymore, but your configuration doesn't work... actually, mod-<1...0> doesn't switch any view... it all sticks to view number one... i also ripristinated old wmiirc with view "$i" but still sticking to view number one...

Offline

#303 2010-01-29 15:47:49

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: The wmii thread

samuele.mattiuzzo wrote:

skualito, sorry to bother you anymore, but your configuration doesn't work... actually, mod-<1...0> doesn't switch any view... it all sticks to view number one... i also ripristinated old wmiirc with view "$i" but still sticking to view number one...

Hmmm, it works for me here... Mod-1 goes to "dev" and mod-2 to "web". Can you post the relevant parts of your wmiirc ?

Offline

#304 2010-01-29 21:53:37

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: The wmii thread

    for i in 0 1 2 3 4 5 6 7 8 9; do
        cat <<!
    # 1=www, 2=com, 3=dev, 4=sys, 5=media
#    Key $MODKEY-1
#           wmiir xwrite /ctl view "www"
#    Key $MODKEY-2
#           wmiir xwrite /ctl view "com"
#    Key $MODKEY-5
#           wmiir xwrite /ctl view "media"
#       Key $MODKEY-3 
#           wmiir xwrite /ctl view "dev"
#    Key $MODKEY-4
#           wmiir xwrite /ctl view "sys"
    # numbered views
    Key $MODKEY-$i
           wmiir xwrite /ctl view "$i"

    Key $MODKEY-Shift-$i
        wmiir xwrite /client/sel/tags "$i"
!
    done

this is my actual wmiirc in /etc, i commented out the personalized lines, but still $MODKEY-$i doesn't work sad

Offline

#305 2010-01-30 09:40:33

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: The wmii thread

You can try remove all the lines you added in /etc/wmiirc and edit  your wmiirc_local instead:

local_events() {
            for i in 1 2; do
                     cat <<!
Key $MODKEY-1
              wmiir xwrite /ctl view "dev"
Key $MODKEY-2
              wmiir xwrite /ctl view "web"
Key $MODKEY-Shift-1
              wmiir xwrite /client/sel/tags "dev"
Key $MODKEY-Shift-2
              wmiir xwrite /client/sel/tags "web"
!
              done
}

This works fine for me.

Offline

#306 2010-02-05 03:41:01

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: The wmii thread

I have a problem with the configuration file wmiirc.
Here the file: http://pastebin.com/m5d9feb07
And the error i get is:

wmii: note: missing fontsets for '-*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*': KSC5601.1987-0, GB2312.1980-0
/home/alucard/.wmii-3.5/wmiirc: line 248: warning: here-document at line 51 delimited by end-of-file (wanted `!')
/home/alucard/.wmii-3.5/wmiirc: line 249: syntax error: unexpected end of file

I think the big problem is not the font.

Offline

#307 2010-02-05 03:58:12

Aedit
Member
Registered: 2009-10-29
Posts: 138

Re: The wmii thread

Don't indent the ! on lines 157 and 164.

Offline

#308 2010-02-05 04:25:42

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: The wmii thread

Aedit wrote:

Don't indent the ! on lines 157 and 164.

This solved the issue.
Thanks Aedit.

Offline

#309 2010-02-05 05:01:21

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: The wmii thread

A new problem:

/home/alucard/.wmii-3.5/wmiirc: line 205: Action_status: command not found
/home/alucard/.wmii-3.5/wmiirc: line 206: conf_which: command not found

Offline

#310 2010-02-05 11:50:09

Aedit
Member
Registered: 2009-10-29
Posts: 138

Re: The wmii thread

The indentation in eventstuff() has been lost. See /etc/wmii-3.5/wmiirc and man wmiiloop.

Offline

#311 2010-02-05 13:43:16

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: The wmii thread

Aedit wrote:

The indentation in eventstuff() has been lost. See /etc/wmii-3.5/wmiirc and man wmiiloop.

I solved the problem. Yes, the indentation of the file is the problem. Thanks again.

Offline

#312 2010-02-16 01:19:03

bp3m
Member
From: Italy
Registered: 2010-02-16
Posts: 2

Re: The wmii thread

Hi all, smile

i'm playing with archlinux and wmii and i'd like to share my workaround to display in wmii status bar the output of conky. I'am using latest version of wmii-hg from AUR and latest version of conky from extra repo. I'm working on a virtualbox virtual machine.

In .conkyrc config file i use the setting overwrite_file to write the conkyoutput to a file in my home named .conky2wmii.
I also configure the TEXT section for a single line layout. My .conkyrc:

out_to_x no
background no
cpu_avg_samples no
net_avg_samples no
no_buffers yes
out_to_console no
update interval 2.0
uppercase no
user_space none
ovewrite_file /home/username/.conky2wmii

TEXT
$sysname $kernel $machine CPU:$cpu% RAM:$memperc% Swap:$swapperc% Proc:$processes Hdd:$fs_used_perc% UP:${upspeed eth0} Down:${downspeed eth0} $time

In wmiirc_local in my .wmii-hg folder i simply overwriting the standard status function from wmiir with a read from my file .conky2wmii

status(){
            cat /home/username/.conky2wmii
}

I then configure conky to start on wmii startup adding on wmiirc_local in my .wmii-hg folder the command

conky &

and i configure conky to be killed on wmii quit action adding to the quit action section in /etc/wmii-hg/wmiirc the code

Action quit
          wmiir xwrite /ctl quit 
          pkill conky

I don't know if its' the best solution but this works quite well for me and i hope could be useful, this thread was very useful for me wink


"It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away".
Antoine de Saint Exupéry

Offline

#313 2010-02-16 08:35:37

syre
Member
From: Denmark
Registered: 2009-08-04
Posts: 100

Re: The wmii thread

I've wanted to replace the default statusbar in my wmii with another statusbar like conky, mainly because conky is easier to use in my opinion.
So it looks like your post is just up my alley, good job, i'll try it when i get home smile

Offline

#314 2010-03-10 18:40:16

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: The wmii thread

How to split the windows vertically and not horizontally?
If i want transparency in urxvt i need the AUR package? or i can have it with the ABS package?

Offline

#315 2010-03-10 23:18:10

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: The wmii thread

I can split windows vertically.
But still want to know is it possible to get tranparency in urxvt using ABS package?

Offline

#316 2010-03-19 04:01:03

disturb
Member
Registered: 2009-12-18
Posts: 70

Re: The wmii thread

I remember stumbling on a patch that disabled the title bars on windows, but can't find it anymore.
Not being able to get rid of those is my only gripe with wmii, I hope someone here knows about it...

Offline

#317 2010-03-21 12:20:34

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: The wmii thread

disturb wrote:

I remember stumbling on a patch that disabled the title bars on windows, but can't find it anymore.
Not being able to get rid of those is my only gripe with wmii, I hope someone here knows about it...

It can be done using a negative fontpad (/ctl) but you will loose the main bar too.

Offline

#318 2010-04-11 13:48:31

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: The wmii thread

Hi, smile
Anyone knows how do I add actions like shutdown and reboot to the wmii actions menu ($MODKEY-a)?


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#319 2010-04-11 14:00:08

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: The wmii thread

rent0n wrote:

Anyone knows how do I add actions like shutdown and reboot to the wmii actions menu ($MODKEY-a)?

Here is the #Actions section of my ~/.wmii-3.5/wmiirc file:

# Actions
    Action quit
        wmiir xwrite /ctl quit
    Action shutdown
        sudo shutdown -h now
    Action exec
        wmiir xwrite /ctl exec "$@"
    Action reboot
        sudo reboot
    Action rehash
        proglist $PATH >$progsfile
    Action status
        set +xv
        if wmiir remove /rbar/status 2>/dev/null; then
            sleep 2
        fi
        echo "$WMII_NORMCOLORS" | wmiir create /rbar/status
        while status | wmiir write /rbar/status; do
            sleep 1
        done

You will need sudo and shutdown/reboot in your sudoers file to do this. See the wiki.


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#320 2010-04-11 14:08:31

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: The wmii thread

Thanks, much easier than I thought. big_smile
Btw, what's the meaning of the exec and rc.wmii actions?

Last edited by rent0n (2010-04-11 14:09:37)


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#321 2010-04-11 17:30:16

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: The wmii thread

bp3m wrote:

Hi all, smile

i'm playing with archlinux and wmii and i'd like to share my workaround to display in wmii status bar the output of conky. I'am using latest version of wmii-hg from AUR and latest version of conky from extra repo. I'm working on a virtualbox virtual machine.

In .conkyrc config file i use the setting overwrite_file to write the conkyoutput to a file in my home named .conky2wmii.
I also configure the TEXT section for a single line layout. My .conkyrc:

out_to_x no
background no
cpu_avg_samples no
net_avg_samples no
no_buffers yes
out_to_console no
update interval 2.0
uppercase no
user_space none
ovewrite_file /home/username/.conky2wmii

TEXT
$sysname $kernel $machine CPU:$cpu% RAM:$memperc% Swap:$swapperc% Proc:$processes Hdd:$fs_used_perc% UP:${upspeed eth0} Down:${downspeed eth0} $time

In wmiirc_local in my .wmii-hg folder i simply overwriting the standard status function from wmiir with a read from my file .conky2wmii

status(){
            cat /home/username/.conky2wmii
}

I then configure conky to start on wmii startup adding on wmiirc_local in my .wmii-hg folder the command

conky &

and i configure conky to be killed on wmii quit action adding to the quit action section in /etc/wmii-hg/wmiirc the code

Action quit
          wmiir xwrite /ctl quit 
          pkill conky

I don't know if its' the best solution but this works quite well for me and i hope could be useful, this thread was very useful for me wink

I've just tried this method as I feel much more comfortable in taking information from conky rather than using sed and awk... big_smile

However, I've noticed that the hard disk is always active, probably because it continuously 'cats' the .conky2wmii file.
Can you confirm this?

Maybe there's a more direct way to pipe conky's output into wmii statusbar?


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#322 2010-04-12 00:15:44

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: The wmii thread

How to get a nice status bar (mpd, cpu comsuption, etc).
I find several options but still i don't know, what is the best way to do it?:
1. Using sunaku's Ruby wmiirc
2. Using Wmii Filesystem
3. other way...

Well Archers, what do you suggest?
Btw, please, indicate how to install and configure.

TIA.

Offline

#323 2010-04-12 00:55:46

alexandrite
Member
Registered: 2009-03-27
Posts: 326

Re: The wmii thread

I just have a set of functions in wmiirc, each updating its own small statusbar, all put in /lbar.

Each sub-bar can be separately-colored, and you can have each of them pop up a different little OSD when you click them.

Installing and and configuring is pretty straightforward... Just paste the new functions into wmiirc and edit the "status" action to call them.

If you're interested, I can clean up my wmiirc a bit and paste the relevant bits here.

Offline

#324 2010-04-12 02:30:48

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: The wmii thread

alexandrite wrote:

If you're interested, I can clean up my wmiirc a bit and paste the relevant bits here.

That can be great!!! big_smile

Offline

#325 2010-04-12 07:29:14

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: The wmii thread

alexandrite wrote:

I just have a set of functions in wmiirc, each updating its own small statusbar, all put in /lbar.

Each sub-bar can be separately-colored, and you can have each of them pop up a different little OSD when you click them.

Installing and and configuring is pretty straightforward... Just paste the new functions into wmiirc and edit the "status" action to call them.

If you're interested, I can clean up my wmiirc a bit and paste the relevant bits here.

I would be *very* interested, please paste your config! smile

Last edited by rent0n (2010-04-12 07:29:32)


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

Board footer

Powered by FluxBB