Steffen Schuldenzucker | 24 May 18:28 2016
Picon

Smart Decorations?

Hi!

I've been experimenting with window decorations (specifically noFrillsDeco).
Since I also have the window title in xmobar, it'd be cool to have 
decorations not shown if there is only one window, similarly to what 
'smartBorders' does for borders.

Has anyone implemented this already? What would be a good place to start?

Thanks,
Best, Steffen
Dave Macias | 13 May 15:41 2016
Picon

Re: XMonad Per Host Keybinding

That did the trick! Thank you very much Sylvain!

-Dave

On Fri, May 13, 2016 at 9:36 AM, Dave Macias <davama-Re5JQEeQqe8@public.gmane.orgm> wrote:
just saw email.
trying  "()" 
need to confirm...
will reply again in a sec

On Fri, May 13, 2016 at 9:34 AM, Dave Macias <davama-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I did try that but i remember it spit out a few errors.
This is the error:

""
xmonad.hs:455:20:
    Couldn't match type ‘[Char]’ with ‘XConfig l0’
    Expected type: XConfig l0
      Actual type: String
    In the expression: hostname
    In the first argument of ‘defaults’, namely
      ‘hostname
         {manageHook = composeAll
                         [manageDocks, manageSpawn, myManageHook, ....],
          startupHook = composeAll
                          [myStartupHook, setWMName "Xmonad", myCaseHook hostname, ....],
          logHook = composeAll
                      [myFadeHook, ewmhDesktopsLogHook, myDzenLogHook xmproc]
                    >> updatePointer (0.5, 0.5) (0, 0)}’
""

Granted line 455 is actually line 71. (in the provided gist config)
The "In the first argument of ‘defaults’, namely" output, that is line 48 if i understand it correctly.

Let me know if i need to provide more of the xmonad.hs config code. (didnt want to flood you with its many lines)

Dave

On Fri, May 13, 2016 at 9:22 AM, Sylvain Henry <sylvain-3mOQBQfmamhQFI55V6+gNQ@public.gmane.org> wrote:

On line 71, put "hostname" just after "myKeys" to make it the first parameter of the "myKeys" function and it should work (hopefully ;)). The other lines look good!

Cheers
Sylvain


On 13/05/2016 14:24, Dave Macias wrote:
Thank you for replying

I did what you suggested and through trial and error, 3/4 lines look good. 
Now line 71 gives me the same error "not in scope"

I cant seem to figure out how to add it as a parameter. (Unless i did the other 3 lines wrong)

Thanks again
Dave

On Thu, May 12, 2016 at 5:27 PM, Sylvain Henry <sylvain-3mOQBQfmamhQFI55V6+gNQ@public.gmane.org> wrote:

Hi,

Indeed "hostname" is not in scope in "myKeys". You can add a "hostname" parameter to "myKeys" and to "defaults" (lines 21, 33, 48 and 71) to pass the "hostname" you retrieve in "main" down to "myKeys"

--
Sylvain


On 12/05/2016 23:04, Dave Macias wrote:
Hello i've googled around to try to figure this out.
I feel im very close.

Im trying to add different actions to identical keybindings depending on the HOST im on. (i use my xmonad.hs file for my desktop and laptop)

Here is a snippet of what i did: (start on line 101)

I get the error "hostname not in scope".

I also have a hook which uses "hostname" and it works but cant add to keybindings.

What am i missing?

Thank you,
Dave


_______________________________________________ xmonad mailing list xmonad-HC+Z4NTRIlBAfugRpC6u6w@public.gmane.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad


_______________________________________________
xmonad mailing list
xmonad <at> haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad






<div>
<div dir="ltr">That did the trick! Thank you very much Sylvain!<div><br></div>
<div>-Dave<br>
</div>
</div>
<div class="gmail_extra">
<br><div class="gmail_quote">On Fri, May 13, 2016 at 9:36 AM, Dave Macias <span dir="ltr">&lt;<a href="mailto:davama@..." target="_blank">davama@...m</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div dir="ltr">just saw email.<div>trying &nbsp;"()"&nbsp;</div>
<div>need to confirm...</div>
<div>will reply again in a sec</div>
</div>
<div class="HOEnZb"><div class="h5">
<div class="gmail_extra">
<br><div class="gmail_quote">On Fri, May 13, 2016 at 9:34 AM, Dave Macias <span dir="ltr">&lt;<a href="mailto:davama@..." target="_blank">davama@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">
<div dir="ltr">I did try that but i remember it spit out a few errors.<div>This is the error:</div>
<div><br></div>
<div>""</div>
<div>xmonad.hs:455:20:</div>
<div>&nbsp; &nbsp; Couldn't match type &lsquo;[Char]&rsquo; with &lsquo;XConfig l0&rsquo;</div>
<div>&nbsp; &nbsp; Expected type: XConfig l0</div>
<div>&nbsp; &nbsp; &nbsp; Actual type: String</div>
<div>&nbsp; &nbsp; In the expression: hostname</div>
<div>&nbsp; &nbsp; In the first argument of &lsquo;defaults&rsquo;, namely</div>
<div>&nbsp; &nbsp; &nbsp; &lsquo;hostname</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{manageHook = composeAll</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[manageDocks, manageSpawn, myManageHook, ....],</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; startupHook = composeAll</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [myStartupHook, setWMName "Xmonad", myCaseHook hostname, ....],</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; logHook = composeAll</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [myFadeHook, ewmhDesktopsLogHook, myDzenLogHook xmproc]</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; updatePointer (0.5, 0.5) (0, 0)}&rsquo;</div>
<div>""</div>
<div><br></div>
<div>Granted line 455 is actually line 71. (in the provided gist config)</div>
<div>The "In the first argument of &lsquo;defaults&rsquo;, namely" output, that is line 48 if i understand it correctly.</div>
<div><br></div>
<div>Let me know if i need to provide more of the xmonad.hs config code. (didnt want to flood you with its many lines)</div>
<span><div><br></div>
<div>Dave</div></span>
</div>
<div><div>
<div class="gmail_extra">
<br><div class="gmail_quote">On Fri, May 13, 2016 at 9:22 AM, Sylvain Henry <span dir="ltr">&lt;<a href="mailto:sylvain <at> haskus.fr" target="_blank">sylvain@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote">

    

  <div bgcolor="#FFFFFF" text="#000000">
    <p>On line 71, put "hostname" just after "myKeys" to make it the
      first parameter of the "myKeys" function and it should work
      (hopefully ;)). The other lines look good!<br></p>
    <p>Cheers<span><br>
      Sylvain<br></span></p>
<div><div>
    <br><div>On 13/05/2016 14:24, Dave Macias wrote:<br>
</div>
    <blockquote type="cite">
      <div dir="ltr">Thank you for replying
        <div><br></div>
        <div>I did what you suggested and through trial and error, 3/4
          lines look good.&nbsp;</div>
        <div>Now line 71 gives me the same error "not in scope"</div>
        <div><br></div>
        <div>I cant seem to figure out how to add it as a parameter.
          (Unless i did the other 3 lines wrong)</div>
        <div>
          <table></table>
</div>
        <div><br></div>
        <div>Thanks again</div>
        <div>Dave</div>
      </div>
      <div class="gmail_extra">
<br><div class="gmail_quote">On Thu, May 12, 2016 at 5:27 PM,
          Sylvain Henry <span dir="ltr">&lt;<a href="mailto:sylvain <at> haskus.fr" target="_blank">sylvain@...</a>&gt;</span>
          wrote:<br><blockquote class="gmail_quote">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>Hi,</p>
              <p>Indeed "hostname" is not in scope in "myKeys". You can
                add a "hostname" parameter to "myKeys" and to "defaults"
                (lines 21, 33, 48 and 71) to pass the "hostname" you
                retrieve in "main" down to "myKeys"<br></p>
              <p>--<br>
                Sylvain<br></p>
              <div>
                <div> <br><div>On 12/05/2016 23:04, Dave Macias wrote:<br>
</div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <div dir="ltr">Hello i've googled around to try to
                      figure this out.
                      <div>I feel im very close.</div>
                      <div><br></div>
                      <div>Im trying to add different actions to
                        identical keybindings depending on the HOST im
                        on. (i use my xmonad.hs file for my desktop and
                        laptop)</div>
                      <div><br></div>
                      <div>Here is a snippet of what i did: (start on
                        line 101)</div>
                      <div>
<a href="https://gist.github.com/davama/8ec019c5ea19f1f857f37ad140abbf41" target="_blank">https://gist.github.com/davama/8ec019c5ea19f1f857f37ad140abbf41</a><br>
</div>
                      <div><br></div>
                      <div>I get the error "hostname not in scope".</div>
                      <div><br></div>
                      <div>I also have a hook which uses "hostname" and
                        it works but cant add to keybindings.</div>
                      <div><br></div>
                      <div>What am i missing?</div>
                      <div><br></div>
                      <div>Thank you,</div>
                      <div>Dave</div>
                    </div>
                    <br><br>
</div>
                </div>
                _______________________________________________
xmonad mailing list
<a href="mailto:xmonad@..." target="_blank">xmonad@...</a>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a>

              </blockquote>
              <br>
</div>
            <br>
            _______________________________________________<br>
            xmonad mailing list<br><a href="mailto:xmonad@..." target="_blank">xmonad <at> haskell.org</a><br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a><br><br>
</blockquote>
        </div>
        <br>
</div>
    </blockquote>
    <br>
</div></div>
</div>

</blockquote>
</div>
<br>
</div>
</div></div>
</blockquote>
</div>
<br>
</div>
</div></div>
</blockquote>
</div>
<br>
</div>
</div>
Dave Macias | 12 May 23:04 2016
Picon

XMonad Per Host Keybinding

Hello i've googled around to try to figure this out.
I feel im very close.

Im trying to add different actions to identical keybindings depending on the HOST im on. (i use my xmonad.hs file for my desktop and laptop)

Here is a snippet of what i did: (start on line 101)

I get the error "hostname not in scope".

I also have a hook which uses "hostname" and it works but cant add to keybindings.

What am i missing?

Thank you,
Dave
<div><div dir="ltr">Hello i've googled around to try to figure this out.<div>I feel im very close.</div>
<div><br></div>
<div>Im trying to add different actions to identical keybindings depending on the HOST im on. (i use my xmonad.hs file for my desktop and laptop)</div>
<div><br></div>
<div>Here is a snippet of what i did: (start on line 101)</div>
<div>
<a href="https://gist.github.com/davama/8ec019c5ea19f1f857f37ad140abbf41" target="_blank">https://gist.github.com/davama/8ec019c5ea19f1f857f37ad140abbf41</a><br>
</div>
<div><br></div>
<div>I get the error "hostname not in scope".</div>
<div><br></div>
<div>I also have a hook which uses "hostname" and it works but cant add to keybindings.</div>
<div><br></div>
<div>What am i missing?</div>
<div><br></div>
<div>Thank you,</div>
<div>Dave</div>
</div></div>
Chris Bell | 4 May 20:16 2016

Xmobar covered by window on startup screen

Hi all,

I've been running into an interesting problem lately. I use a very basic
xmonad/xmobar setup (system info below); not much more than the sample plus some hotkeys.
Recently, when I start xmonad (either with startx or MOD+q) xmobar is
covered by any windows, as if I did not have manageDocks in my
manageHook function. However, it only does this on the screen/desktop
that is active when xmonad is (re)started.

So, when I first start xmonad on a single-screen machine, workspace 1
(the default startup workspace) will show this issue, but none of the
other workspaces will. I can 'fix' this by changing to workspace 9
(which I rarely use), and restarting xmonad with MOD+q. Then, on
workspace 9, windows will cover xmobar, but not on 1-8. 

