xmonad

How can I have more than 9 workspaces in xmonad?

天涯浪子 提交于 2020-06-27 06:55:27
问题 I can change the names of workspaces, and presumably simply add more by changing this conststant: myWorkspaces = ["1","2","3⌂","4","5","6","7✉","8☺","9♫"] If I add something to the array, there will be more workspaces, but how do I keybind them? Mod-1 through Mod-9 are the default but I can't find documentation for how to change that default. 回答1: I found the answer buried in this example configuration and together with the key names list, it looks like the following: Defining a tenth

XMonad: start program floating based on window title

岁酱吖の 提交于 2020-01-23 21:44:26
问题 I use this truly excellent Firefox add-on: https://github.com/docwhat/itsalltext/ Hit ctrl-e to edit any textarea in Vim. However vim starts up tiled. My browser workspaces are single-window tabbed, so a fullscreen editor is overkill. Here's what I tried to make it start as a floating window: -- This works, but matches any vim instance, not just itsalltext instances: -- , className =? "Gvim" --> doFloat -- This does nothing: , fmap (isInfixOf "itsalltext") title --> doFloat xprop shows this

XMonad: start program floating based on window title

假如想象 提交于 2020-01-23 21:44:10
问题 I use this truly excellent Firefox add-on: https://github.com/docwhat/itsalltext/ Hit ctrl-e to edit any textarea in Vim. However vim starts up tiled. My browser workspaces are single-window tabbed, so a fullscreen editor is overkill. Here's what I tried to make it start as a floating window: -- This works, but matches any vim instance, not just itsalltext instances: -- , className =? "Gvim" --> doFloat -- This does nothing: , fmap (isInfixOf "itsalltext") title --> doFloat xprop shows this

Xmonad multiple submap key combos

假如想象 提交于 2020-01-04 05:40:12
问题 This answer describes how to create combo key bindings in Xmonad. With additionalKeys I add my key bindings as a list to my XConfig configuration: ... -- Does NOT work , ((myModMask, xK_a), submap . M.fromList $ [ ((0, xK_l), submap . M.fromList $ [ ((0, xK_1), spawn "xbacklight -set 10" ) ]) ]) -- Does work , ((myModMask, xK_d), submap . M.fromList $ [ ((0, xK_l), submap . M.fromList $ [ ((0, xK_2), spawn "xbacklight -set 20" ) ]) ]) -- Does work , ((myModMask, xK_a), submap . M.fromList $ [

xmonad: toggle a window between floating and tiled

痞子三分冷 提交于 2020-01-03 03:04:48
问题 Sometimes I launch a window tiled. Maybe as a scratchpad (using NamedScratchpad) or as in this question. Now I want to be able to zoom (either fullscreen or tile) this floating window, and then toggle back to the previous tiled size & position. What is a good way to accomplish that? Also, if I hit the hotkey for a scratchpad, I want it to open according to the specification in my config file --- not according to the current state (e.g. tiled). 回答1: If i understand your (zooming) question

Haskell/XMonad: What is the natural type for expressing that something must be done after a sequence of actions?

元气小坏坏 提交于 2019-12-24 07:28:40
问题 I have a sequence of X() actions during which certain buttons might be grabbed (and not released afterwards). In order to prevent buttons from ending up grabbed, I therefore have to ungrab every button at the end, for example: action1 >> action2 >> action3 >> ungrabAllButtons I wish to encode this requirement as a type, so that action1 , action2 , action3 can only be used if the buttons are ungrabbed afterwards. That is, even though action1 , action2 , are really X() actions, I would like

XMonad startup on different workspaces

匆匆过客 提交于 2019-12-24 01:24:25
问题 I want to startup some applications in different workspaces(it is important) on xmonad start. So, I wrote following startupHook : startupApps :: [String] startupApps = ["konsole", "emacs", "firefox", "gvim", "konsole"] startupSpawn :: X () startupSpawn = zipWithM_ id (map (spawnOn . show) [1..]) startupApps But, it spawns all apps in first workspace. It seems to be part of more general problem -- if I start application, it get workspace not when it actually started, but when it loaded. So, if

NixOS beginner: xmonad and haskellmode in NixOS 14.04

╄→гoц情女王★ 提交于 2019-12-23 10:02:32
问题 I'm trying so set up a NixOS VM for code development in haskell, and got into troubles with the basic installation of both xmonad and emacs. The relevant part of my /etc/nixos/configuration.nix is environment.systemPackages = with pkgs; [ emacs emacs24Packages.haskellMode xlibs.xmessage haskellPackages.haskellPlatform.ghc haskellPackages.xmobar haskellPackages.xmonad haskellPackages.xmonadContrib haskellPackages.xmonadExtras ]; xmonad: when I try to compile the code, xmonad complains that it

mate + xmonad,初步搭建

夙愿已清 提交于 2019-12-18 11:48:19
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 最近闲的,折腾了很多的de和wm组合。之前也用了很久的纯wm,i3wm后者awesome,但是都有不同的缺陷,不一一赘述。 所以想试试看把tile window manage整合到xfce或者gnome下。 然后搜了一下文档,貌似最新的gnome已经不支持替换wm了,以前是可以的。。。。。为什么?然后把xfce作为主要的搜索目标,google了半天,xfce+i3,xfce+awesome,xfce+xmonad,基本上自己hack的东西比较多。偶然翻到xmonad的wiki,尼玛,整合进mate,xfce,kde,lxde都已经支持了,挑了一个最简单的, 使用xmonad 0.12+mate 1.14,dconf-editor,xmonad-contrib 0.12,分分钟搞定。 我的桌面是两台分辨率不一样的显示器,这个比较讨厌。 其实之前用wm的时候,也是需要很多桌面的app的,但是tile window manager的全键盘操作,让我甚是舒服,所以这是我最大的整合动力。 还要看看DynamicLog怎么弄的。 附上wiki: https://wiki.haskell.org/Xmonad/Using_xmonad_in_MATE PS,我看到有人说ghc-8下面,xmonad会泄露,目前我还没有碰到。

How do I use the output of readProcess in an xmonad keybinding?

做~自己de王妃 提交于 2019-12-14 04:08:54
问题 Ok, so some time ago I was thinking of basing the effect of a keybinding in my xmonad based on the output of a script on my box. I eventually decided not to do that for unrelated reasons but I did recently try to do something similar just as an exercise in learning Haskell. So, given the function: test = readProcess "echo" ["-n", "gvim"] [] This throws up because test returns IO String and spawn expects a String. ((modm, xK_y), spawn ("xmessage " ++ test)) Ok. That's cool. I get it that IO