xmonad


How can I toggle between physical displays in a single keystroke?


The following lines bind mod-[wer] to going to displays 1, 2 and 3. Instead of this mechanism, I'd like to toggle between displays in a single keystroke, How can I do so?
Thanks.
[((m .|. modm, key), screenWorkspace sc >>= flip whenJust (windows . f))
| (key, sc) <- zip [xK_e, xK_w, xK_r] [0..]
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
Have a look at:
http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-CycleWS.html#1
Don't forget the import line import XMonad.Actions.CycleWS

Related Links

Temporary “active” border in XMonad
startupHook — ambiguous type variable
XMonad shift multiple workspaces over
Icons for indicating layouts in XMobar (XMonad)
NixOS beginner: xmonad and haskellmode in NixOS 14.04
custom key binding in xmonad without affecting other bindings
xmonad: toggle a window between floating and tiled
In XMonad, how can I always give a certain window a specific floating position?
XMonad classic alt tab
Same Xmonad.hs configuration breaks under the same version on different computers
Xmonad keybindings for thunderbird and dmenu
Rotate through layouts backward
Can i start clisp without using xterm?
How can i add email/jabber notification to xmobar status bar?
How do I prevent Xmobar from hiding behind other Xmonad windows?
xmonad: getting a list of visible workspaces

Categories

HOME
service-worker
uml
algorithm
django
spark-streaming
time-complexity
redux-form
mysql-workbench
oracle-apex-5
dojo
mips
visual-studio-emulator
hpc
odoo-8
p2p
pattern-matching
drop-down-menu
emoji
tput
favicon
qsqlquery
glyphicons
intershop
template-engine
microsoft-ocr
cgbitmapcontext
epsilon
displaytag
roundup
fractions
8051
userdefaults
volatile
anki
card.io
sendbird
slacktextviewcontroller
processwire
searchkit
bc
health-monitoring
skylink
parser-generator
glm-math
print-css
http-request
knime
cnc
dtsearch
static-cast
ngmaterial
otp
mouseleave
pybrain
offline.js
mathcad
pytables
meteor-packages
angular-ui-typeahead
cda
fink
halcon
realsense
relativelayout
google-books
toolkit
branch-and-bound
sql-server-data-tools
avahi
bcache
cross-join
packet-sniffers
uncaught-typeerror
deform
contrast
unix-socket
beaker-testing
facebook-timeline
octal
resource-management
robotlegs
zope.interface
boost-signals
jdb
multiplexing
httponly
predicatebuilder
hibernateexception
xcelsius
entitydatasource
socketserver
resharper-6.0
dot-emacs
application-verifier
interop-domino
windows-identity
sqlobject
xslcompiledtransform

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App