...
 
Commits (4)
......@@ -6,8 +6,8 @@ xsetroot -cursor_name left_ptr
# Load X resources:
xrdb $XDG_CONFIG_HOME/X11/Xresources
# set keymap + swap escape and caps lock
setxkbmap -layout ch -variant fr -option caps:swapescape
# set keymap + set caps lock to escape + caps lock when pressing both shift keys
setxkbmap -layout ch -variant fr -option caps:escape -option shift:both_capslock
# Set the wallpaper:
nitrogen --restore
......
......@@ -17,4 +17,4 @@
tool = vimdiff
[user]
name = Timothée Floure
email = timothee.floure@epfl.ch
email = timothee.floure@fnux.ch
......@@ -5,11 +5,11 @@ Config {
font = "xft:Deja Vu Sans Mono:pixelsize=11"
, bgColor = "black"
, fgColor = "grey"
, position = Static { xpos = 0, ypos = 0, width = 1919, height = 23 }
-- , position = Static { xpos = 0, ypos = 0, width = 1919, height = 23 }
, alpha = 150
-- general behavior
, hideOnStart = False
, allDesktops = True
, allDesktops = False
, overrideRedirect = True
, pickBroadest = True
, persistent = True
......
......@@ -58,13 +58,13 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
((modm, xK_Return ), spawn $ XMonad.terminal conf) -- Launch term
, ((modm, xK_d ), spawn myMenu) -- Launch menu
, ((modm, xK_e ), spawn myPassMenu) -- Launch passwords menu
, ((mod1Mask, xK_section ), spawn myLock) -- Lock screen
, ((modm .|. shiftMask, xK_s ), spawn myLock) -- Lock screen
, ((modm, xK_c ), kill) -- Close focused window
, ((modm .|. shiftMask, xK_Delete ), io (exitWith ExitSuccess)) -- Quit xmonad
, ((mod1Mask .|. shiftMask, xK_r ), spawn "xmonad --recompile; xmonad --restart") -- Restart xmonad
-- Misc
, ((modm, xK_section ), namedScratchpadAction myScratchpads "main") -- Scratchpad
, ((modm, xK_section ), namedScratchpadAction myScratchpads "tmux-scratchpad") -- Scratchpad
, ((modm, xK_r ), gotoMenu) -- Window switcher (goto)
, ((modm .|. shiftMask, xK_r ), bringMenu) -- Window switcher (bring)
......@@ -94,15 +94,15 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
-- resizing
, ((modm, xK_h ), sendMessage Shrink)
, ((modm, xK_l ), sendMessage Expand)
, ((modm .|. shiftMask, xK_j ), sendMessage MirrorShrink)
, ((modm .|. shiftMask, xK_k ), sendMessage MirrorExpand)
, ((modm .|. shiftMask, xK_Up ), sendMessage MirrorShrink)
, ((modm .|. shiftMask, xK_Down ), sendMessage MirrorExpand)
, ((modm, xK_n ), refresh) -- Resize viewed windows to the correct size
]
++
-- Function keys
[
((0, xK_XF86Display), spawn "arandr")
, ((0, xK_XF86Tools), spawn "setxkbmap -layout ch -variant fr -option caps:swapescape")
, ((0, xK_XF86Tools), spawn "setxkbmap -layout ch -variant fr -option caps:escape -option shift:both_capslock")
]
++
-- mod-[1..9] %! Switch to workspace N
......@@ -160,7 +160,7 @@ myLayout = avoidStruts $ mkToggle (single NBFULL) (tiled ||| Mirror tiled ||| r
---- Scratchpads ----
myScratchpads = [
NS "main" "urxvt -e tmux -2" (title =? "tmux") (customFloating $ W.RationalRect (1/6) (1/6) (2/3) (2/3))
NS "tmux-scratchpad" "urxvt -e tmux-scratchpad" (title =? "tmux-scratchpad") (customFloating $ W.RationalRect (1/6) (1/6) (2/3) (2/3))
] where role = stringProperty "WM_WINDOW_ROLE"
---- ManageHook ----
......
......@@ -5,7 +5,6 @@ export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
###
# Elixir, Erlang
#
if [[ -f $XDG_DATA_HOME/kerl/erlang/activate ]]; then
. $XDG_DATA_HOME/kerl/erlang/activate
......@@ -15,6 +14,11 @@ if [[ -f $XDG_DATA_HOME/kiex/elixirs/.default ]]; then
source $XDG_DATA_HOME/kiex/elixirs/.default
fi
###
# Ruby
export GEM_PATH="$XDG_DATA_HOME/gem:/usr/share:/usr/local/share/gems"
###
# PATH
......@@ -36,6 +40,7 @@ add_to_path() {
add_to_path "$HOME/.local/bin"
add_to_path "$HOME/.local/opt/desktop-utilities/bin"
add_to_path "$HOME/.cargo/bin"
add_to_path "$XDG_DATA_HOME/gem/bin"
unset -f add_to_path
export PATH
......@@ -34,3 +34,5 @@ HEX_HOME DEFAULT="${XDG_DATA_HOME}/hex"
TASKDATA DEFAULT="${XDG_DATA_HOME}/task"
TASKRC DEFAULT="${XDG_CONFIG_HOME}/task/taskrc"
KERL_BASE_DIR DEFAULT="${XDG_DATA_HOME}/kerl"
GEMRC DEFAULT="${XDG_CONFIG_HOME}/gemrc"
GEM_HOME DEFAULT="${XDG_DATA_HOME}/gem"