You are not logged in.

#476 2010-11-21 20:19:45

joeDeuce
Member
From: Georgia, USA
Registered: 2010-05-26
Posts: 17
Website

Re: Musca (Tiling Window Manager)

@mhertz

The patch posted by Procyon will fix the unable to cycle bug.  It also prevents windows from going to true fullscreen mode, but if you move flash to a group by itself, the fullscreen will still work as expected, and you'll still be able to cycle.

I tried the patch in order to fix the geeqie bug (similar to the one you mention with flash), and it has fixed it.

@sie

What have you done?!?!?
Did you ever find out what caused that to happen?


We die young, all too often.

Offline

#477 2010-11-21 22:39:01

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

Re: Musca (Tiling Window Manager)

Right now I'm giving musca a second chance, I hope I don't find new bugs which make it unusable for me. There's one little thing I'd love to improve. I have a script, which was taken from musca's wiki afair, which makes apps fullscreen.

#!/bin/bash

dump=/tmp/musca_dump
m() { musca -c "$*"; }

m dump $dump
border=$(grep -m 1 ^frame $dump | cut -f 6)

if [ $border -eq 0 ]; then
#    m only
    m border off
    m pad 0 0 0 0
elif [ $border -eq 4 ]; then
    m border on
    m pad 0 0 0 12
fi

What I'd like to add here is "only", so that the application really takes the whole screen. This can easily be done with the line I commented out (m only). But what should I put in to undo the "only" command? Undo is a possible solution, but it's not as clean as I want it to be.

Any good ideas?

Offline

#478 2010-11-22 09:44:29

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: Musca (Tiling Window Manager)

@joeDeuce

Thanks, man! I didn't tried it, as I only thought it was releated to some issues with not getting propper fullscreen and which i've never have had any issues with, like e.g. mplayer and vbox(terminal versions), but that's probably because i don't use any padding or trays/panels etc....

@Procyon

Thanks alot for that, mate! Much appreciated! Have you sent the patch to Sean? He did request help some time ago:
:

aerosuidae wrote:

I do expect to release another rev of Musca at some stage but I can't promise just when that will be.  This will be greatly sped up if anyone C-savvy wants to pitch in.

Last edited by mhertz (2010-11-22 09:46:47)

Offline

#479 2010-11-24 09:35:21

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: Musca (Tiling Window Manager)

Sorry for complete noob'ishnes, but i'm a GNU/Linux newbie and it's the first time I try to apply a patch to source-code...

