xmonad

How to put an instance of XMobar on each screen in XMonad?

梦想与她 提交于 2019-12-11 07:55:49
问题 I'm running XMonad on a laptop that I sometimes, but not always, have an additional monitor attached. I'd like to detect the number of screens in my xmonad.hs have a instance of XMobar per screen. I've seen this question and answer, but I've not really got my head around monad transformers and how to make use of a value of type X [Rectangle] . Right now, I have, roughly, this: import XMonad import XMonad.Config.Desktop import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks import

xmonad io binding not working

北城余情 提交于 2019-12-11 07:05:20
问题 One of the key bindings in my ~/.xmonad/xmonad.hs file is this: ((modMask .|. shiftMask, xK_q), io (exitWith ExitSuccess)) So, I tried to use this pattern to make a binding that would cycle through keyboard layouts. I have cycleKLayouts :: IO () , which works perfectly when run from ghci . Then, I write: ((modMask, xK_minus), io cycleKLayouts) This compiles fine, but when I try the key, the only thing that happens is that the current terminal and the one the mouse is under (both Terminology)

XMonad: Is there a way to bind a simultaneously triggered keychord?

牧云@^-^@ 提交于 2019-12-11 02:40:39
问题 Is there a way to make simultaneous key presses into a keybinding, e.g. for the keys w , e , f , when pressed within 0.05 seconds of each other, to trigger a command? To be more specific: If w , e , f are pressed within 0.05 seconds of each other, then upon the pressing of the last one, XMonad should trigger said command. XMonad should also have intercepted the three keys so that they are not superfluously sent to the focused window. Otherwise (if at least one of them are not pressed within

XMonad: dmenu not launching/spawning on startup

被刻印的时光 ゝ 提交于 2019-12-10 04:22:27
问题 New to XMonad and loving it so far. I have a fairly vanilla / regular XMonad setup and am having problems with dmenu . When I login and hit mod+p nothing happens. If I then open a terminal and hit xmonad --restart then mod+p , dmenu will be working. There must be something wrong with my xmonad.hs ? I tried a no-customization setup of XMonad and things were working normally (i.e. dmenu was working after login). My questions: Is there something wrong with my xmonad.hs ? Why won't dmenu work

XMonad: SpawnOn workspace that had focus when spawn key was pressed

和自甴很熟 提交于 2019-12-10 02:56:30
问题 I would like to have my programs spawn on the screen that was in focus when its keybinding was pressed not on the screen thats currently in focus when it finishes loading. Why: My current setup is Arch Linux + XMonad and I have it running on 6 monitors. I have been using XMonad for about a year now and my only issue with it is for programs that take a little while to open. For example the very first time I start chromium it takes 3 odd seconds to load. I press my key binding for chrome and

How can I set an action to occur on a key release in xmonad?

ぃ、小莉子 提交于 2019-12-09 12:02:39
问题 How can I set an action to occur on a key release in xmonad? I don't like menu bars and panels. Instead of a panel like xmobar I want to have a full screen page of info, (time, currently selected window and workspace etc) appear when I hold down a key combo and then vanish when I let the keys go. I could code the info page application myself. I can set the info page to spawn on a key press. I can not set anything to happen on a key release. How can I set an action to occur on a key release? I

Switching workspaces in xmonad using programmer dvorak keyboard layout (shifted numbers)

此生再无相见时 提交于 2019-12-08 17:09:22
问题 Well, I am not using Dvorak actually but Neo2, but as I am using a matrix type keyboard (Truly Ergonomic) I have also shifted the numbers. Therefore this construction in my xmonad.hs does not work ergonomically: -- mod-[1..9], Switch to workspace N -- mod-shift-[1..9], Move client to workspace N -- [((m .|. modMask, k), windows $ f i) | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9] , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)] I want to change that, to be able to access the

Xmonad can't find module XMonad (or any other)

二次信任 提交于 2019-12-06 05:07:02
问题 Whenever xmonad starts, restarts, or is recompiled, I get an xmessage: xmonad.hs:1:8: Could not find module `XMonad' Perhaps you meant Monad (needs flag -package haskell98-2.0.0.2) CgMonad (needs flag -package ghc-7.6.3) DsMonad (needs flag -package ghc-7.6.3) Use -v to see a list of the files searched for This doesn't stop it from starting, but I only see updates to xmonad or xmobar settings on system reboot. My current xmonad.hs is just import XMonad main = xmonad defaultConfig and it still

Remove border from fullscreen floating windows only (XMonad configuration)

北慕城南 提交于 2019-12-05 15:57:07
问题 I would like to remove borders (only) from floating windows covering the full screen (like mplayer), and use a different border color (normalBorderColor) when there is only one window in a workspace. Currently, I am using smartBorders from XMonad.Layout.NoBorders to remove the border from mplayer, and to remove the border of a window when that window is the only window in a workspace. However, when I switch between two workspaces which both have a single non-floating window (regardless of

XMonad: dmenu not launching/spawning on startup

核能气质少年 提交于 2019-12-05 06:51:26
New to XMonad and loving it so far. I have a fairly vanilla / regular XMonad setup and am having problems with dmenu . When I login and hit mod+p nothing happens. If I then open a terminal and hit xmonad --restart then mod+p , dmenu will be working. There must be something wrong with my xmonad.hs ? I tried a no-customization setup of XMonad and things were working normally (i.e. dmenu was working after login). My questions: Is there something wrong with my xmonad.hs ? Why won't dmenu work unless I xmonad --restart ? Could something fail in xmonad.start that would prevent dmenu from loading