You are not logged in.

#51 2011-01-19 18:48:12

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,351
Website

Re: The WMFS Thread (Window Manager From Scratch)

Inxsible wrote:

yes but not every WM is capable of doing things that another WM can. you know what I mean ?

Yes. I'm fortunate in that I've yet to find a use case where it couldn't work for me: but I have only really spent significant time with automatic tilers (dwm, echinus and now WMFS). I played with i3 for a couple of days, but the one bug I found prevented me from going any further...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#52 2011-01-19 19:53:47

hellnest
Member
From: $ dmesg | grep ATA
Registered: 2010-11-11
Posts: 194
Website

Re: The WMFS Thread (Window Manager From Scratch)

I just trying WMFS yesterday, and figured out that instead using Mod4, it's better using "Super". Some command isn't working when i try to bind it using Mod4, but it's work when i change Mod4 to Super

Well i'm still diggin about this WM, and i use as alternative from xmonad ^^


roll Snapping my own life roll
hmmgithubhmm
coolMyBlogcool

Offline

#53 2011-01-19 20:16:28

sensory
Member
From: UK
Registered: 2010-05-01
Posts: 40

Re: The WMFS Thread (Window Manager From Scratch)

Does anyone know why when using this command: "conky | while read -r; do wmfs -s -name "$REPLY"; done" to pipe Conky into the statusbar, it successfully pipes the info into the status bar but also spawns a terminal window, in my case urxvt, with the same info.

What's the proper procedure for piping conky into the statusbar?

Offline

#54 2011-01-19 20:32:37

hellnest
Member
From: $ dmesg | grep ATA
Registered: 2010-11-11
Posts: 194
Website

Re: The WMFS Thread (Window Manager From Scratch)

set in ur conkyrc

out_to_console yes

roll Snapping my own life roll
hmmgithubhmm
coolMyBlogcool

Offline

#55 2011-01-19 20:34:06

sensory
Member
From: UK
Registered: 2010-05-01
Posts: 40

Re: The WMFS Thread (Window Manager From Scratch)

D'oh. Thanks!

Edit: That worked by stopping a terminal window appearing, but now conky appears on the desktop. Not a big deal since the desktop is usually covered, but it's still odd.

update_interval 3.0
out_to_console yes
double_buffer yes

TEXT
[${cpu cpu0}% @ ${freq_g}GHz] [${downspeed wlan0} ${upspeed wlan0}] [${time %B %e %H:%M}]

Graphs also don't seem to work, e.g. ${downspeedgraph wlan0 8,60 789E2D A7CC5C} but they will draw on the desktop.

Last edited by sensory (2011-01-19 23:53:55)

Offline

#56 2011-01-20 10:04:47

Erus_Iluvatar
Member
Registered: 2010-04-01
Posts: 102

Re: The WMFS Thread (Window Manager From Scratch)

@enzzzy : did you try that :

    [key] mod = { "Mod4" }            key = "i"                    func = "client_ignore_tag"                                         [/key]

@sensory : graphs wont work, WMFS don't know how to handle them,
and try to add "out_to_x no" to get conky outputting only to console.

Last edited by Erus_Iluvatar (2011-01-20 10:07:22)


I'm french, don't mind my mistakes in english.

Offline

#57 2011-01-20 19:13:00

sensory
Member
From: UK
Registered: 2010-05-01
Posts: 40

Re: The WMFS Thread (Window Manager From Scratch)

Many thanks, Erus, that did the trick. smile

I'm really liking WMFS so far. It's a nice blend of some of the more advanced tiling window managers with a very readable and well commented configuration. I've been using Subtle before WMFS, but I really missed automatic layouts and WMFS does this well.

Offline

#58 2011-01-20 23:45:14

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: The WMFS Thread (Window Manager From Scratch)

I'm trying WMFS and made a personal status bar which apparently generates a lot of zombie process that make my CPU goes to some laggie mode even if none of the process has any percentage of MEM or CPU:

tNzEzeg

My statusbar:

