You are not logged in.

#1 2009-04-26 12:44:20

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

antiwm conf.h

Well, i found dwm my perfect window manager, but i recently hear about antiwm, i feel it like the dwm monocle layout without the tags, and without some other things, like tha bottom bar, etc... so i wanna try it...

i recently discovered that one can config it through the conf.h file and recompiling (ala dwm) so, i opened it and i got these for now, but i want to add a few keybindings and make the escape sequence with the ALT key, not CONTROL+t so, i don't find out how to add commands like dmenu for example, and killl current window...

/* Configure AntiWM here, recompile, and install. */
#define KEY_PREFIX      't'
#define MODIFIER_PREFIX ControlMask
define KEY_TERM       'c'
#define KEY_EDIT       'e'
#define KEY_PREVWINDOW  'p'
#define KEY_NEXTWINDOW  'n'    
#define KEY_LASTWINDOW  't'    /* toggle current and previous windows */
define KEY_TOGGLEBAR   's'    /* toggle display of the bar */
define TERM_PROG      "urxvtc"    /* launch a terminal */
#define EDIT_PROG      "vim"    /* launch an editor */
define BAR_FG_COLOR    "Gray60"
define BAR_BG_COLOR    "Black"
define BAR_BOLD_COLOR  "White" /* indicate current window */
define FONT_NAME       "fixed"    /* font to use */
define BAR_PADDING     0    /* top and bottom bar padding  */
#define BAR_LOCATION    1    /* 0=bottom-left 1=top-left 2=bottom-right 3=top-right */
#define BAR_TIMEOUT     5    /* time before bar autohides 0=don't autohide */

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#2 2009-04-26 13:18:46

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: antiwm conf.h

The antiwm site has a "Get Support" link - you might get an answer faster there.

Offline

#3 2009-04-26 13:33:59

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: antiwm conf.h

tomk wrote:

The antiwm site has a "Get Support" link - you might get an answer faster there.

no, it's not what it seems to be, it's a general sourceforge support link


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#4 2009-04-26 14:08:32

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: antiwm conf.h

You cannot add your own bindings, simply because AntiWM's keyboard hooking takes care of only fixed bindings found in that config file. It doesn't hook any other keys. AntiWM is really minimal.
If you want I hacked it a few days ago and made it use dmenu to launch stuff instead of that awful editor key

Last edited by Wra!th (2009-04-26 14:10:18)


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#5 2009-04-26 14:10:01

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: antiwm conf.h

Wra!th wrote:

You cannot add your own bindings.Antiwm is a really minimal wm
If you want I hacked it a few days ago and made it use dmenu to launch stuff instead of that awful editor key

great! please post it! smile


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#6 2009-04-26 14:15:26

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: antiwm conf.h

leo2501 - I'm talking about this page which has links to antiwm docs, bugtracker, and mailing lists, and is accessed from the "Get Support" link on the antiwm home page that I already gave you.

Offline

#7 2009-04-26 14:15:40

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: antiwm conf.h

Well the hack is realy quite simple. Just replace all occurances of KEY_EDIT with KEY_MENU(just for easy recognition..you can leave it as KEY_EDIT), and in conf.h replace "vim" with "dmenu.sh"
dmenu.sh

#!/bin/sh
exec `dmenu_path | dmenu -nb "#454545" -nf Grey90 -sb Grey90 -sf "#454545" -fn '-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*' -b`

chmod +x dmenu.sh, and put it somewhere in your search path

