You are not logged in.

#151 2012-10-15 23:49:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

Cool.  Note that the documentation is lacking.  That is the main thing to work on before this would be ready for a versioned release.  So until then feel free to ask.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#152 2012-10-27 11:50:32

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: Alopex: a tiling tagging tabbed window manager with fur

Do you plan to release a stable version or to not update for a while? I'd like to update the patches but keeping track with every commit is too much work for me, therefore they're really outdated atm.

Offline

#153 2012-10-27 11:59:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

Great question.  I have been feeling that ttwm was nearing readiness for a 'versioned' release.  As you might note from the the lack of commits, however, other commitments have taken all of my time for the past week or so.

I should be be able to do the needed cleanup for a versioned release in the next couple weeks.  I'll post here when I have more info.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#154 2012-10-27 12:13:47

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: Alopex: a tiling tagging tabbed window manager with fur

Thanks, I'll wait with the patches until then. Take your time smile

Offline

#155 2012-10-29 15:22:40

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,642

Re: Alopex: a tiling tagging tabbed window manager with fur

I see from your post in the fluxbox thread that you're planning to add the ratpoison "ratclick" function to TTWM. Would you also like to add "ratwarp" and "ratrelwarp"? They move the mouse pointer to absolute or relative coordinates. And if you're adding mouse-related functions, how about "banish" -- it moves the mouse pointer off screen. I don't use ratwarp or ratrelwarp myself, but I do sometimes use banish.

I hope you are staying safe from the big storm...

Last edited by 2ManyDogs (2012-10-29 15:27:55)


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#156 2012-10-29 15:59:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

I tinkered with this a bit, then I realized there was no need for it to be part of the WM itself.  There are no data structures that need to be shared aside from the trivial requirement of a new program needing it's own variables for basic things like the X Display pointer and screen number.  Four bytes of duplicated data is nothing.

So I put together a program which can easily called from a ttwm key binding.  The program is tentatively named keydo.  When started it grabs various keys until "q" is pressed to quit.  Arrow keys or h/j/k/l move the mouse cursor, number keys simulate the numbered mouse button click, and PageUp/PageDown simulate scroll wheel activation.

I may add drag ability, and will definitely add the banish and warp abilities.

As a separate tool, I realize this partially reinvents the wheel when compared to xdotool.  But I believe xdotool has limited functionality with non-EWMH window managers and would require separate key bindings for each action.  And to move the mouse with keys, xdotool would have to be re-called many times in rapid succession.  Keydo will run until "q" is pressed.

It'll take a bit more testing, but so far everything is working smoothly here - and currently at only 85 lines of code.

EDIT: The new name is "iocane", see here for more information and discussion of this tool.

Last edited by Trilby (2012-10-29 18:38:07)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#157 2012-10-29 16:03:17

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,642

Re: Alopex: a tiling tagging tabbed window manager with fur

Nice work. It's even more useful if it's not part of the window manager. Please let me know when it's ready for testing.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#158 2012-10-29 16:10:16

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: Alopex: a tiling tagging tabbed window manager with fur

@2ManyDogs: There's a patch for banish in my repo, but I think it doesn't apply with the currect git version. You can try and fix it yourself, as I will wait for a versioned release before updating it.

Offline

#159 2012-10-29 17:40:17

mood
Member
Registered: 2012-08-14
Posts: 5

Re: Alopex: a tiling tagging tabbed window manager with fur

This is great. I do have one issue/request though.
I occasionally play Minecraft, but when using ttwm it seems to be unable to grab the mouse when not in fullscreen. In DWM It works without any trouble, but when clicking "Back to game" in the pause menu (which it enters automatically) nothing happens. The reason I think this has something to do with the grabbing of the mouse is because that is the only moment the game actually does that, and when in fullscreen it is not a problem. MonsterWM has the same "problem", but DWM doesn't. Do you know why this is happening? Could you, maybe, fix it or help me to fix it?

Offline

#160 2012-10-29 18:10:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

I'd be happy to look into this - though nothing obvious comes to mind.  I'm installing minecraft now to see if I can replicate the problem to begin investigating.

I see it is a Java app - java applications are a perpetual PITA, but because of this there are also a number of work-arounds floating about the "interwebs" so we can remain optimistic.

EDIT: well I don't have a "premium" account for minecraft so I can only play the demo ... and the demo doesn't actually load.  Do you see similar problems in any other programs?  You can take a look at this page from the awesomeWM wiki.  Java is problematic on all non-reparenting window managers, and the awesomeWM community seems to have collected the best workarounds there.

Last edited by Trilby (2012-10-29 18:15:06)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#161 2012-10-29 22:04:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

Doomcide,

I put my perfectionist side away and threw together a 1.0 release which has its own AUR package now.  I can implement bug fixes, and will add better documentation to that as it develops, but I'll keep all my tinkering and experimenting in the ttwm-git package which will be the testing ground for an eventual 2.0 release down the road.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#162 2012-10-30 04:10:25

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Alopex: a tiling tagging tabbed window manager with fur

Just to update my experiences with ttwm; I am running it as my wm for my desktop, old thinkpad T21, netbook HP, and I am finding it running well on all platforms.  I also run various distros on my desktop and have installed and run ttwm on slackware, crux. debian, frugalware, and of course arch.

My other, at the moment, favorite wm goomwwm doesn't handle wine apps very well.  I find I must use a patch to disable a hack to deal with sdl fullscreen apps but ttwm doesn't have this problem at all.  I run Diablo II, Starcraft, and a few other wine apps with no problems.

I find that I am having to use the mod+print to refocus other apps that start new windows, as well as firefox, so thx for that--ie. graveman, gnome-mplayer.

If I could ask for a small indulgence, I find that I have to strain my neck to look at the bar on top on my desktop through my trifocals as my monitor is mounted above my desktop.  So I was wondering if it wouldn't be too much trouble to have an option to place the bar at the bottom of the screen.  I don't need this for my laptop or netbook but I do use my desktop more.

Thx for all your effort, and I appreciate your work on this wm. smile


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#163 2012-10-30 11:21:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

Thanks for the review/feedback.

The only currently planned change for ttwm was to add more flexibility to the status bar.  I was planning on making it possible to show/hide, and have a "transient" statusbar that only showed up while the mod key was held.  I can certainly put different placements on the list with those.

The next version release will be a ways off, but this feature - at least in an experimental state - should make it into the git version fairly quickly (maybe 1 week).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#164 2012-10-30 14:10:44

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

Trilby wrote:

have a "transient" statusbar that only showed up while the mod key was held

Talking about a statusbar, I have send you an email on my new DWM project some days ago. I don't want to be impolite but I was wondering if you could reply.

Sorry for going off-topic.

Last edited by Unia (2012-10-30 14:10:53)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#165 2012-11-10 18:28:57

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: Alopex: a tiling tagging tabbed window manager with fur

Hey, I just started working on updating the patches (a bit later than I promised, I know wink) But when I try to start even the unpatched ttwm-1.0 this happens:

X.Org X Server 1.13.0
Release Date: 2012-09-05
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.6.2-1-ARCH x86_64 
Current Operating System: Linux gunther 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=fe32054d-36c6-4de8-a5e6-e9a55e0b6fe8 ro
Build Date: 19 October 2012  03:54:56PM
 
Current version of pixman: 0.26.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sat Nov 10 19:26:27 2012
(==) Using config directory: "/etc/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
resize called 1280 1024
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
ttwm error: request=45; error=15
/home/doom/.xinitrc: line 65:  3307 Segmentation fault      (core dumped) exec ${1-${default}}
xinit: connection to X server lost

waiting for X server to shut down Server terminated successfully (0). Closing log file.

Last edited by Doomcide (2012-11-10 18:29:14)

Offline

#166 2012-11-10 22:15:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

What is the exec line in your xinitrc?

The 1.0 version is working fine here.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#167 2012-11-10 22:42:46

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Alopex: a tiling tagging tabbed window manager with fur

Same here. Version 1.0 works fine.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#168 2012-11-11 00:19:18

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: Alopex: a tiling tagging tabbed window manager with fur

I'll post my complete xinitrc for better understanding:

#!/bin/sh

userresources=$HOME/.Xdefaults
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then

    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs


if [ -d /etc/X11/xinit/xinitrc.d ] ; then
	for f in /etc/X11/xinit/xinitrc.d/* ; do
		[ -x "$f" ] && . "$f"
	done
	unset f
fi

xset -b
xset +fp /usr/share/fonts/local
xset fp rehash
setxkbmap de -variant deadgraveacute

xbindkeys &
#urxvtd &
wmname LG3D

sed -i s/^SCREENSAVER.*/SCREENSAVER="on"/ $HOME/.scripts/screentoggle
if [ -f ~/.tid ]; then
	rm ~/.tid