# -----
# Paths
# -----
ICONPATH="$HOME/.wmfsicons/status/"

# -------------
# Defining VARS
# -------------
        DATE=$(date "+%H:%M")
        SDA4=$(df -h /home | tail -1 | awk -F' ' '{print $4}')
        SDA2=$(df -h / | tail -1 | awk -F' ' '{print $3}')
        TEMP=$(cat /proc/acpi/thermal_zone/TZ01/temperature | awk '{print $2}')
        VOL=$(amixer get Master | awk '/Front\ Left:/ {print $5}' | sed -e 's/\[//g' -e 's/]//g')
        MEM=$(free -t -m | grep '^Total:' | awk '{print $3}')
        # CPU lines courtesy Procyon: https://bbs.archlinux.org/viewtopic.php?pid=661592
        CPU0=$(eval $(awk '/^cpu0 /{print "previdle=" $5 "; prevtotal=" $2+$3+$4+$5 }' /proc/stat); 
            sleep 0.4; 
            eval $(awk '/^cpu0 /{print "idle=" $5 "; total=" $2+$3+$4+$5 }' /proc/stat); 
            intervaltotal=$((total-${prevtotal:-0})); 
            echo "$((100*( (intervaltotal) - ($idle-${previdle:-0}) ) / (intervaltotal) ))")
        CPU1=$(eval $(awk '/^cpu1 /{print "previdle=" $5 "; prevtotal=" $2+$3+$4+$5 }' /proc/stat); 
            sleep 0.4; 
            eval $(awk '/^cpu1 /{print "idle=" $5 "; total=" $2+$3+$4+$5 }' /proc/stat); 
            intervaltotal=$((total-${prevtotal:-0})); 
            echo "$((100*( (intervaltotal) - ($idle-${previdle:-0}) ) / (intervaltotal) ))")

