~andrewzah/dotfiles

ee3a2b4a3f5d6466814574c0c0def8fb72036080 — Andrew Zah 3 years ago 71239b6
update
M .zshrc => .zshrc +0 -16
@@ 8,24 8,8 @@ source ~/.dotfiles/zsh/theme.zsh

autoload -U colors && colors
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
export HISTFILE=~/sync/general/personal/.shell_history.debian-holmes

bindkey -v
bindkey -e

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
#__conda_setup="$('/home/andrew/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
#if [ $? -eq 0 ]; then
    #eval "$__conda_setup"
#else
    #if [ -f "/home/andrew/anaconda3/etc/profile.d/conda.sh" ]; then
        #. "/home/andrew/anaconda3/etc/profile.d/conda.sh"
    #else
        #export PATH="/home/andrew/anaconda3/bin:$PATH"
    #fi
#fi
#unset __conda_setup
# <<< conda initialize <<<

M config/i3/config => config/i3/config +1 -1
@@ 24,7 24,7 @@ workspace $work2 output HDMI-0

# startup applications
exec_always --no-startup-id $HOME/.config/i3/polybar.sh
exec_always feh --bg-scale ~/Sync/wallpapers/doom.png ~/Sync/wallpapers/doom.png
exec_always feh --bg-scale ~/sync/general/wallpapers/doom.png ~/sync/general/wallpapers/doom.png

## i3 Opts
default_border pixel 2

A config/nvim/.netrwhist => config/nvim/.netrwhist +3 -0
@@ 0,0 1,3 @@
let g:netrw_dirhistmax  =10
let g:netrw_dirhist_cnt =1
let g:netrw_dirhist_1='/home/andrew/work/platform/rust/chunk-rebuilder/src/handlers'

D config/polybar/config => config/polybar/config +0 -1
@@ 1,1 0,0 @@
/home/andrew/.dotfiles/config/polybar/config
\ No newline at end of file

A config/polybar/config => config/polybar/config +434 -0
@@ 0,0 1,434 @@
;==========================================================
;
;
;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
;
;
;   To learn more about how to configure Polybar
;   go to https://github.com/jaagr/polybar
;
;   The README contains alot of information
;
;==========================================================

[colors]
;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40

[bar/zah-left]
font-0 = "DejaVu Sans:style=Regular:pixelsize=10;0"
monitor = ${env:MONITOR:HDMI-0}
width = 100%
bottom = true
height = 27
radius = 6.0

tray-position = left
tray-padding = 2
wm-stack = i3

background = ${colors.background}
foreground = ${colors.foreground}

line-size = 3
line-color = #f00

border-size = 4
border-color = #00000000

padding-left = 0
padding-right = 2

module-margin-left = 1
module-margin-right = 2

modules-left = i3
modules-center = filesystem
modules-right = date

; focused = Active workspace on focused monitor
label-focused = %name%
label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-padding = ${module/bspwm.label-focused-padding}

; unfocused = Inactive workspace on any monitor
label-unfocused = %name%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}

; visible = Active workspace on unfocused monitor
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}

; urgent = Workspace with urgency hint set
label-urgent = %index%
label-urgent-background = ${module/bspwm.label-urgent-background}
label-urgent-padding = ${module/bspwm.label-urgent-padding}

; Separator in between workspaces
; label-separator = |

[bar/zah]
font-0 = "DejaVu Sans:style=Regular:pixelsize=10;0"
font-1 = "FontAwesome:pixelsize=10;0"
font-2 = siji:pixelsize=10;1
font-3 = unifont:fontformat=truetype:size=8:antialias=false;0
monitor = ${env:MONITOR:DP-2}
bottom = true
width = 100%
height = 27
radius = 6.0
fixed-center = false
wm-stack = i3

background = ${colors.background}
foreground = ${colors.foreground}

line-size = 3
line-color = #f00

border-size = 4
border-color = #00000000

padding-left = 0
padding-right = 2

module-margin-left = 1
module-margin-right = 2

modules-left = i3
modules-center =
modules-right = memory cpu temperature date

;wm-restack = bspwm
;wm-restack = i3

;override-redirect = true

;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev

;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev

cursor-click = pointer
cursor-scroll = ns-resize

[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock

format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}

label-layout =  %layout%
label-layout-underline = ${colors.secondary}

label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}

[module/filesystem]
type = internal/fs
interval = 25

mount-0 = /
mount-1 = /var
mount-2 = /home
mount-3 = /mnt/yoshi
mount-4 = /mnt/donkey-kong
mount-5 = /mnt/falcon
mount-6 = /mnt/samus

label-mounted =  %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}

format-label-underline = ${colors.secondary}

[module/bspwm]
type = internal/bspwm

label-focused = %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2

label-occupied = %index%
label-occupied-padding = 2

label-urgent = %index%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2

label-empty = %index%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2

pin-workspaces = true

; Separator in between workspaces
; label-separator = |

[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false

ws-icon-default = 

; Only show workspaces on the same output as the bar
pin-workspaces = true

label-mode-padding = 2
label-mode-foreground = #000
label-mode-background = ${colors.primary}

; focused = Active workspace on focused monitor
label-focused = %name%
label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline = #16a085 
; ${module/bspwm.label-focused-underline}
label-focused-padding = ${module/bspwm.label-focused-padding}

; unfocused = Inactive workspace on any monitor
label-unfocused = %name%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}

