xmonad

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

时光怂恿深爱的人放手 提交于 2019-12-05 03:58:18
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 then go to a different screen to do something else. But when chrome loads it loads on the screen im

How to set tight_layout for matplotlib graphs after show()

冷暖自知 提交于 2019-12-03 15:32:37
My setup: Debian Linux 8.3 amd64, XMonad WM, python2.7, matplotlib 1.5.1 Problem: I'm making a plot, for example: import matplotlib.pyplot as plt x = xrange(10) y1 = [i ** 2 for i in x] y2 = [1.0 / (i + 1) for i in x] fig = plt.figure() ax1 = plt.subplot(1, 2, 1) ax1.plot(x, y1) ax2 = plt.subplot(1, 2, 2) ax2.plot(x, y2) plt.show() and since I'm using tiling window manager, the matplotlib's window gets stretched to a tile. Unfortunately this makes the graphs small and layout somewhat loose. If I want to "tighten" it a litte bit, clicking "Configure subplots->Tight Layout" does the job. But

Finding the number of X11 screens from Haskell

浪子不回头ぞ 提交于 2019-12-01 07:42:35
问题 I'd like to know how many X screens the current machine has, to make my .xmonad a little more general; I have a netbook as well as a desktop with two monitors, and I use several single monitored machines too. To this end, I'd like to be able to find out how many X screens the current machine has. (I think screens is the correct words, I mean physical monitors). The reason being is that I want multiple instances of xmobar, one per monitor. I've hard coded it to be on two at the moment. 回答1: If

XMonad set layout depending on which monitor it's displayed

我的梦境 提交于 2019-11-30 13:53:07
问题 Is it possible to somehow make the workspace layout change depending on which physical screen I am displaying it? I want to use reflectHoriz (from XMonad.Layout.PerWorkspace) on layouts on my left monitor so that the master pane is always closest to the center of 2 screens. I tried XMonad.Layout.IndependentScreens but that just creates double monitor dependant workspaces and that's not what I'm aiming at. Ideally, I want the same workspace to have different layout set depending on the monitor

XMonad set layout depending on which monitor it's displayed

有些话、适合烂在心里 提交于 2019-11-30 08:48:42
Is it possible to somehow make the workspace layout change depending on which physical screen I am displaying it? I want to use reflectHoriz (from XMonad.Layout.PerWorkspace) on layouts on my left monitor so that the master pane is always closest to the center of 2 screens. I tried XMonad.Layout.IndependentScreens but that just creates double monitor dependant workspaces and that's not what I'm aiming at. Ideally, I want the same workspace to have different layout set depending on the monitor on which it is displayed. I think it should be possible to make a Layout wrapper (like Mirror or

Mountain Lion X11 libraries can't ./configure

六月ゝ 毕业季﹏ 提交于 2019-11-29 10:37:01
I'm trying to build xmonad in Mountain Lion to run with Xquartz 2.7.2, tutorial found here . I'm using cabal to get required X11 libraries cabal install X11-1.5.0.1 . That didn't work, so I got the tar and tried building it with ghc, same error. It won't configure: Resolving dependencies... Configuring X11-1.5.0.1... configure: WARNING: unrecognized options: --with-compiler, --with-gcc checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... no

Mountain Lion X11 libraries can't ./configure

南楼画角 提交于 2019-11-28 03:49:21
问题 I'm trying to build xmonad in Mountain Lion to run with Xquartz 2.7.2, tutorial found here . I'm using cabal to get required X11 libraries cabal install X11-1.5.0.1 . That didn't work, so I got the tar and tried building it with ghc, same error. It won't configure: Resolving dependencies... Configuring X11-1.5.0.1... configure: WARNING: unrecognized options: --with-compiler, --with-gcc checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output

XMonad spawn programs on startup in specified workspace

房东的猫 提交于 2019-11-28 02:58:52
问题 I am trying to configure my xmonad.hs so that when I start my session I start an array of different programs on different workspaces (like Terminal in 1 ; Firefox in 2 ; Pidgin in 3). I already looked into the XMonad.Actions.SpawnOn , but as spawnOn returns with an X () and not with a common m () I can not use it in main = do ... . Is there a function that takes an X -monad and returns with IO () or is there another workaround? 回答1: The common way is to use startupHook which takes X () action