1
0
Fork 0

got rid of xkb fix in rc.lua, moved it to autostart, fixed history for zsh and added autostart

This commit is contained in:
Von Random 2015-01-27 10:06:40 +03:00
parent c60c920622
commit 28ea9a5565
3 changed files with 12 additions and 2 deletions

11
autostart Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
xkbcomp $DISPLAY - | egrep -v "group . = AltGr;" | xkbcomp - $DISPLAY
if [[ -z $(pgrep nm-applet) ]]; then
nm-applet 2>&1 >/dev/null &
fi
if [[ -z $(pgrep roccateventhandler) ]]; then
roccateventhandler 2>&1 >/dev/null &
fi
#if [[ -z $(pgrep jackd) ]]; then
# /usr/bin/jackd -R -dalsa -dhw:CODEC -r44100 -p256 -n3 &
#fi

2
rc.lua
View file

@ -662,8 +662,6 @@ client.connect_signal('unfocus', function(c) c.border_color = beautiful.border_n
-- {{{ Autostart
-- don't forget you sync this file
-- this shit runs every time you restart your wm, dumbass.
---- apply the workaround to make mouse work outside en-us keyboard layout
awful.util.spawn_with_shell('xkbcomp $DISPLAY - | egrep -v "group . = AltGr;" | xkbcomp - $DISPLAY')
---- set keyboard layouts
awful.util.spawn_with_shell('setxkbmap -layout us,ru -variant altgr-intl,typewriter -option ctrl:nocaps,grp:win_space_toggle,compose:menu,grp_led:scroll')
---- populate xrdb with .Xresources config

View file

@ -121,6 +121,7 @@ if is_zsh; then
unsetopt BEEP NO_MATCH NOTIFY
SAVEHIST=1000
HISTSIZE=1000
HISTFILE="${HOME}/.histfile"
extras=( "${HOME}/.zshrc.extras" )