LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-10-2011, 04:26 PM   #1
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Debugging wmiirc (commands bound to key combinations)


I've recently got into using wmii, and didn't like the default behaviour that MODKEY+2 took you to a tag labelled '2', so attempted to change it. The behaviour I wanted was for it to change to the 2nd tag in the list of tags displayed in the bar.

What I put in the wmiirc was as follows:
Code:
 for i in 1 2 3 4 5 6 7 8 9; do
        cat <<!
Key $MODKEY-$i       # Move to the numbered view
    wmiir xwrite /ctl view $(wmiir ls /tag | grep -v sel | head -${i} | tail -1 | sed 's/\///g');
!
    done
This command seems to work in the terminal, but not in my wmiirc file. Can anyone see either what's wrong with it, or a good way to debug it?

I have tried redirecting stderr to a file, but nothing is written to it, and I've also tried echoing "wmiir ls /tag", "wmiir ls /tag | grep -v sel", etc. for all the pipes, to a file, but again it doesn't seem to work.

Alternatively, can anyone point me to more up-to-date documentation for wmii? http://wmii.suckless.org/guide says the most up-to-date is wmii.pdf (and links to it) which is dated 2009, and the version of wmii I have is dated 2010 and has a different format for the wmiirc file (which seems notorious for changing from release to release).

Thanks in advance
 
  


Reply

Tags
keybinding, wmii, wmiirc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling certain key combinations sreeharsha.t Linux - Software 1 12-29-2009 10:45 AM
[SOLVED] Disabling Key combinations in X sreeharsha.t Linux - Software 2 09-07-2009 11:19 PM
Binding Thinkpad Keys to Key Combinations CaffeineJunkie Linux - Desktop 0 10-03-2006 10:27 AM
Key combinations that will stop a boot? txtedmacs Linux - General 11 08-22-2005 07:03 PM
key combinations to launch apps? will103 Linux - Software 2 09-11-2004 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration