Added files

This commit is contained in:
Lux Aliaga 2020-12-23 13:44:21 -03:00
parent d7a8014e36
commit c23fc8b16b
6 changed files with 125 additions and 0 deletions

16
.config/bspwm/bspwmrc Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
bspc rule -r "*"
killall sxhkd
sxhkd &
nitrogen --restore
killall picom
picom &
killall dunst
dunst &
killall lemonbar
owobar | lemonbar -f "monospace" &
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
bspc config border_width 0
bspc config window_gap 12

28
.config/sxhkd/sxhkdrc Normal file
View file

@ -0,0 +1,28 @@
super + shift + e
bspc quit 0
super + shift + q
bspc node -c
super + Return
kitty
super + r
rofi -show run
super + {h,j,k,l}
bspc node -f {west,south,north,east}
super + shift + {h,j,k,l}
bspc node -s {west,south,north,east}
super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '{1-9,10}' --follow
@Print
elixire -f
@super + Print
elixire
super + s : {h,j,k,l}
STEP=20; SELECTION={1,2,3,4}; \
bspc node -z $(echo "left -$STEP 0,bottom 0 $STEP,top 0 -$STEP,right $STEP 0" | cut -d',' -f$SELECTION) || \
bspc node -z $(echo "right -$STEP 0,top 0 $STEP,bottom 0 -$STEP,left $STEP 0" | cut -d',' -f$SELECTION)
{XF86MonBrightnessUp,XF86MonBrightnessDown}
xbacklight {+,-}20
{XF86AudioRaiseVolume,XF86AudioLowerVolume}
pactl set-sink-volume @DEFAULT_SINK@ {+,-}10%
XF86AudioMute
pactl set-sink-mute @DEFAULT_SINK@ toggle

41
.local/bin/owobar Executable file
View file

@ -0,0 +1,41 @@
#!/bin/sh
hostname() {
cat /etc/hostname
}
clock() {
date +%H:%M
}
clocktick() {
date +%H\ %M
}
battery() {
cat /sys/class/power_supply/BAT1/capacity
}
wifi() {
iwgetid -r
}
cpu() {
top -bn1 | grep "Cpu(s)" | \
sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | \
awk '{print int(100 - $1)}'
}
mem() {
free -m | grep Mem | awk '{print int(($3/$2)*100)}'
}
while true; do
BAR_INPUT="%{B#20000000}%{l} $(hostname) %{c}CPU: $(cpu)% | MEM: $(mem)% | BAT: $(battery)% | NET: $(wifi) %{r}$(clock)"
echo $BAR_INPUT
sleep 1
BAR_INPUT="%{B#20000000}%{l} $(hostname) %{c}CPU: $(cpu)% | MEM: $(mem)% | BAT: $(battery)% | NET: $(wifi)
%{r}$(clocktick)"
echo $BAR_INPUT
sleep 1
done

40
.local/bin/owobar-nowifi Executable file
View file

@ -0,0 +1,40 @@
#!/bin/sh
hostname() {
cat /etc/hostname
}
clock() {
date +%H:%M
}
clocktick() {
date +%H\ %M
}
battery() {
cat /sys/class/power_supply/BAT1/capacity
}
wifi() {
iwgetid -r
}
cpu() {
top -bn1 | grep "Cpu(s)" | \
sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | \
awk '{print int(100 - $1)}'
}
mem() {
free -m | grep Mem | awk '{print int(($3/$2)*100)}'
}
while true; do
BAR_INPUT="%{B#20000000}%{l} $(hostname) %{c}CPU: $(cpu)% | MEM: $(mem)% | BAT: $(battery)% %{r}$(clock)"
echo $BAR_INPUT
sleep 1
BAR_INPUT="%{B#20000000}%{l} $(hostname) %{c}CPU: $(cpu)% | MEM: $(mem)% | BAT: $(battery)% %{r}$(clocktick)"
echo $BAR_INPUT
sleep 1
done

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,002 KiB

BIN
wallpaper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB