add: polybar custom scripts

add: git aliases
fix. bspwm split_ration madness
This commit is contained in:
Tobias Reisinger 2020-02-22 15:45:08 +01:00
parent c33047354e
commit 1a0ffb4924
7 changed files with 44 additions and 3 deletions

View file

@ -21,7 +21,7 @@ bspc desktop web --layout monocle
bspc config border_width 1
bspc config window_gap 10
bspc config split_ratio 0.52
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true

View file

@ -17,6 +17,8 @@
dt = difftool
d = diff
b = branch -vv
logg = log --graph
diffc = diff --cached
[merge]
tool = vimdiff
conflictstyle = diff3

View file

@ -51,7 +51,7 @@
modules-left = bspwm i3
modules-center = mpd
modules-right = memory cpu fan-speed eth temperature date powermenu
modules-right = memory cpu fan-speed temperature eth arch-updates date powermenu
eth-interface = enp0s31f6
@ -74,7 +74,7 @@
modules-left = bspwm i3
modules-center =
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth date powermenu
modules-right = pulseaudio battery xbacklight memory cpu temperature wlan eth arch-updates date powermenu
eth-interface = enp2s0f1
wlan-interface = wlp3s0

View file

@ -0,0 +1,23 @@
[module/fan-speed]
type = custom/script
exec = $HOME/.config/polybar/scripts/fan-speed.sh
interval = 1
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #8bf
format = <label>
label = %output:4%
[module/arch-updates]
type = custom/script
exec = $HOME/.config/polybar/scripts/arch-updates.sh
interval = 10
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #1794D1
format = <label>
label = %output%

View file

@ -0,0 +1,3 @@
#!/bin/sh
echo $(pacman -Qu | wc -l)

View file

@ -0,0 +1,10 @@
#!/bin/sh
speed=$(sensors | grep fan1 | sed -e 's/fan1: *//' -e 's/ RPM.*$//')
if [ "$speed" != "" ]; then
echo "$speed RPM"
else
echo "FAN ERROR"
fi

View file

@ -21,6 +21,9 @@ set encoding=utf-8
set nowrap
runtime ftplugin/man.vim
set keywordprg=:Man
if has("autocmd")
" Save cursor position. I don't understand this part
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif