Toggle Dvorak

In my ArchLinux setup with XMonad, I’ve found myself wanting to swap between QWERTY and Dvorak keyboard layouts when practicing Dvorak. While my Kinesis Advantage keyboard allows me to swap layouts at the hardware level (I’m assuming by simulating Dvorak on top of Qwerty), I also found a keyboard-agnostic way to do this. Configuring Keypress Toggle For X11, create the following configuration at /etc/X11/xorg.conf.d/00-keyboard.conf: # Read and parsed by systemd-localed.

Read More

Fix for XMonad with XMobar

When I updated XMonad late last year (2015), I noticed a bug where any application that I opened on my first workspace would cover XMobar. E.g. Opening a terminal or Vivaldi took up the entire screen. The solution I found was, conveniently, located in a post on the ArchLinux forum. Essentially, you just need to add a handleEventHook with docksEventHook and handleEventHook defaultConfig. -- My overall config that is used elsewhere myConfig = defaultConfig { manageHook = manageDocks <+> manageHook defaultConfig , layoutHook = avoidStruts $ layoutHook defaultConfig , handleEventHook = mconcat [ docksEventHook , handleEventHook defaultConfig ] , startupHook = setWMName "LG3D" , terminal = "urxvtcd" , modMask = mod1Mask , borderWidth = 1 , focusedBorderColor = "blue" }

Read More

Using blkid to get device information

Quite often, I find myself needing to remind myself of devices connected to my computer so that I know what to type for the pmount program, which is really handy to have! The program [i]blkid[/i] is capable of doing this; however, I didn’t care for the default output and found myself using this format: blkid -o list -c /dev/null What this does is tell the program to output the information in a user-friendly list of devices through ‘-o list’ and not report previous devices using ‘-c /dev/null.

Read More