Anyway, I download Musca v0.9.24 and unpack it + cd into it's directory. Then I save Procyon's patch as patch.diff into the same directory and run 'patch < patch.diff' (I didn't used any -p<n> values, as there weren't any path defined for musca.c in the patch, and as the source file was allready mentioned in the patch i.e. musca.c, then I didn't added any source dest files in the command-line).

The result is that patch outputs that it fails in all three chunks of patching musca.c?

Sorry again, and thanks in advance for help (I couldn't find any other ways to run patch on the web, except adding source and dest which i also tried and didn't work either, and just to make sure I also tried with -p1 but still no luck...)

Offline

#480 2010-11-24 12:37:13

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

Re: Musca (Tiling Window Manager)

@mhertz, try this one: http://codepad.org/2rC5OxNF I also ran into the problems you describe, so I changed the stuff manually and created the patch.

Offline

#481 2010-11-24 13:45:46

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Musca (Tiling Window Manager)

I'm a newbie to patches too, I didn't know the filenames had to be the same, so you would have to use something like:
orig/musca.c
patched/musca.c

Which would get patched with -p1. I tried it out this time.

--- orig/musca.c    2010-11-24 14:39:31.729999995 +0100
+++ patched/musca.c    2010-11-24 14:41:01.725999996 +0100
@@ -400,9 +400,9 @@
 {
     Window w; int i, wc = 0;
     Window *wins = allocate(sizeof(Window) * (h->above->depth + h->fullscreen->depth + 1));
+    wins[wc++] = list[0];
     FOR_STACK (w, h->fullscreen, Window, i) wins[wc++] = w;
     FOR_STACK (w, h->above, Window, i) wins[wc++] = w;
-    wins[wc++] = list[0];
     XRaiseWindow(display, wins[0]);
     if (wc > 1) XRestackWindows(display, wins, wc);
     if (n > 1) XRestackWindows(display, list, n);
@@ -3069,6 +3069,9 @@
             || is_netwmstate(ws->state, NetWMStateFullscreen)
             || is_netwmstate(ws->state, NetWMStateHidden)
             || is_unmanaged_window(win)) ? 0:1;
+        if (is_netwmstate(ws->state, NetWMStateFullscreen)) ws->manage = 1;
+        if (is_netwmstate(ws->state, NetWMStateHidden)) ws->manage = 1;
+        if (ws->type == atoms[NetWMWindowTypeNormal]) ws->manage = 1;
         note("%s %s %s %s %s %s %x %x", ws->class, ws->name, ws->manage ? "manage": "ignore",
             ws->input ? "focus": "nofocus", ws->c ? "client": "unknown",
             ws->attr.override_redirect ? "override" : "normal", ws->state, ws->type);
@@ -3104,14 +3107,6 @@
         } else
         {
             XWindowChanges wc;
-            if (is_netwmstate(ws->state, NetWMStateFullscreen))
-            {
-                wc.x = 0; wc.y = 0;
-                wc.width = heads->screen->width;
-                wc.height = heads->screen->height;
-                wc.border_width = 0;
-                wc.sibling = Above;
-            } else
             {
                 wc.x = cr->x; wc.y = cr->y;
                 wc.width = MAX(1, cr->width);

Offline

#482 2010-11-24 18:18:09

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

Re: Musca (Tiling Window Manager)

Procyon, the problem with posting patches here is, that when you copy/paste these lines into a text file, it won't be exactly like you have it on your computer. It's better to use a pastebin!

Offline

#483 2010-11-24 18:34:26

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

Re: Musca (Tiling Window Manager)

Another question:

Procyon wrote:

I think feh still needs an anti-motif patch. trapd00r's feh has it: https://github.com/trapd00r/feh

Why do you recommend trapd00r's feh? I just tried feh from the repos and it's working totally fine with your patch for musca. It even works better here. What's the difference I don't see? What is this anti-motif patch supposed to do? I googled for it and only found this thread as a search result.

Offline

#484 2010-11-24 20:40:34

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Musca (Tiling Window Manager)

You're right, I haven't really looked into this since June / feh 1.7.

http://derf.homelinux.org/projects/feh/changelog
1.9 has "Improve support for tiling window managers"

Offline

#485 2010-11-24 23:28:05

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

Re: Musca (Tiling Window Manager)

Yes there came a bunch of updates after I reported the problems feh had after Arch's libpng update.

I have to add, musca now runs totally fine! The only thing I still don't understand is, sometimes the key to lower the volume on my multimedia keyboard doesn't work anymore. It's only that one ... Maybe I press it too frequently sometimes, that might be the problem. But everything else it totally cool, it really seems like this now resolved fullscreen bug was the reason I left musca.

Offline

#486 2010-11-26 08:24:01

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: Musca (Tiling Window Manager)

Thanks alot for your helpfullness, mates! I really appreciate it!

(Not at home now, but looking forward to try the patched musca later on...)

Offline

#487 2010-11-27 00:30:08

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: Musca (Tiling Window Manager)

Wow, i've just tried musca with Procyon's patch and it rocks! Now finaly you can cycle between windows even when one window is showing fullscreen flash content in a browser! Thank you so much again, Procyon!

I think it would be nice to have this patched musca in the aur, so if you(Procyon) or some others would submit a PKGBUILD to the aur, then I think it would be great!

Here's a quick tested mockup btw:

pkgname=musca-patched
_pkgbasename=musca
pkgver=0.9.24
pkgrel=1
pkgdesc='A simple X11 dynamic window manager with features nicked from ratpoison and dwm.'
arch=('i686' 'x86_64')
url='http://aerosuidae.net/musca/'
license=('GPL3')
depends=('libx11' 'dmenu')
source=("http://aerosuidae.net/${_pkgbasename}-${pkgver}.tgz"
        patch.diff)
md5sums=('e067a8e39b1a97d62fc8e43800edee70'
         '06be283a663e324b4703fdf47b39a460') 
build() {
  cd "${srcdir}/${_pkgbasename}-${pkgver}"
  patch < ../patch.diff || return 1
  make
}

package() {
  cd "${srcdir}/${_pkgbasename}-${pkgver}"

  install -Dm755 "${_pkgbasename}" "${pkgdir}/usr/bin/${_pkgbasename}"
  install -Dm644 "${_pkgbasename}.1" "${pkgdir}/usr/share/man/man1/${_pkgbasename}.1"
}

Procyon's patch fixed by Army direct download link: http://codepad.org/2rC5OxNF/raw.txt (rename to patch.diff)

(I have never made a PKGBUILD myself before this one, so im not confident enough in submitting one to the aur myself yet...)

Last edited by mhertz (2010-11-27 20:38:33)

Offline

#488 2010-11-29 21:05:32

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: Musca (Tiling Window Manager)

First off, i have only tryid Musca breifly but im really impressed!!

Now, everything was working for me yesterday but today i updated some packages with pacman and fooled around a bit, and now for some reason i can't explain my dualscreen setup stoped working.. everything i try to do on my second screen ends up showing on my first screen. This worked flawlessly just the other day.

I get a blue border showing up on my second screen and i can move my cursor to it. when in "drag and scale" mode (dunno what its called) i can only move a window when in my second screen (if this window was initiated on this screen) but the changes still apply to the first one.

Last edited by eldamar (2010-11-29 21:06:34)

Offline

#489 2010-11-30 09:45:06

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: Musca (Tiling Window Manager)

I just wanted to say that i've just now seen that Army has posted a comment to the musca-bzr aur maintaner, about getting Procyon's patch included, so my previous post and pkgbuild with the patched musca v0.9.24(made several days after Army's comment) is pretty redundant then!

Finally, im really happy to see that musca has been included in the official community repo! Such a great WM indeed deserves a place in the official repos and not just in the aur! Musca rocks!

Last edited by mhertz (2010-11-30 09:51:31)

Offline

#490 2010-12-08 16:01:36

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

Re: Musca (Tiling Window Manager)

Hey guys, I have a question, is it possible to tell musca to open specific programs in specific groups? If so, how? I wanted to look into the wiki, but unfortunately it's offline atm.

Offline

#491 2010-12-08 16:53:42

tum
Member
Registered: 2010-05-18
Posts: 40

Re: Musca (Tiling Window Manager)

imho , not at moment . aerosuidae wanted to add this future in musca , but he is still busy .
But you can trick with hooks or bash .
Example : http://aperturefever.wordpress.com/2009 … nd-tricks/
Musca's "hook" supports only own commands , so you need to definate alias first .

Last edited by tum (2010-12-08 16:54:57)

Offline

#492 2010-12-08 16:59:18

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

Re: Musca (Tiling Window Manager)

Ok, not such a big deal, I think I'll be able to force that behavior I want to have. Thanks for the link, thats quite interesting as well smile

Offline

#493 2010-12-14 12:33:01

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: Musca (Tiling Window Manager)

I just wanted to add that since Army's request about getting Procyon's patch included for the musca-bzr package on AUR hasen't been responded to, then I have just gotten into looking at the pacman wrapper bauerbill, which besides having aur support and speedup of downloads etc, then also features this awesome option:

--autopatch [pkgnames]
          Automatically apply patches in the  PatchDir  to    PKGBUILDs  and
          install  files  when  trusting  the  PKGBUILDs.

Sorry to those allready familiar with bauerbill and it's auto-patching options, but i just wanted to share it here for the ones like me, which didn't knew about it before...

Last edited by mhertz (2010-12-14 12:36:04)

Offline

#494 2010-12-26 08:58:58

botzoboy
Member
From: Romania/Deutschland
Registered: 2010-02-03
Posts: 90

Re: Musca (Tiling Window Manager)

I like Musca but I need a panel. I use tint2 managed off. The problem is when I play a movie in VLC tint2  is always on top even in fullscreen.
How can I get rid of this??

Offline

#495 2010-12-26 17:10:09

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: Musca (Tiling Window Manager)

I believe there is an option in the tint2 config to specify which layer it should be on. And does tint2 really need to be unmanaged by musca?

Offline

#496 2010-12-26 17:53:16

botzoboy
Member
From: Romania/Deutschland
Registered: 2010-02-03
Posts: 90

Re: Musca (Tiling Window Manager)

Thank you "hellomynameisphil"!!!
I did not know that tint2 has 'top', 'normal' and 'bottom' layers. Setting tint2 to 'normal' solved my problem.

Thanks!

Offline

#497 2010-12-27 17:54:14

windowsrefund
Member
Registered: 2010-11-13
Posts: 16

Re: Musca (Tiling Window Manager)

Now that the musca home page has been 404 for some time, I'm wondering if a mirror is out there? Does anyone have any insight into Musca's future?

Offline

#498 2010-12-27 17:55:07

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

Re: Musca (Tiling Window Manager)

http://aerosuidae.net/

The author is working on it, I believe. You can still download the source code.


Forum Rules

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

Offline

#499 2010-12-27 18:08:52

windowsrefund
Member
Registered: 2010-11-13
Posts: 16

Re: Musca (Tiling Window Manager)

right but all the docs...

Offline

#500 2010-12-27 21:27:59

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

Re: Musca (Tiling Window Manager)

Try the man pages.


Forum Rules

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

Offline

Board footer

Powered by FluxBB