xkollar / my-xmonad Goto Github PK
View Code? Open in Web Editor NEWMy xmonad (pre) configuration
License: GNU General Public License v3.0
My xmonad (pre) configuration
License: GNU General Public License v3.0
Maybe even create pull-request for xmonad?
Bind mod-x
to slock.
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
]
Use fadeInactiveCurrentWSLogHook
instead of fadeInactiveLogHook
:
import XMonad.Hooks.FadeInactive ( fadeInactiveCurrentWSLogHook )
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 -------------------------------------
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]
When run for the first time, appropriate parameters are not passed to ghc thus leading to failed start. Please update documentation accordingly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.