From b93166e96b9729c9571a3e79907bf32b1fe52a84 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Fri, 31 Jul 2015 16:55:31 -0400 Subject: [PATCH] More changes --- i3/config | 4 ++-- zsh/security.zsh | 3 +++ zsh/styles.zsh | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 zsh/security.zsh create mode 100644 zsh/styles.zsh diff --git a/i3/config b/i3/config index 3824c0c..43c7b50 100644 --- a/i3/config +++ b/i3/config @@ -160,8 +160,8 @@ bindsym $mod+equal exec --no-startup-id banshee --play # To initialize wallpapers, run: # export DISPLAY=:0.0;mkdir -p ~/.i3/wall;cp ~/ownCloud/wallpaper/std/* ~/.i3/wall;cd ~/.i3/wall;rename -v 's/(.* )+//' *;mogrify -resize `xrandr -q|perl -F'\s|,' -lane "/^Sc/&&print join '',@F[8..10]"`^ -verbose -gravity center -format png *;rm *.jpg;rm *.jpeg -bindsym $mod+grave exec "i3lock -di `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`" -bindsym $mod+shift+grave exec "sudo pm-suspend | i3lock -di `echo $(shuf -n1 -e ~/.i3/wall/*) | tee /tmp/wall`" +bindsym $mod+grave exec "slock" +bindsym $mod+shift+grave exec "slock" # Tees the filename to /tmp/wall for debugging # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+q restart diff --git a/zsh/security.zsh b/zsh/security.zsh new file mode 100644 index 0000000..004ac15 --- /dev/null +++ b/zsh/security.zsh @@ -0,0 +1,3 @@ +alias checkrootkits="sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --check" +alias checkvirus="clamscan --recursive=yes --infected /home" +alias updateantivirus="sudo freshclam" diff --git a/zsh/styles.zsh b/zsh/styles.zsh new file mode 100644 index 0000000..f862581 --- /dev/null +++ b/zsh/styles.zsh @@ -0,0 +1,24 @@ +ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) +#ZSH_HIGHLIGHT_STYLES[default]='none' +#ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red' +ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=yellow' +#ZSH_HIGHLIGHT_STYLES[alias]='fg=green' +#ZSH_HIGHLIGHT_STYLES[builtin]='fg=green' +#ZSH_HIGHLIGHT_STYLES[function]='fg=green' +#ZSH_HIGHLIGHT_STYLES[command]='fg=green' +#ZSH_HIGHLIGHT_STYLES[precommand]='none' +#ZSH_HIGHLIGHT_STYLES[commandseparator]='none' +#ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=green' +#ZSH_HIGHLIGHT_STYLES[path]='none' +#ZSH_HIGHLIGHT_STYLES[path_prefix]='none' +ZSH_HIGHLIGHT_STYLES[path_approx]='fg=yellow' +#ZSH_HIGHLIGHT_STYLES[globbing]='fg=green' +#ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=green' +#ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=magenta' +#ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=red' +#ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='none' +ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=yellow' +ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=yellow' +#ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=cyan' +#ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=cyan' +#ZSH_HIGHLIGHT_STYLES[assign]='none'