Skip to content

Instantly share code, notes, and snippets.

myKeys = [ ...
-- Mod+ to control MPlayer
, ("M-<XF86AudioPlay>", mPlay "pause" ) -- play/pause mplayer
, ("M-<XF86AudioStop>", mPlay "stop" ) -- stop mplayer
, ("M-<XF86AudioPrev>", mPlay "seek -10") -- seek back 10 seconds
, ("M-<XF86AudioNext>", mPlay "seek 10" ) -- seek forward 10 seconds
, ...
]
statusbar = {
# <snip>
default = {
window = {
# disable the default bar containing window list
disabled = "yes";
-- imports
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Layout.IM
import XMonad.Layout.PerWorkspace
import qualified XMonad.StackSet as W
-- main
main = xmonad $ defaultConfig
{ terminal = myTerminal
-- Layouts
myLayout = avoidStruts $ onWorkspace "3-im" imLayout $ standardLayouts
where
-- define the list of standardLayouts
standardLayouts = Tall ||| Wide ||| Full
-- notice withIM is acting on it
imLayout = withIM (1/10) (Role "roster") (standardLayouts)
-- Manage hook
myManageHook = composeAll
[ -- whatever you might already have
, ...
, className =? "Gajim.py" --> doShift "3-chat" -- move all IM windows to IM workspace
, classNotRole ("Gajim.py", "roster") --> doFloat -- and float everything but the roster
, ...
]
where
# adjust this line to skip any persistent drives
# i.e. KERNEL!="sd[d-z][0-9]", ...
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
# Global mount options
ACTION=="add", ENV{mount_options}="relatime,users"
# Filesystem specific options
ACTION=="add", PROGRAM=="/lib/initcpio/udev/vol_id -t %N", RESULT=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
ACTION=="add", PROGRAM=="/lib/initcpio/udev/vol_id --label %N", ENV{dir_name}="%c"
# adjust this line to skip any persistent drives
# i.e. KERNEL!="sd[d-z][0-9]", ...
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
# Global mount options
ACTION=="add", ENV{mount_options}="relatime,users"
# Filesystem specific options
ACTION=="add", PROGRAM=="/lib/initcpio/udev/vol_id -t %N", RESULT=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
ACTION=="add", PROGRAM=="/lib/initcpio/udev/vol_id --label %N", ENV{dir_name}="%c"
[general]
# NOTE: cronjob calls the quiet UI with -u
ui = TTY.TTYUI
accounts = GMail,GMX
[Account GMail]
localrepository = Gmail-Local
remoterepository = Gmail-Remote
[Account GMX]
#!/bin/sh
PID=`pgrep offlineimap`
[[ -n "$PID" ]] && exit 1
offlineimap -o -u Noninteractive.Quiet &>/dev/null &
exit 0
# msmtp config file
account gmail
host smtp.gmail.com
port 587
protocol smtp
auth on
from username@gmail.com
user username@gmail.com
password gmailpassword