Skip to content

Instantly share code, notes, and snippets.

@codyhan94
codyhan94 / gist:7403935
Created November 10, 2013 21:04
Keybindings to increase and decrease volume in xmonad
, ((mod4Mask .|. controlMask, xK_j), spawn "amixer set Master 5%-")
, ((mod4Mask .|. controlMask, xK_k), spawn "amixer set Master 5%+")
trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 6 --transparent true --alpha 0 --tint 0x000000 --height 16 &
lst1 = list(str1)
lst2 = list(str2)
for char in lst1:
if char in lst2:
count += 1
lst2.remove(char)
return count