On multi-screen desktops, this occurs with ALL initial workspaces - on
my 4-screen desktop, on startup, windows will cover xmobar on workspaces
1-4, but not 5-9 (until I switch to 6-9 and restart xmonad).

I have been experiencing this problem for a few months now, but haven't
mentioned it because the "workaround" does the job, as long as I have
enough unused workspaces. I'd really like to figure out what I broke or
what I need to change...

System Info
OS: Arch Linux (64-bit, of course)
xmonad: v0.12
xmobar: v0.23.1

Xmonad configuration (xmonad.hs): http://pastebin.com/HWhCqYsi

Thanks!

Chris
Jeroen Budts | 23 Apr 21:54 2016
Picon
Gravatar

Floating Terminator moves 1px everytime

Hi all,

I started experimenting with xmonad as the window manager for XFCE  a
few days ago (having used the default xfwm4 for several years), so I'm
very new to xmonad, Haskell and tiling window managers in general.

I use Terminator as my terminal, but i have configured it so I can use
it 'quake-style': with xfwm4 it appears over my other windows when I
press <F12> and disappears when pressing <F12> again.

To simulate this same behavior in xmonad I configured Terminator to
always float. This works, but every time I hide and open the Terminator
window again it moves 1 pixel to the right and bottom. Initially it is
to the left edge of the screen and just below the xfce-panel, but after
using it a few times there is a 'gap' between the edge of the screen and
terminator and between xfce-panel and terminator.
I have no idea what is causing this, any help would be much appreciated :)

Here is my xmonad.hs config:

import XMonad
import XMonad.Config.Xfce
import XMonad.Layout.Spacing
import XMonad.Hooks.ManageDocks

myLayout = spacing 5 $ layoutHook xfceConfig

myManageHook = composeAll
                [ className =? "Terminator"        --> doFloat
                , className =? "Thunderbird"       --> doShift "1"
                , className =? "Firefox"           --> doShift "2"
                , className =? "Spotify"           --> doShift "9"
                , className =? "Banshee"           --> doShift "9"]

main = xmonad xfceConfig
         { modMask = mod4Mask
         , terminal = "xfce4-terminal"
         , layoutHook = myLayout
         , manageHook    = myManageHook <+> manageHook xfceConfig <+>
manageDocks -- uses default too
         , focusedBorderColor = "#2d5682"
         , borderWidth = 3
         }

Thx for any help!
Jeroen

-- 
website: http://budts.be/ - twitter:  <at> teranex
___________________________________
Registered Linux User #482240 - GetFirefox.com - ubuntu.com

Hi all,

I started experimenting with xmonad as the window manager for XFCE  a
few days ago (having used the default xfwm4 for several years), so I'm
very new to xmonad, Haskell and tiling window managers in general.

I use Terminator as my terminal, but i have configured it so I can use
it 'quake-style': with xfwm4 it appears over my other windows when I
press <F12> and disappears when pressing <F12> again.

To simulate this same behavior in xmonad I configured Terminator to
always float. This works, but every time I hide and open the Terminator
window again it moves 1 pixel to the right and bottom. Initially it is
to the left edge of the screen and just below the xfce-panel, but after
using it a few times there is a 'gap' between the edge of the screen and
terminator and between xfce-panel and terminator.
I have no idea what is causing this, any help would be much appreciated :)

Here is my xmonad.hs config:

import XMonad
import XMonad.Config.Xfce
import XMonad.Layout.Spacing
import XMonad.Hooks.ManageDocks

myLayout = spacing 5 $ layoutHook xfceConfig

myManageHook = composeAll
                [ className =? "Terminator"        --> doFloat
                , className =? "Thunderbird"       --> doShift "1"
                , className =? "Firefox"           --> doShift "2"
                , className =? "Spotify"           --> doShift "9"
                , className =? "Banshee"           --> doShift "9"]

main = xmonad xfceConfig
         { modMask = mod4Mask
         , terminal = "xfce4-terminal"
         , layoutHook = myLayout
         , manageHook    = myManageHook <+> manageHook xfceConfig <+>
manageDocks -- uses default too
         , focusedBorderColor = "#2d5682"
         , borderWidth = 3
         }

