summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/.zprofile5
-rw-r--r--home/.zshrc25
2 files changed, 23 insertions, 7 deletions
diff --git a/home/.zprofile b/home/.zprofile
index ea8612c..59a537a 100644
--- a/home/.zprofile
+++ b/home/.zprofile
@@ -1,16 +1,17 @@
main_node() { [[ "$HOSTNAME" == "anduin" ]] }
export XDG_CURRENT_DESKTOP=kde
+export GNOME_KEYRING_CONTROL=/run/user/1000/keyring
export LANG='en_US.UTF-8'
if [[ -x /usr/bin/locale ]]; then
local mylocale
mylocale=`/usr/bin/locale -a`
if [[ $mylocale =~ "de_AT.utf8" ]]; then
- export LC_TIME='de_AT.UTF-8'
+ #export LC_TIME='de_AT.UTF-8'
export LC_MONETARY='de_AT.UTF-8'
elif [[ $mylocale =~ "de_DE.utf8" ]]; then
- export LC_TIME='de_DE.UTF-8'
+ #export LC_TIME='de_DE.UTF-8'
export LC_MONETARY='de_DE.UTF-8'
fi
fi
diff --git a/home/.zshrc b/home/.zshrc
index 21d1ba5..a88f611 100644
--- a/home/.zshrc
+++ b/home/.zshrc
@@ -7,10 +7,10 @@ export ZSH="${HOME}/.oh-my-zsh"
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
-#ZSH_THEME="afowler"
+ZSH_THEME="afowler"
#ZSH_THEME="agnoster"
#ZSH_THEME="bira"
-ZSH_THEME="obraun"
+#ZSH_THEME="obraun"
# Set list of themes to load
# Setting this variable when ZSH_THEME=random
@@ -169,6 +169,8 @@ if main_node; then
export BATTERY=1
export XDG_CURRENT_DESKTOP=kde
export CVS_RSH="ssh"
+
+ export GPG_TTY=$(tty)
else
export BROWSER="links"
export BATTERY=0
@@ -228,9 +230,21 @@ if main_node; then
# [[ -z "$DISPLAY" ]] && $SUDO loadkeys us &>/dev/null || setxkbmap us &>/dev/null
# echo 'Done'
#}
+ pdfpc() {
+ # disable dunst (notifications) and redshift (color tinting)
+ dunst_state=$(systemctl is-active --user dunst.service)
+ redshift_state=$(systemctl is-active --user redshift.service)
+ systemctl stop --user dunst.service
+ systemctl stop --user redshift.service
+ # show pdfs
+ /usr/bin/pdfpc $*
+ # restart services if they were enabled beforehand
+ [ "${dunst_state}" = "active" ] && systemctl start --user dunst.service
+ [ "${redshift_state}" = "active" ] && systemctl start --user redshift.service
+ }
fi
-mping(){ ping $@|awk -F'[=\ ]' '/time=/{t=$(NF-1);f=2000-14*log(t^18);c="play -q -n synth 1 pl "f"&";print $0;system(c)}';} # mping yahoo\.com
+mping(){ ping $@|awk -F'[= ]' '/time=/{t=$(NF-1);f=2000-14*log(t^18);c="play -q -n synth 1 pl "f"&";print $0;system(c)}';} # mping yahoo\.com
bat(){
BAT0="/sys/class/power_supply/BAT0";
BAT1="/sys/class/power_supply/BAT1";
@@ -262,10 +276,11 @@ bat(){
# /bin/rm -r ${TMPDIR}
#}
-[[ ! -z "$DISPLAY" ]] && [ -n "$WINDOWID" ] && exec_exists transset-df && transset-df -i $WINDOWID 0.9 >/dev/null || true
+# urxvt can handle transparency in .XDefaults
+#[[ ! -z "$DISPLAY" ]] && [ -n "$WINDOWID" ] && exec_exists transset-df && transset-df -i $WINDOWID 0.85 >/dev/null || true
# twitter.com/climagic
-todo(){ cd ~/.todo||return 1&& l=$(ls -1t|head -n1)&&t=$(date +%Y%m%d);[[ "$1" == "last" ]]&&cp $l $t; vim $t;cd -;}
+#todo(){ cd ~/.todo||return 1&& l=$(ls -1t|head -n1)&&t=$(date +%Y%m%d);[[ "$1" == "last" ]]&&cp $l $t; vim $t;cd -;}
# open file at position
funcation vim() {