# ---------
# The print 
# ---------
wmfs -s "
        \i[896;3;0;0;$ICONPATH/temp.png]\ 
        \s[910;12;#DCDCDC;$TEMP C]\ 
        \s[933;12;#8F8F8F;|]\ 
        \i[940;3;0;0;$ICONPATH/cpu.png]\ 
        $(wmfs-status-gauge 954 2 35 3 '#df0031' 1 '#333333' $CPU0) \
        $(wmfs-status-gauge 954 8 35 3 '#df0031' 1 '#333333' $CPU1) \
        \s[996;12;#8F8F8F;|]\ 
        \i[1003;3;0;0;$ICONPATH/mem.png]\ 
        \s[1016;12;#DCDCDC;$MEM MB]\ 
        \s[1052;12;#8F8F8F;|]\ 
        \i[1060;3;0;0;$ICONPATH/hd.png]\ 
        \s[1073;12;#DCDCDC;/: $SDA2]\ 
        \s[1113;12;#DCDCDC;/home: $SDA4]\ 
        \s[1168;12;#8F8F8F;|]\ 
        \i[1177;3;0;0;$ICONPATH/spkr_01.png]\ 
        $(wmfs-status-gauge 1189 4 35 5 '#2c8cd7' 1 '#333333' $VOL) \
        \s[1230;12;#8F8F8F;|]\ 
        \s[1250;12;#DCDCDC;$DATE]\ 
        \i[1237;3;0;0;$ICONPATH/clock.png]\ 
        "

wmfsrc:

[misc]
status_timing      = 1     #seconds
status_path        = "/home/ramonoid/.wmfstatus.sh"
[/misc]

Any suggestions?

Last edited by teh (2011-01-20 23:47:01)


arst

Offline

#59 2011-01-21 01:56:42

ggarm
Member
Registered: 2010-03-13
Posts: 6

Re: The WMFS Thread (Window Manager From Scratch)

teh wrote:

Any suggestions?

Actually I'm using a modified version of your config right now...
Noticied the same before I modified the config, I changed the SDA, VOL and MEM lines:

SDA4=$(/bin/df -h /home | awk '/home/ {print $4}')
SDA2=$(/bin/df -h / | awk '/\/$/ {print $3}')
#TEMP=$(cat /proc/acpi/thermal_zone/TZ01/temperature | awk '{print $2}')
VOL=$(amixer get PCM | awk '/Front\ Left:/ {print $5}' | tr -d '[]')
MEM=$(/usr/bin/free -t -m | awk '/Total:/ {print $3}')

I remember it was something awk related, it spawned like a 100 of those.
Not sure what "fixed" it, maybe someone more knowledgeable can say...

EDIT: Actually I still have 5 zombie processes, not sure why, commented the TEMP,CPU and respective gauges but no luck so far.

Last edited by ggarm (2011-01-21 01:58:38)

Offline

#60 2011-01-21 11:34:08

Erus_Iluvatar
Member
Registered: 2010-04-01
Posts: 102

Re: The WMFS Thread (Window Manager From Scratch)

@teh : does ps/pstree give the name of faulty processes?


I'm french, don't mind my mistakes in english.

Offline

#61 2011-01-21 11:46:08

jOaNbE
Member
Registered: 2011-01-20
Posts: 20

Re: The WMFS Thread (Window Manager From Scratch)

To the devs: Thank you for creating a truly awesome wm! It is actually driving me away from i3 smile   
I found out the hard way that by creating a status.sh script that calls conky, you end up with multiple running instances of conky. To have conky started automatically at login I ended up putting this

#!/bin/bash

if [ -z $(pidof conky) ]; then           # Checks if conky is running
          conky -c $HOME/.conkyrc | while read -r; do wmfs -s -name "$REPLY"
else exit 0 
fi

in a script that is called under the /root section in wmfsrc. It works but it seems quite hackish. Does anybody have a better solution?

EDIT: Fixed code tags
EDIT2: Added praise to the devs of this beautiful wm

Last edited by jOaNbE (2011-01-21 11:59:00)

Offline

#62 2011-01-21 13:53:43

Erus_Iluvatar
Member
Registered: 2010-04-01
Posts: 102

Re: The WMFS Thread (Window Manager From Scratch)

Hum, sadly, that's what i'm doing, using

 background_command = "~/.config/wmfs/autorun.sh"

looks like the less uggly solution big_smile


I'm french, don't mind my mistakes in english.

Offline

#63 2011-01-21 14:35:54

jOaNbE
Member
Registered: 2011-01-20
Posts: 20

Re: The WMFS Thread (Window Manager From Scratch)

Erus_Iluvatar wrote:

Hum, sadly, that's what i'm doing, using

 background_command = "~/.config/wmfs/autorun.sh"

looks like the less uggly solution big_smile

Well, if you are doing the same thing, I guess the method is not discouraged smile

Offline

#64 2011-01-22 07:54:16

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: The WMFS Thread (Window Manager From Scratch)

Erus_Iluvatar wrote:

@teh : does ps/pstree give the name of faulty processes?

pstree: no
ps: yep

tNzNucg

tNzNueQ


I've been trying using sh, zsh, bash in the shebang!, not using wmfs-status-toolkit, using just the "date" function... but in the end all the weird processes remains.

And it happens only when the "status_path" line is active, so is definitely the script. It's too weird that happens even using scripts made by other people (Thanks jasonwryan and people of the wiki in WMFS site), I'm considering to use conky again... u_u

Last edited by teh (2011-01-22 07:56:28)


arst

Offline

#65 2011-01-22 20:40:50

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: The WMFS Thread (Window Manager From Scratch)

1. I'm trying out WMFS and I'm  wondering if its possible to reorder the items in the bar. Like switch the placement of the time and tray or move the layout indicator to the far right.

2. How do I change the format for the time/date?

3. Is it possible to show both the selected and non-selected windows in the bar?

Offline

#66 2011-01-23 06:12:04

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,351
Website

Re: The WMFS Thread (Window Manager From Scratch)

1. The time/date position is determined by your status script. I don't see any way to move the systray in the config - you'd probably have to hack the source.

2. Time/date are WM-independent (if I understood you correctly). man date has all the options.

3. If you mean clients in a tag, then there doesn't appear to be an option to show unselected client titles in the bar (see answer to 1.)


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#67 2011-01-23 06:30:14

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: The WMFS Thread (Window Manager From Scratch)

1 + 2. I wanted to change the time/date format thats in the WMFS bar so I guess I have to edit the status script. But I don't have a status script; does WMFS have a default one?

Offline

#68 2011-01-23 06:32:26

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,351
Website

Re: The WMFS Thread (Window Manager From Scratch)

There are a few on the wiki: http://wmfs.info/projects/wmfs/wiki/Example_of_wmfsrc

or you can use what you need from mine...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#69 2011-01-23 06:34:13

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,351
Website

Re: The WMFS Thread (Window Manager From Scratch)

@teh Have you got a recent pull, or an older version?


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#70 2011-01-23 10:33:31

bender02
Member
From: Germany
Registered: 2007-02-04
Posts: 1,328

Re: The WMFS Thread (Window Manager From Scratch)

I like this thingy!
Got one question: is it possible to disable the titlebar per-application, in the rules section? Some apps I use I use exclusively full-screen (eg browser) and the titlebar is just taking space; but for some other apps (terminals) I find it useful.
Thanks.

Offline

#71 2011-01-23 13:23:50

bacardi55
Member
Registered: 2010-03-24
Posts: 25

Re: The WMFS Thread (Window Manager From Scratch)

bender02 wrote:

I like this thingy!
Got one question: is it possible to disable the titlebar per-application, in the rules section? Some apps I use I use exclusively full-screen (eg browser) and the titlebar is just taking space; but for some other apps (terminals) I find it useful.
Thanks.

No it's not.
But you can open a feature request on the bug tracker :-)


Archlinux, wmfs and vim lover smile
dotfiles
wmfs contrib
Excuse my poor english, this ain't my mother tongue smile

Offline

#72 2011-01-23 13:49:24

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: The WMFS Thread (Window Manager From Scratch)

A few questions:

- How can i remove the borders around clients completely? Even if i set the border_height to zero, there is still a 1px border visible?

- How can i set the height of the bar? There seems to be a little padding below the text (maybe this is part of the line-height of the font? Using dejavu here), which makes the text not be vertically centered in the bar and tabs. → my mistake, i didn't have any letters with descenders in the bar

- Could you introduce a space before the Exec: label, to separate it from the layout modifier? → this is in the config

Thanks. smile

Last edited by litemotiv (2011-01-23 16:05:53)


ᶘ ᵒᴥᵒᶅ

Offline

#73 2011-01-23 16:12:35

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: The WMFS Thread (Window Manager From Scratch)

Erus_Iluvatar wrote:

@NYFinest : using conky and an uggly sed script for coloring the output, and Alm already answered for the rest, thanks to him.

Why don't you put the hex-codes straight into your conky script?


ᶘ ᵒᴥᵒᶅ

Offline

#74 2011-01-23 16:19:02

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: The WMFS Thread (Window Manager From Scratch)

Another question, I have a rule to open applications on certain tags but is it possible to also switch to that tag at the same time?

Is it possible to control if new windows open as the master or slave?

Offline

#75 2011-01-23 22:34:16

bacardi55
Member
Registered: 2010-03-24
Posts: 25

Re: The WMFS Thread (Window Manager From Scratch)

anonymous_user wrote:

Another question, I have a rule to open applications on certain tags but is it possible to also switch to that tag at the same time?

Is it possible to control if new windows open as the master or slave?

Unfortunatly, no and no. But you can make a feature request :-)

I specially like the first one (and i will look to code it :-))


@litemotiv : no, you can't remove border. Even with border=0, you will have a 1px border.


Archlinux, wmfs and vim lover smile
dotfiles
wmfs contrib
Excuse my poor english, this ain't my mother tongue smile

Offline

Board footer

Powered by FluxBB