Note that there are some explanatory texts on larger screens.

plurals
  1. POXMonad: dmenu not launching/spawning on startup
    text
    copied!<p>New to XMonad and loving it so far. I have a fairly vanilla / regular XMonad setup and am having problems with <strong>dmenu</strong>. When I login and hit <code>mod+p</code> nothing happens. If I then open a terminal and hit <code>xmonad --restart</code> then <code>mod+p</code>, <code>dmenu</code> will be working. </p> <p>There must be something wrong with my <code>xmonad.hs</code>? I tried a no-customization setup of XMonad and things were working normally (i.e. <code>dmenu</code> was working after login). </p> <p>My questions:</p> <ol> <li>Is there something wrong with my <code>xmonad.hs</code>?</li> <li>Why won't <code>dmenu</code> work unless I <code>xmonad --restart</code> ?</li> <li>Could something fail in <code>xmonad.start</code> that would prevent dmenu from loading properly when starting xmonad?</li> </ol> <p>Here are my files (borrowed from <a href="https://github.com/overthink/dotfiles" rel="nofollow">overthink</a>). :</p> <p><strong>xmonad.hs</strong></p> <pre><code>import System.IO import XMonad import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks import XMonad.Hooks.SetWMName import XMonad.Util.EZConfig(additionalKeys) import XMonad.Util.Run(spawnPipe) import XMonad.Hooks.ICCCMFocus myWorkspaces = ["1", "2", "3", "4", "5", "6"] myManageHook = composeAll [ className =? "Gimp" --&gt; doFloat , className =? "Vncviewer" --&gt; doFloat ] main = do xmproc &lt;- spawnPipe "/usr/bin/xmobar /home/aaron/.xmobarrc" xmonad $ defaultConfig { terminal = "urxvt" } { manageHook = manageDocks &lt;+&gt; manageHook defaultConfig , startupHook = takeTopFocus &gt;&gt; setWMName "LG3D" -- fix for Java apps , layoutHook = avoidStruts $ layoutHook defaultConfig , logHook = dynamicLogWithPP xmobarPP { ppOutput = hPutStrLn xmproc , ppTitle = xmobarColor "green" "" . shorten 50 } , modMask = mod4Mask -- Rebind Mod to the Windows key , workspaces = myWorkspaces } `additionalKeys` [ ((mod4Mask .|. shiftMask, xK_l), spawn "gnome-screensaver-command --lock") ] </code></pre> <p><strong>xmonad.desktop</strong></p> <pre><code>[Desktop Entry] Encoding=UTF-8 Name=Xmonad-**** Comment=Ligthweight, pretentious tiling window manager Exec=xmonad.start Icon=xmonad.png Type=XSession </code></pre> <p><strong>xmonad.start</strong></p> <pre><code>#!/bin/bash xrdb -merge .Xresources trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype percent --width 10 --heighttype pixel --height 20 --transparent true --alpha 0 --tint 0x333333 &amp; # settings daemon is a prereq for some other gnome apps gnome-settings-daemon &amp; # Network monitor (connections, vpns) applet in tray if [ -x /usr/bin/nm-applet ] ; then nm-applet --sm-disable &amp; fi # volume indicator in tray if [ -x /usr/bin/gnome-sound-applet ] ; then gnome-sound-applet &amp; fi eval $(gnome-keyring-daemon --start) export GNOME_KEYRING_SOCKET export GNOME_KEYRING_PID #exec xmonad dbus-launch --exit-with-session xmonad </code></pre> <p>Thanks for your help!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload