From 56842bfd172c8f0337f2c4c5e5e835e035a12c54 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Sun, 2 Dec 2018 08:53:30 -0500 Subject: [PATCH] Initial commit for Arch --- aliases/zsh_aliases | 8 ++++++-- configs/i3/config | 21 +++++++-------------- configs/i3blocks-scripts/wifi | 2 +- configs/i3blocks/i3blocks.conf | 18 ++++++++++++------ configs/neofetch/config.conf | 6 +++--- dotfiles/Xresources | 12 ++++++------ dotfiles/zshrc | 4 ++++ 7 files changed, 39 insertions(+), 32 deletions(-) diff --git a/aliases/zsh_aliases b/aliases/zsh_aliases index 21b3834..ad02f08 100644 --- a/aliases/zsh_aliases +++ b/aliases/zsh_aliases @@ -1,5 +1,8 @@ # system {{{ # -setopt extendedglob +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +setopt appendhistory autocd extendedglob nomatch notify # vim mode {{{ # bindkey -v @@ -107,6 +110,7 @@ alias vlh="alsamixer -c 2" # apt function apti() { sudo apt install $1 ; } function aptr() { sudo apt remove $1 ; } +function pac() { sudo pacman -S $1 ; } alias aptu="sudo apt upgrade" # }}} system # @@ -284,7 +288,7 @@ alias sva="f $spv_dir/src/api" alias svg="f $spv_dir/src/graphs" alias svscs="f $spv_dir/src/static/scss" alias svcss="f $spv_dir/src/spotifyvis/static/scss" -source ~/coding/spotify-lib-vis/src/api-keys.sh +# source ~/coding/spotify-lib-vis/src/api-keys.sh # source "$spv_dir""/src/api-keys.sh" function ssv() { source ../bin/activate diff --git a/configs/i3/config b/configs/i3/config index 072b589..3aa31f0 100644 --- a/configs/i3/config +++ b/configs/i3/config @@ -1,12 +1,15 @@ # startup {{{ # -set $browser "google-chrome" +set $browser "chromium" set $def_term "urxvt" # set $runelite "java -jar ~/Downloads/RuneLite.jar" set $swex "sudo ~/Downloads/swex.appimage" exec redshift -O 2000 # random bg -exec wal -i "$HOME/Pictures/Backgrounds/dim" +# exec wal -i "$HOME/Pictures/Backgrounds/dim" +exec wal -i "~/Pictures/van.png" exec imwheel +exec xmodmap ~/.Xmodmap +exec xrdb ~/.Xresources exec --no-startup-id start-pulseaudio-x11 exec --no-startup-id i3-msg 'workspace $ws2; exec $def_term' exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' @@ -275,20 +278,10 @@ bindsym control+shift+0 gaps inner all set 0;gaps outer all set 0 # finds out, if available) set $sb_font Hack NF Bold bar { - font pango:$sb_font 20 + font pango:$sb_font 27 tray_output none status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf - output HDMI-0 - wheel_up_cmd nop - wheel_down_cmd nop -} - -bar { - output $samsung - status_command i3blocks -c ~/.config/sam-i3blocks/sam-i3blocks.conf - tray_output none - font pango:$sb_font 23 - # font pango:monospace 22, FontAwesome 22 + output eDP1 wheel_up_cmd nop wheel_down_cmd nop } diff --git a/configs/i3blocks-scripts/wifi b/configs/i3blocks-scripts/wifi index 0f32f8a..ce3431c 100755 --- a/configs/i3blocks-scripts/wifi +++ b/configs/i3blocks-scripts/wifi @@ -33,7 +33,7 @@ W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}') #------------------------------------------------------------------------ -echo $QUALITY% "$W_name" # full text +# echo $QUALITY% "$W_name" # full text echo $QUALITY% # short text # color diff --git a/configs/i3blocks/i3blocks.conf b/configs/i3blocks/i3blocks.conf index 2cfb604..6c10e74 100644 --- a/configs/i3blocks/i3blocks.conf +++ b/configs/i3blocks/i3blocks.conf @@ -34,13 +34,23 @@ markup=pango # }}} Global properties # [time] +label= command=date '+%H:%M.%a-%m-%d' interval=30 color=#cccccc +[wifi] +label= +instance=wlp3s0 +interval=10 + +[battery] +label= +interval=10 + # unbold this? [load_average] -label= +label= interval=5 color=#990000 @@ -53,12 +63,8 @@ label= min_width=CPU: 100.00% color=#adeaea -# [wifi] -# label= -# instance=wlp4s0 -# interval=10 - [name] +label= color=#cc5490 interval=6000 diff --git a/configs/neofetch/config.conf b/configs/neofetch/config.conf index 6196d49..1600734 100644 --- a/configs/neofetch/config.conf +++ b/configs/neofetch/config.conf @@ -16,13 +16,13 @@ print_info() { info "Terminal Font" term_font info "WM" wm info "WM Theme" wm_theme - info "Theme" theme + # info "Theme" theme # info "Icons" icons info "CPU" cpu # info "CPU Usage" cpu_usage - info "GPU" gpu + # info "GPU" gpu info "Memory" memory - info "Resolution" resolution + # info "Resolution" resolution # info "Uptime" uptime info "Install Date" install_date info "Song" song diff --git a/dotfiles/Xresources b/dotfiles/Xresources index 4711a3f..bb4568a 100644 --- a/dotfiles/Xresources +++ b/dotfiles/Xresources @@ -1,16 +1,16 @@ -! URxvt.font: xft:hack:size=14 -URxvt.font: xft:hack:size=13 +URxvt.font: xft:Hack Nerd Font:size=17 URxvt*inheritPixmap: true +! URxvt*transparent: false URxvt*transparent: true ! URxvt*shading: 0 to 99 darkens, 101 to 200 lightens -! URxvt*shading: 30 -URxvt*shading: 25 +URxvt*shading: 30 +! URxvt*shading: 200 URxvt.scrollBar: false -/* Clickable URLs {{{ */ +! Clickable URLs {{{ */ URxvt.perl-ext-common: default,matcher URxvt.url-launcher: /usr/bin/xdg-open URxvt.matcher.button: 1 -/* }}} Clickable URLs */ +! }}} Clickable URLs */ diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 4a24e2e..4c3ce67 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -1,3 +1,5 @@ +# default {{{ # + # If you come from bash you might have to change your $PATH. # Path to your oh-my-zsh installation. @@ -96,6 +98,8 @@ export LC_MESSAGES="C" # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" +# }}} default # + # pywal export PATH="${PATH}:${HOME}/.local/bin/" (cat ~/.cache/wal/sequences &)