1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 15:01:59 +01:00

conky and zshrc update

This commit is contained in:
eoli3n 2016-10-27 10:48:53 +02:00
parent badf898ce4
commit 8040194a4f
6 changed files with 72 additions and 38 deletions

@ -6,7 +6,7 @@
set $mod Mod4
# fonts
font pango: hack, Icons 10
font pango: hack, Awesome 10
# resolv i3 transparancy bug
new_window pixel
@ -101,7 +101,7 @@ exec --no-startup-id i3-msg 'workspace $tag1; exec firefox'
exec --no-startup-id i3-msg 'workspace $tag2; exec urxvtc -e ~/dev/bash/sshaddmotd/motdprint.sh && urxvtc; workspace $tag1'
exec --no-startup-id i3-msg 'workspace $tag3; exec thunderbird; workspace $tag1'
exec --no-startup-id i3-msg 'workspace $tag4; exec urxvtc -e screen -rd weechat; workspace $tag1'
exec --no-startup-id i3-msg 'workspace $tag5; exec google-chrome-stable --app=http://127.0.0.1/ompd; workspace $tag2'
exec --no-startup-id i3-msg 'workspace $tag5; exec google-chrome-stable --app=http://127.0.0.1/OMPD; workspace $tag2'
#colors
# class border backgr. text indicator child_border

@ -39,6 +39,19 @@ TEXT
[
#backup disk
${if_match ${execi 60 df -h | grep sdb1 | wc -l} == 1 }\
${if_match ${execi 60 df -h | grep sdb1 | awk '{print $5}' | cut -d"%" -f1} >= 95 }\
{"full_text":" ${execi 60 df -h | grep sdb1 | awk '{print $5}'}","color":"\#dc322f","separator":false,"separator_block_width":10, "min_width": 65, "align": "left"}\
${else}
${if_match ${execi 60 df -h | grep sdb1 | awk '{print $5}' | cut -d"%" -f1} >= 90 }\
{"full_text":" ${execi 60 df -h | grep sdb1 | awk '{print $5}'}","color":"\#F15D25","separator":false,"separator_block_width":10, "min_width": 65, "align": "left"}\
${else}
{"full_text":" ${execi 60 df -h | grep sdb1 | awk '{print $5}'}","color":"\#268bd2","separator":false,"separator_block_width":10, "min_width": 65, "align": "left"},\
$endif
$endif
$endif
#ADD DYNAMIC INTERFACE

@ -42,40 +42,47 @@ TEXT
#IF INTERNET CONNECTED PART
${if_match "${execi 120 ping -q -w 2 -c 1 176.34.135.167 > /dev/null && echo ok}"=="ok"}
# TEST UPGRADES
${if_match "${execi 300 (checkupdates;cower -u;pip list --outdated --timeout 1 --retries 1) | wc -l }"!="0"}\
#LOGO
{"full_text":"[","color":"\#dc322f","separator":false,"separator_block_width":3},\
#PACMAN
${if_match "${execi 200 checkupdates | wc -l}"!="0"}\
{"full_text":" ${execi 200 checkupdates | wc -l}","color":"\#dc322f","separator":false,"separator_block_width":6},\
#SEPARATOR
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6},\
${if_match "${execi 300 checkupdates | wc -l }"!="0"}\
{"full_text":"pac${execi 200 checkupdates | wc -l}","color":"\#dc322f","separator":false,"separator_block_width":2},\
$endif
#AUR
${if_match "${execi 1900 cower -u | wc -l}"!="0"}\
{"full_text":" ${execi 1900 cower -u | wc -l}","color":"\#F15D25","separator":false,"separator_block_width":0},\
#SEPARATOR
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
${if_match "${execi 300 cower -u | wc -l }"!="0"}\
{"full_text":"aur${execi 1900 cower -u | wc -l}","color":"\#F15D25","separator":false,"separator_block_width":2},\
$endif
#PIP
${if_match "${execi 1900 pip list --outdated --timeout 1 --retries 1 | wc -l}"!="0"}\
{"full_text":" ${execi 1900 pip list --outdated --timeout 1 --retries 1| wc -l}","color":"\#E7AD00","separator":false,"separator_block_width":0},\
#SEPARATOR
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
${if_match "${execi 300 pip list --outdated --timeout 1 --retries 1 | wc -l }"!="0"}\
{"full_text":"pip${execi 1900 pip list --outdated --timeout 1 --retries 1| wc -l}","color":"\#E7AD00","separator":false,"separator_block_width":2},\
$endif
{"full_text":"]","color":"\#dc322f","separator":false,"separator_block_width":3},\
$endif
$endif
#SEPARATOR
{"full_text":" ","separator":false,"separator_block_width":15},\
#VOLUME
${if_match "${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}" == "" }\
{"full_text":" ","color":"\#dc322f","separator":false,"separator_block_width":6},\
${else}
${if_match ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1} >= 75 }\
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
${else}
${if_match ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1} >= 50 }\
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
${else}
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":" ${exec amixer get 'Master' | grep '\[on\]' | grep Left | cut -d"[" -f2 | cut -d"%" -f1}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
$endif
$endif
$endif
@ -131,42 +138,42 @@ $endif
#BATTERY
${if_match "${exec cat /sys/class/power_supply/BAT0/status}" == "Charging" }\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":"${battery_percent BAT0}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
${else}
${if_match "${exec cat /sys/class/power_supply/BAT0/status}" == "Full" }\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":"${battery_percent BAT0}%","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
${else}
${if_match ${battery_percent BAT0} >= 80}\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":"${battery_percent BAT0}%","color":"\#2aa198","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":"${battery_time BAT0}","color":"\#2aa198","separator":false,"separator_block_width":6},\
${else}
${if_match ${battery_percent BAT0} >= 50}\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":"${battery_percent BAT0}%","color":"\#2aa198","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":"${battery_time BAT0}","color":"\#2aa198","separator":false,"separator_block_width":6},\
${else}
${if_match ${battery_percent BAT0} >= 30}\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":"${battery_percent BAT0}%","color":"\#2aa198","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":"${battery_time BAT0}","color":"\#2aa198","separator":false,"separator_block_width":6},\
${else}
${if_match ${battery_percent BAT0} >= 10}\
{"full_text":" ","color":"\#E56C08","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#E56C08","separator":false,"separator_block_width":6},\
{"full_text":"${battery_percent BAT0}%","color":"\#E56C08","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":"${battery_time BAT0}","color":"\#E56C08","separator":false,"separator_block_width":6},\
${else}
{"full_text":" ","color":"\#dc322f","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#dc322f","separator":false,"separator_block_width":6},\
{"full_text":"${battery_percent BAT0}%","color":"\#dc322f","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\
{"full_text":" ","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
@ -179,6 +186,19 @@ ${else}
$endif
$endif
#DATE
#{"full_text":"","color":"\#268bd2","separator":false,"separator_block_width":0},\
#{"full_text":" ${time %d}","color":"\#073642","background":"\#268bd2","separator":false,"separator_block_width":0},\
#{"full_text":"/","color":"\#073642","background":"\#268bd2","separator":false,"separator_block_width":0},\
#{"full_text":"${time %m}","color":"\#073642","background":"\#268bd2","separator":false,"separator_block_width":0},\
#{"full_text":"/","color":"\#073642","background":"\#268bd2","separator":false,"separator_block_width":0},\
#{"full_text":"${time %Y}","color":"\#073642","background":"\#268bd2","separator":false,"separator_block_width":0},\
#{"full_text":" ","color":"\#073642","background":"\#268bd2","separator":false,"separator_block_width":0},\
#TIME
#{"full_text":" ${time %H:%M:%S}","color":"\#268bd2","background":"\#073642","separator":false,"separator_block_width":0},\
#{"full_text":" ","background":"\#073642","separator":false,"separator_block_width":6}\
#DATE
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6},\
{"full_text":"${time %d}","color":"\#c5c5c5","separator":false,"separator_block_width":0},\
@ -190,6 +210,6 @@ $endif
#TIME
{"full_text":"${time %H:%M:%S}","color":"\#c5c5c5","separator":false,"separator_block_width":6},\
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6}\
{"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":6}\
],