Thx for any help!
Jeroen

--

-- 
website: http://budts.be/ - twitter:  <at> teranex
___________________________________
Registered Linux User #482240 - GetFirefox.com - ubuntu.com

Jack Bates | 22 Apr 19:16 2016

Case insensitive WindowBringer

I love WindowBringer but I sometimes forget the menu items (window 
titles) are all lowercase. I type a capital letter, e.g. "Makefile" and 
get no results. Would you consider a pull request to make it case 
insensitive?
Andreas Doll | 11 Apr 16:20 2016
Picon

Mirrored keybindings with mirrored layout

Hello

I use the ResizableTall layout and configured key bindings for resizing
windows which resemble vim movements:

    ("M-S-j",   sendMessage MirrorShrink)
    ("M-S-k",   sendMessage MirrorExpand)
    ("M-S-h",   sendMessage Shrink)
    ("M-S-l",   sendMessage Expand)

Now when I use a mirrored variant of this layout, the key bindings are
mirrored as well - meaning that j/k change the window size horizontally and
h/k vertically.

Is it possible to keep the original behaviour also in the mirrored layout variant?

Best regards,
Andreas
Jakob Schöttl | 28 Mar 17:13 2016
Picon

Make floating window stick to screen

Hello,

I would like to have a floating window that keep staying on a certain 
xinerama screen rather than a certain workspace.

Is it possible to implement this? Can I create a key binding to toggle 
'stick to screen'.

In case I have to create my own event hook impl, how can I react on 
workspace switching? And how can xmonad 'remember' the sticky window(s)?

Thank you!
Regards, Jakob

--

-- 
Jakob Schöttl
E-Mail: jschoett <at> gmail.com
PGP-Key: 0x25055C7F

_______________________________________________
xmonad mailing list
xmonad <at> haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Adam Sjøgren | 10 Mar 18:36 2016
X-Face
Picon
Gravatar

kill -STOP/-CONT hack

  Hi,

Has anyone implemented this kill -STOP/-CONT hack:

 · https://blog.mister-muffin.de/2014/11/07/automatically-suspending-cpu-hungry-applications/

in XMonad?

  Best regards,

    Adam

--

-- 
 "Time is getting short; every midnight I feel 48             Adam Sjøgren
  hours older. And twice as useless."                    asjo <at> koldfront.dk

_______________________________________________
xmonad mailing list
xmonad <at> haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Jason Schulz | 6 Mar 22:05 2016
Gravatar

Re: Default Floating Window Criteria (rdesktop)

> There is also a built-in criterion: if a window declares its default size,
> minimum size, and maximum size the same (see WM_NORMAL_HINTS in xprop) then
> xmonad floats it because it cannot satisfy a fixed window size with a tile
> whose size depends on the tiling algorithm as modified by tabs, struts,
> etc. 

Thanks Brandon.  I thought that might be what's happening.  I checked with xprop
and rdesktop does set WM_NORMAL_HINTS.

Is there a simple way to sink a window through manageHook?  XMonad.ManageHook
has a doFloat, but no corresponding doSink.

-Jason
Jason Schulz | 6 Mar 02:12 2016
Gravatar

Default Floating Window Criteria (rdesktop)

I'm trying to figure out why XMonad isn't tiling rdesktop by default (and
hopefully change it).  Whenever I launch rdesktop, the window gets floated.  I'm
using the default manageHook which, looking at the source, looks like it should
only float two programs by default (MPlayer, and mplayer2).

The command I'm using to launch rdesktop is 'rdesktop -K -a 32 -x lan -g
1920x1080 $host$'.  My xmonad.hs is posted on github if anyone wants to look at
it (https://github.com/uxcn/dot-files/blob/master/.xmonad/xmonad.hs).  I'm
currently using version 0.12.

Any help is much appreciated.  Thanks in advance.

-Jason

Gmane