add: polybar custom scripts
add: git aliases fix. bspwm split_ration madness
This commit is contained in:
parent
c33047354e
commit
1a0ffb4924
7 changed files with 44 additions and 3 deletions
|
@ -21,7 +21,7 @@ bspc desktop web --layout monocle
|
||||||
bspc config border_width 1
|
bspc config border_width 1
|
||||||
bspc config window_gap 10
|
bspc config window_gap 10
|
||||||
|
|
||||||
bspc config split_ratio 0.52
|
bspc config split_ratio 0.50
|
||||||
bspc config borderless_monocle true
|
bspc config borderless_monocle true
|
||||||
bspc config gapless_monocle true
|
bspc config gapless_monocle true
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
dt = difftool
|
dt = difftool
|
||||||
d = diff
|
d = diff
|
||||||
b = branch -vv
|
b = branch -vv
|
||||||
|
logg = log --graph
|
||||||
|
diffc = diff --cached
|
||||||
[merge]
|
[merge]
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
modules-left = bspwm i3
|
modules-left = bspwm i3
|
||||||
modules-center = mpd
|
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
|
eth-interface = enp0s31f6
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
|
|
||||||
modules-left = bspwm i3
|
modules-left = bspwm i3
|
||||||
modules-center =
|
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
|
eth-interface = enp2s0f1
|
||||||
wlan-interface = wlp3s0
|
wlan-interface = wlp3s0
|
||||||
|
|
23
.config/polybar/custom.ini
Normal file
23
.config/polybar/custom.ini
Normal 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%
|
3
.config/polybar/scripts/arch-updates.sh
Executable file
3
.config/polybar/scripts/arch-updates.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo $(pacman -Qu | wc -l)
|
10
.config/polybar/scripts/fan-speed.sh
Executable file
10
.config/polybar/scripts/fan-speed.sh
Executable 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
|
||||||
|
|
|
@ -21,6 +21,9 @@ set encoding=utf-8
|
||||||
|
|
||||||
set nowrap
|
set nowrap
|
||||||
|
|
||||||
|
runtime ftplugin/man.vim
|
||||||
|
set keywordprg=:Man
|
||||||
|
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
" Save cursor position. I don't understand this part
|
" Save cursor position. I don't understand this part
|
||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||||
|
|
Loading…
Reference in a new issue