summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbrowser2
-rwxr-xr-xlayout-switch7
-rwxr-xr-xopen-in-browser4
-rwxr-xr-xsync-mail15
-rwxr-xr-xupgrade-gentoo2
5 files changed, 12 insertions, 18 deletions
diff --git a/browser b/browser
index 57304fb..5f595ef 100755
--- a/browser
+++ b/browser
@@ -43,7 +43,7 @@ case "$1" in
open -g -j -a "Firefox" "$1.html"
;;
*)
- open -g -j -a "Firefox" "$1"
+ open -g -j -a "Zen" "$1"
;;
esac
return 0
diff --git a/layout-switch b/layout-switch
index 256eeb2..a25676f 100755
--- a/layout-switch
+++ b/layout-switch
@@ -1,21 +1,16 @@
#!/bin/zsh -x
CUR_US=$(setxkbmap -print | grep xkb_symbols | grep -o "+us+")
-CUR_RU=$(setxkbmap -print | grep xkb_symbols | grep -o "+ru+")
CUR_DE=$(setxkbmap -print | grep xkb_symbols | grep -o "+de+")
-# us > de > ru
+# us <> de
if [[ $CUR_US == "+us+" ]]; then
setxkbmap de
ratpoison -c "echo keyboard map DE"
elif [[ $CUR_DE == "+de+" ]]; then
- setxkbmap ru
- ratpoison -c "echo keyboard map RU"
-elif [[ $CUR_RU == "+ru+" ]]; then
setxkbmap us
ratpoison -c "echo keyboard map US"
fi
setxkbmap -option
xmodmap ~/.Xmodmap
-
diff --git a/open-in-browser b/open-in-browser
index bb30c64..8c92e3c 100755
--- a/open-in-browser
+++ b/open-in-browser
@@ -2,9 +2,9 @@
if [[ $(uname) == "Darwin" ]]; then
if [[ $1 == http://* || $1 == https://* ]]; then
- osascript -e "tell application \"Firefox\" to open location \"$1\""
+ osascript -e "tell application \"Zen\" to open location \"$1\""
else
- open -a Firefox $1
+ open -a Zen $1
fi
else
firefox "$1" &>/dev/null &
diff --git a/sync-mail b/sync-mail
index d414bdd..37126e8 100755
--- a/sync-mail
+++ b/sync-mail
@@ -9,18 +9,15 @@ fi
case `date +"%a"` in
Sat|Sun)
- #$(which imapfilter) -c $HOME/.imapfilter/primary.lua 2>/dev/null
- $(which mbsync) -q primary
+ $(which mbsync) -q primary
;;
*)
- #$(which imapfilter) -c $HOME/.imapfilter/primary.lua 2>/dev/null
- $(which mbsync) -q primary
- #$(which imapfilter) -c $HOME/.imapfilter/secondary.lua 2>/dev/null
- #$(which mbsync) -q secondary
+ $(which mbsync) -q primary
+ #$(which mbsync) -q secondary
;;
esac
-new="$(find $HOME/.mail/primary/inbox/new/ -type f | wc -l)"
+new="$(find $HOME/.mail/primary/Inbox/new/ -type f | wc -l)"
if [ $new -gt 0 ]
then
@@ -31,7 +28,7 @@ then
/usr/bin/notify-send "You got mail ($new)."
fi
if [[ $(uname) == "Darwin" ]]; then
- #osascript -e "display notification \"$new new mails.\" with title \"You got mail.\""
- /Users/pks/.local/bin/terminal-notifier -title "You have ✉" -message "$new new mails" -sender ID sync-mail -appIcon /System/Applications/Mail.app/Contents/Resources/ApplicationIcon.icns
+ osascript -e "display notification \"$new new mails.\" with title \"You got mail.\""
+ $HOME/.local/bin/terminal-notifier -title "You have ✉" -message "$new new mails" -sender ID sync-mail -appIcon /System/Applications/Mail.app/Contents/Resources/ApplicationIcon.icns
fi
fi
diff --git a/upgrade-gentoo b/upgrade-gentoo
index 4e1e65d..419abb6 100755
--- a/upgrade-gentoo
+++ b/upgrade-gentoo
@@ -4,6 +4,7 @@ source $(dirname $0)/func.zsh
check_root
+mount /boot
unset LD_LIBRARY_PATH # for glibc
env-update
@@ -22,4 +23,5 @@ emerge -av --depclean
perl-cleaner --reallyall
revdep-rebuild
emerge @preserved-rebuild
+emerge -1 nvidia-drivers
eclean -d distfiles