fi

default="ratpoison"
session=$(echo $1 | awk '{ print $1 }')

autostart()
{
	devmon --exec-on-disc "notify-send Mounted '%f at %d'" --exec-on-drive "notify-send Mounted '%f at %d'" --exec-on-unmount "notify-send Unmounted '%f at %d'" & 
	if [ -f $HOME/.scripts/$session-start.sh ];then
		$HOME/.scripts/$session-start.sh
	fi
}

exec ${1-${default}}  & wmpid=$!
autostart
wait $wmpid

Offline

#169 2012-11-11 00:23:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

whoa ... does that work with other wms?

Why do you "exec" and background?  I didn't think that should even be possible.

EDIT: I just tried a few similar concoctions in my xinitrc, and they seem to work fine.  So the creative invocations there may not be relevant.  However, if you haven't yet, can you try starting X with a very vanilla xinitrc to completely rule that out.  For example, just one line

exec ttwm

Also, were you using a display manager?  There was the previous issue from some display managers not providing a stdin stream to xinit.  TTWM does need an input stream: it will prioritize any command passed as it's first argument, or if it has no arguments it will read from stdin.  If a display manager has broken the stdin stream and there is no parameter provided, ttwm may crash.

Last edited by Trilby (2012-11-11 00:34:32)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#170 2012-11-11 01:05:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

BGC,

The first step in having a bottom status bar is up on git.  See the new variable in config.h called 'topbar'.  Set this to "False" to get the bar on the bottom instead.  This should put the status bar on the bottom well, though the tabs still 'point' down.  I'll eventually improve the aesthetics of bottom tabs, but for now it should be functional.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#171 2012-11-11 02:55:22

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Alopex: a tiling tagging tabbed window manager with fur

Thx Trilby, very functional indeed.  Actually, I don't mind the look of the tabs when I'm just using terminals, but you're right, if I use firefox or any other app that's basically a  white screen with a black border, the top of the tabs kind of blend in with the bottom of the app.  It's a great start for now.  My neck thanks you greatly. big_smile


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#172 2012-11-11 11:56:26

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: Alopex: a tiling tagging tabbed window manager with fur

Trilby wrote:

whoa ... does that work with other wms?

Why do you "exec" and background?  I didn't think that should even be possible.

EDIT: I just tried a few similar concoctions in my xinitrc, and they seem to work fine.  So the creative invocations there may not be relevant.  However, if you haven't yet, can you try starting X with a very vanilla xinitrc to completely rule that out.  For example, just one line

exec ttwm

Also, were you using a display manager?  There was the previous issue from some display managers not providing a stdin stream to xinit.  TTWM does need an input stream: it will prioritize any command passed as it's first argument, or if it has no arguments it will read from stdin.  If a display manager has broken the stdin stream and there is no parameter provided, ttwm may crash.

Yes that works fine with other wms big_smile I background exec to execute the autostart-function when the wm is up and running. I tried with a one-line xinitrc and got the same result hmm. I don't use a dm, just plain startx/xinit.

Offline

#173 2012-11-11 12:20:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,422
Website

Re: Alopex: a tiling tagging tabbed window manager with fur

I've been meaning to make ttwm's error messages more verbose - I guess this is the time to do it.  Error code 15, however, is a bad name error most likely indicating a typo in the colors or font name in your config.h.  Do you get the same error with the default config.h?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#174 2012-11-11 13:34:47

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: Alopex: a tiling tagging tabbed window manager with fur

It is the default config.h. I just had to install terminus, d'oh. Working fine now, thanks for your help.

Offline

#175 2012-11-12 05:37:55

netfun81
Member
Registered: 2008-07-20
Posts: 32

Re: Alopex: a tiling tagging tabbed window manager with fur

Trilby,

been using ttwm for a couple days and I really like it, but have a question concering the status bar.   I know you stripped out the code for Rectabar and then added it back.  How can i get the cpu and volume bars?  I downloaded cab.c and vol script to my ttwm folder and added the following to .xinitrc:

exec ~/ttwm/cab.c | ~/ttwm/ttwm

starts ttwm but no change to status bar.   I tried making cab.c executable and also removed the .c but nothing.

Again Nice wm.. thanks

Offline

Board footer

Powered by FluxBB