Code Monkey home page Code Monkey logo

my-xmonad's People

Contributors

xkollar avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

my-xmonad's Issues

More sane defaults for manageHook

Example (do not forget to separate out desktop composition):

import XMonad.Hooks.EwmhDesktops (ewmh)
import XMonad.Hooks.ManageDocks (manageDocks)
import XMonad.Hooks.ManageHelpers (doCenterFloat)
import XMonad.ManageHook ((-->), (=?), className, doIgnore)

addDesktop = ewmh . update manageHook (myManageHook <+>)

myManageHook :: ManageHook
myManageHook = composeAll
    [ className =? "Iok"            --> doIgnore
    , className =? "Xfce4-notifyd"  --> doIgnore
    , className =? "Workrave"       --> doFloat
    , className =? "Xfrun4"         --> doFloat
    , className =? "Xmessage"       --> doCenterFloat
    , className =? "Gitk"           --> doCenterFloat
    , isFullscreen                  --> doFullFloat
    ]

Add xmms2 key bindings

Example using nyxmms2

--- {{{ Multimedia Key Bindings for XMMS2 -------------------------------------
multimediaKeyBindings :: KeyMask -> [((KeyMask, KeySym), (X ()))]
multimediaKeyBindings _ = map ((,) noModMask *** spawn)
    [ (xK_XF86AudioLowerVolume, "nyxmms2 server volume -5")
    , (xK_XF86AudioMute, "nyxmms2 server volume 0")
    , (xK_XF86AudioRaiseVolume, "nyxmms2 server volume +5")
    , (xK_XF86AudioPlay, "nyxmms2 toggle")
    , (xK_XF86AudioStop, "nyxmms2 stop")
    , (xK_XF86AudioPrev, "nyxmms2 prev")
    , (xK_XF86AudioNext, "nyxmms2 next")
    ]
--- }}} Multimedia Key Bindings for XMMS2 -------------------------------------

Binding for seek with XMMS2

Add seeking for mod-xF86XK_Audio{Prev,Next}.

myKeys :: XConfig l -> Map (KeyMask, KeySym) (X ())
myKeys c = fromList $
    [ ((mm, XF86.xF86XK_AudioPrev), seek "-10")
    , ((mm, XF86.xF86XK_AudioNext), seek "+10")
    ]
    where
    mm = modMask c
    seek t = spawn "nyxmms2" ["seek", t]

First sandboxed run has issues.

When run for the first time, appropriate parameters are not passed to ghc thus leading to failed start. Please update documentation accordingly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.