From 28ea9a5565221fd724e781897d0a7fb1aa1b9522 Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 27 Jan 2015 10:06:40 +0300 Subject: [PATCH] got rid of xkb fix in rc.lua, moved it to autostart, fixed history for zsh and added autostart --- autostart | 11 +++++++++++ rc.lua | 2 -- shellrc | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 autostart diff --git a/autostart b/autostart new file mode 100755 index 0000000..55ecfcb --- /dev/null +++ b/autostart @@ -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 diff --git a/rc.lua b/rc.lua index 072f11d..4d5007d 100644 --- a/rc.lua +++ b/rc.lua @@ -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 diff --git a/shellrc b/shellrc index 9801950..9ee7eec 100644 --- a/shellrc +++ b/shellrc @@ -121,6 +121,7 @@ if is_zsh; then unsetopt BEEP NO_MATCH NOTIFY SAVEHIST=1000 + HISTSIZE=1000 HISTFILE="${HOME}/.histfile" extras=( "${HOME}/.zshrc.extras" )