now with lemonbar
This commit is contained in:
parent
2201ac408d
commit
b2b1e13976
8
bspwmrc
8
bspwmrc
@ -3,8 +3,14 @@
|
|||||||
setxkbmap it
|
setxkbmap it
|
||||||
xsetroot -cursor_name left_ptr
|
xsetroot -cursor_name left_ptr
|
||||||
|
|
||||||
|
sh ~/.config/bspwm/lemonbar.sh &
|
||||||
|
|
||||||
|
bspc monitor DVI-I-0 -d 1 2
|
||||||
|
bspc monitor HDMI-0 -d 3 4
|
||||||
|
|
||||||
bspc config border_width 2
|
bspc config border_width 2
|
||||||
bspc window_gap 24
|
bspc window_gap 24
|
||||||
|
bspc config -m DVI-I-0 top_padding 36
|
||||||
bspc config focused_border_color '#858585'
|
bspc config focused_border_color '#858585'
|
||||||
bspc config normal_border_color '#2e343D'
|
bspc config normal_border_color '#2e343D'
|
||||||
bspc config split_ratio 0.52
|
bspc config split_ratio 0.52
|
||||||
@ -12,6 +18,4 @@ bspc config borderless_monocle true
|
|||||||
bspc config gapless monocle true
|
bspc config gapless monocle true
|
||||||
bspc config focus_follows_pointer true
|
bspc config focus_follows_pointer true
|
||||||
|
|
||||||
bspc monitor DVI-I-0 -d 1 2
|
|
||||||
bspc monitor HDMI-0 -d 3 4
|
|
||||||
feh --no--fehbg --bg-center ~/Pictures/background.png
|
feh --no--fehbg --bg-center ~/Pictures/background.png
|
||||||
|
@ -36,15 +36,16 @@
|
|||||||
# Development
|
# Development
|
||||||
atom git
|
atom git
|
||||||
# Desktop and appliations
|
# Desktop and appliations
|
||||||
sxhkd tmux htop ranger w3m rxvt_unicode chromium dmenu gnupg irssi
|
sxhkd tmux htop ranger w3m rxvt_unicode chromium dmenu gnupg irssi bar
|
||||||
|
# Games
|
||||||
|
minecraft
|
||||||
# Media
|
# Media
|
||||||
mpv cmus
|
mpv cmus
|
||||||
# System utilities, drivers...
|
# System utilities, drivers...
|
||||||
ntfs
|
|
||||||
# Services
|
# Services
|
||||||
syncthing transmission
|
syncthing transmission
|
||||||
# Other stuff
|
# Other stuff
|
||||||
screenfetch scrot
|
screenfetch scrot iotop iftop
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
|
1
install
1
install
@ -18,6 +18,7 @@ mkdir -p ~/.config/bspwm
|
|||||||
mkdir -p ~/.config/sxhkd
|
mkdir -p ~/.config/sxhkd
|
||||||
cp bspwmrc ~/.config/bspwm/
|
cp bspwmrc ~/.config/bspwm/
|
||||||
cp sxhkdrc ~/.config/sxhkd/
|
cp sxhkdrc ~/.config/sxhkd/
|
||||||
|
cp lemonbar.sh ~/.config/bspwm/
|
||||||
cp ./.Xresources ~/
|
cp ./.Xresources ~/
|
||||||
|
|
||||||
# Vim
|
# Vim
|
||||||
|
25
lemonbar.sh
Executable file
25
lemonbar.sh
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
buildClock() {
|
||||||
|
echo -n $(date "+%A, %e %B | %k:%M:%S")
|
||||||
|
}
|
||||||
|
|
||||||
|
getVolume() {
|
||||||
|
echo -n "|Vol| $(amixer get Master | sed -n 's/^.*\[\([0-9]\+\)%.*$/\1/p' | uniq)%%"
|
||||||
|
}
|
||||||
|
|
||||||
|
getRAM(){
|
||||||
|
echo -n "free -m | awk 'NR == 2 {gsub(/%/,''); print }'"
|
||||||
|
}
|
||||||
|
|
||||||
|
getCPU(){
|
||||||
|
echo -n "grep 'cpu ' /proc/stat | awk '{usage=(+)*100/(++)} END {print usage}'"
|
||||||
|
}
|
||||||
|
|
||||||
|
buildBar () {
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
echo "$(getVolume)%{c}$(buildClock)%{r}|IP| $(curl -s http://canihazip.com/s)"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
buildBar | lemonbar -p -g "1872x20+24+8" -B "#181b20" -F "#9b9081" -f -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1
|
6
sxhkdrc
6
sxhkdrc
@ -98,7 +98,7 @@ F9
|
|||||||
F10
|
F10
|
||||||
amixer set Master 3+ unmute
|
amixer set Master 3+ unmute
|
||||||
F11
|
F11
|
||||||
amixer set Master toggle
|
amixer set Master 0
|
||||||
|
|
||||||
# turn screen off
|
# turn screen off
|
||||||
F12
|
F12
|
||||||
@ -108,6 +108,4 @@ alt + F12
|
|||||||
|
|
||||||
# screenshots
|
# screenshots
|
||||||
Print
|
Print
|
||||||
scrot "~/Pictures/screenshots/%d-%m-%Y %H:%M:%S.png"
|
scrot -m "~/Pictures/screenshots/%d-%m-%Y %H:%M:%S.png"
|
||||||
# scrot /tmp/screenshot.png -e 'copyq copy image/png - < $f && rm $f'
|
|
||||||
# scrot -s /tmp/screenshot.png -e 'copyq copy image/png - < $f && rm $f'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user