; visible = Active workspace on unfocused monitor
label-visible = %name%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}

; urgent = Workspace with urgency hint set
label-urgent = %name%
label-urgent-background = ${module/bspwm.label-urgent-background}
label-urgent-padding = ${module/bspwm.label-urgent-padding}

; Separator in between workspaces
; label-separator = |


[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> <icon-random>

host = /home/andrei/.config/mpd/socket

icon-prev = 
icon-stop =  
icon-play = 
icon-pause = 
icon-next = 
icon-random = 

label-song = %artist% - %album% - %title%
label-song-maxlen = 100
label-song-ellipsis = true

[module/xbacklight]
type = internal/xbacklight
output = LVDS1

format = %{A1:xbacklight -dec 10:A3:xbacklight -inc 10:} <label> <bar> %{A}
label = "BL "

bar-width = 10
bar-indicator = |
bar-indicator-foreground = #fff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}

[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight

[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "CPU "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = %{A:kitty -o allow_remote_control=yes htop -s PERCENT_CPU:}%percentage:2%%%{A}


[module/memory]
type = internal/memory
interval = 2
format-prefix = "RAM "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
label =  %{A:kitty -o allow_remote_control=yes htop -s PERCENT_MEM:}%percentage_used%% - %gb_free%%{A}

[module/eth]
type = internal/network
interface = enp0s25
interval = 3.0

format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%

format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}

[module/date]
type = internal/date
interval = 5

date = "%A, %B %e"
date-alt = "%A %B %e"

time = %H:%M
time-alt = %H:%M:%S

format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5

label = %date% | %time%

[module/pulseaudio]
type = internal/pulseaudio

format = %{A1:xbacklight -dec 10:A3:xbacklight -inc 10:} <label-volume> <bar-volume> %{A}
label-volume = VOL %percentage%%
label-volume-foreground = ${root.foreground}

label-muted = 🔇 muted
label-muted-foreground = #666

bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}

[module/alsa]
type = internal/alsa

format-volume = <label-volume> <bar-volume>
#format = %{A1:xbacklight -dec 10:A3:xbacklight -inc 10:} <label-volume> <bar-volume> %{A}
label-volume = VOL
label-volume-foreground = ${root.foreground}

format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted

bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}

[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 77

format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}

label = %temperature-c%
label-warn = %temperature-c%
label-warn-foreground = ${colors.secondary}

ramp-0 = 
ramp-1 =
ramp-2 =
ramp-foreground = ${colors.foreground-alt}

[module/powermenu]
type = custom/menu

expand-right = true

format-spacing = 1

label-open = 
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}

menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2

menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot

menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0

[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over

[global/wm]
margin-top = 5
margin-bottom = 5

; vim:ft=dosini


A pulse-audio-mods => pulse-audio-mods +4 -0
@@ 0,0 1,4 @@
# add to /etc/pulse/default.pa
load-module module-jack-source channels=2
load-module module-jack-sink channels=2
load-module module-loopback source=jack_in sink=alsa_output.usb-Schiit_Audio_Modi_Multibit-00.analog-stereo channels=2

A x-no-turnoff-time => x-no-turnoff-time +1 -0
@@ 0,0 1,1 @@
xset s off -dpms

M zsh/functions.zsh => zsh/functions.zsh +0 -15
@@ 1,10 1,3 @@
# shorthands
function run_msql() {
  docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=DereApittyI99I' \
    -p 1433:1433 --name sql1 \
    -d mcr.microsoft.com/mssql/server:2017-latest
}

# SOURCES
# https://github.com/mathiasbynens/dotfiles/blob/master/.functions
#


@@ 59,11 52,3 @@ function t() {
function tre() {
	tree -aC -I '.git|node_modules|bower_components' --dirsfirst "$@"
}

function push {
    curl -s -F "token=ahhx2yd48aomnybcx7oh2ftdtgqvra" \
    -F "user=u4y22rmhanqrcgetmiufkei4xegcdt" \
    -F "title=TEST" \
    -F "message=$1" https://api.pushover.net/1/messages.json
}


M zsh/path-exports-options.zsh => zsh/path-exports-options.zsh +16 -0
@@ 33,3 33,19 @@ export PATH="$GOROOT/bin:$GOPATH/bin:$PATH"

# Vim FZF
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --glob "!.git/*"'

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
#__conda_setup="$('/home/andrew/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
#if [ $? -eq 0 ]; then
    #eval "$__conda_setup"
#else
    #if [ -f "/home/andrew/anaconda3/etc/profile.d/conda.sh" ]; then
        #. "/home/andrew/anaconda3/etc/profile.d/conda.sh"
    #else
        #export PATH="/home/andrew/anaconda3/bin:$PATH"
    #fi
#fi
#unset __conda_setup
# <<< conda initialize <<<


M zsh/zsh-configuration.zsh => zsh/zsh-configuration.zsh +1 -1
@@ 5,7 5,7 @@ export UPDATE_ZSH_DAYS=1
# HISTORY
export HISTSIZE=10000000
export SAVEHIST=10000000
export HISTFILE=~/Sync/personal/.shell_history.debian-holmes
export HISTFILE=~/sync/general/personal/.shell_history.debian-holmes

# If you type foo, and it isn't a command, and it is a directory in your cdpath, go there
setopt AUTO_CD