PS: Be advised that AntiWM has a nasty bug (but not sure if it's only my box or not) when you display the windows list.
check your cpu load before you display it, and after. On my box after I display it cpu goes up to 100%.I found where the bug is located and fixed it. Lemme know if you get the same

Last edited by Wra!th (2009-04-26 14:17:20)


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#8 2009-04-26 14:19:30

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: antiwm conf.h

well thankyou guys! im configuring xbindkeys for my specific keys smile


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#9 2009-04-26 18:29:15

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: antiwm conf.h

Wra!th: i have a 100% cpu usage bug as well, how do you get rid of it?

Well it seems that i cant config the antiwm PKGBUILD to build with my conf.h file, here's the PKGBUILD i customize, i want it to get the conf.h file in the directory to always compile with my custom settings... smile

# Contributor: mentallaxative <beshimi@hotmail.com>
pkgname=antiwm
pkgver=0.0.3
pkgrel=1
pkgdesc="A minimalist window manager inspired by Ratpoison"
arch=('i686')
url="http://sourceforge.net/projects/antiwm"
license=('MIT')
depends=('libx11')
source=(http://internode.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz conf.h)
md5sums=('5764f780e1a0004e5f2f16053636ed59' '')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cp $srcdir/$pkgname-$pkgver/conf.h conf.h
  
  make || return 1
  mkdir -p $startdir/pkg/usr/bin
  make INSTALL_DIR=$startdir/pkg/usr/bin install

  install -m644 -D LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE && \
  install -m644 -D README $startdir/pkg/usr/share/doc/$pkgname/README

}

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

but this outputs this, and it doesn't seem to get my customizations...

==> Making package: antiwm 0.0.3-1 i686 (Sun Apr 26 15:28:08 ART 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found antiwm-0.0.3.tar.gz in build dir
  -> Found conf.h in build dir
==> WARNING: Integrity checks (md5) are missing or incomplete.
==> Extracting Sources...
  -> bsdtar -x -f antiwm-0.0.3.tar.gz
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting build()...
cp: `/home/aleyscha/bin/arch_packages/antiwm/src/antiwm-0.0.3/conf.h' and `conf.h' are the same file
make: `antiwm' is up to date.
cp antiwm /home/aleyscha/bin/arch_packages/antiwm/pkg/usr/bin
==> Tidying install...
  -> Compressing man pages...
  -> Stripping debugging symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: antiwm 0.0.3-1 i686 (Sun Apr 26 15:28:09 ART 2009)

Last edited by leo2501 (2009-04-26 18:46:21)


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#10 2009-04-27 07:58:17

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: antiwm conf.h

Yeah that is a nasty bug I can't believe no one saw it before
Edit main.c and look for the "void alrm_handler ()" function (around line 60-65).
Change (in that function only)

XSync(dpy, False);

to

XFlush(dpy);

It will not up the cpu anymore, but the windows window will remain a bit more onscreen...not a big deal. this was the quickest way I got it to work as it should..the bug should be further investigated


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#11 2009-04-27 11:38:09

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: antiwm conf.h

thanks! i changed it in the /src/antiwm-0.0.3 directory, when i run makepkg, it will take that change? cause i dont understand very well the PKGBUILD thingy, because for example the conf.h i add to the antiwm-0.0.3 dir, where the PKGBUILD is, and added it to the sources and then the cp line below, for some reason it works in dwm PKGBUILD but not here, i copy the dwm PKGBUILD as example for doing it


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#12 2009-04-27 15:27:01

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: antiwm conf.h

leo2501 wrote:

thanks! i changed it in the /src/antiwm-0.0.3 directory, when i run makepkg, it will take that change? cause i dont understand very well the PKGBUILD thingy, because for example the conf.h i add to the antiwm-0.0.3 dir, where the PKGBUILD is, and added it to the sources and then the cp line below, for some reason it works in dwm PKGBUILD but not here, i copy the dwm PKGBUILD as example for doing it

You're stressing yourself too much. Just get the source from the official site, extract, cd, edit conf.h and main.c, make && make install.
No need to use PKGBUILDs for every little thing you install smile


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#13 2009-04-27 22:07:50

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: antiwm conf.h

lol, i know... but how you uninstall it after? i never get into that make && make install standard linux method, always PKGBUILDS

that command, makes some sort of package, or only copies the files where they need to be?


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#14 2009-04-27 22:25:39

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: antiwm conf.h

found the info here smile

http://www.tuxfiles.org/linuxhelp/softinstall.html

Thankyou Wra!th!!


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#15 2009-05-29 22:44:56

yvonney
Member
Registered: 2008-06-11
Posts: 671

Re: antiwm conf.h

antiwm ??? news to me!

After weeks of pondering I'm now considering going to musca from dwm. There's just SO much happening with musca and as I've had brilliant help from leo2501 with dwm (and much more) I searched for recent post and found this one.

I rarely use more than 2 tabs in DWM and if I'm not mistaken I HAVE to use the mouse to move a window to another tab, if that's said right.

I initially asked myself HOW could musca be better for me than dwm...
I think that being able to compile it and/or use the .start_musca file and have a new to me feature of all groups the way I want them to be I think. Looks to me that musca is dwm with much liked features added or removed also.   Can be less feature or more features it seems. I am just today learning.

suckless.org is so famous is also partly why I have hesitated. Then I started thinking, silly me.

musica is very new.

Now I'm finding the currently 14 page main musca thread quite refreshing as there's so many gurus and great ideas. Being able to ask and get replies is a big thing for me. And changes/mods/fixes as SO fast.

Also, this means that my stale dwm state I'm in right now could freshen me up with musca... Many many things of interest I think.
It is now getting very cool with the latest revisions so maybe a good time for me to start musca.



best wishes

Last edited by yvonney (2009-05-29 23:21:03)

Offline

Board footer

Powered by FluxBB