@ -1,9 +1,14 @@
#!/bin/bash
action=$(echo -e "ompd\nspotify\ntransmission\nnicotine\nstreamstudio\nnetflix\nmps-youtube" | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "wapps >" -w 190 -o 0.9 -y 21 -l 7)
action=$(echo -e "ompd\nompd-git\nspotify\ntransmission\nnicotine\nstreamstudio\nnetflix\nmps-youtube" | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "wapps >" -w 190 -o 0.9 -y 21 -l 8)
if [[ "$action" == "ompd" ]]
then
/usr/bin/google-chrome-stable --app="http://127.0.0.1/ompd"
/usr/bin/google-chrome-stable --app="http://127.0.0.1/OMPD"
fi
if [[ "$action" == "ompd-git" ]]
then
/usr/bin/google-chrome-stable --app="http://127.0.0.1/ompd_test"
fi
if [[ "$action" == "transmission" ]]

@ -1,11 +1,3 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =9
let g:netrw_dirhist_1='/home/user/.config/beets'
let g:netrw_dirhist_2='/etc/X11/xorg.conf.d'
let g:netrw_dirhist_3='/home/user/.config/dunst'
let g:netrw_dirhist_4='/home/user/.config/beets'
let g:netrw_dirhist_5='/home/user/downloads/torrents'
let g:netrw_dirhist_6='/home/user/text'
let g:netrw_dirhist_7='/home/user/.config/gtk-2.0'
let g:netrw_dirhist_8='/home/user/.i3/i3lock-fancy-multimonitor'
let g:netrw_dirhist_9='/home/user/.config/systemd'
let g:netrw_dirhist_cnt =1
let g:netrw_dirhist_1='/home/user/downloads/ompd/ompd'

4
.zshrc

@ -1,3 +1,6 @@
#motd
cat ~/.config/motd
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
@ -28,6 +31,7 @@ chromeapp() { google-chrome-stable --app=$1 }
#exports
export EDITOR='vim'
export VISUAL='vim'
export POWERLINE_CONFIG_COMMAND=/usr/bin/powerline-config
#deactivate gaskpass
unset SSH_ASKPASS