Change background and standarize some scripts
This commit is contained in:
parent
2ccfabe3ea
commit
a6f6f2af90
|
@ -182,7 +182,7 @@ client.unfocused #222222 #222222 #ffffff #729FCF
|
|||
client.urgent #FF0000 #8C5665 #ffffff #FF0000
|
||||
|
||||
# Wallpaper
|
||||
exec --no-startup-id feh --bg-scale ~/Imagenes/debian-blue.jpg
|
||||
exec --no-startup-id feh --bg-scale ~/Imagenes/debian-background.jpg
|
||||
|
||||
# Autostart
|
||||
exec --no-startup-id xbacklight -set 100
|
||||
|
@ -201,7 +201,6 @@ assign [class="(?i)chromium"] $ws2
|
|||
assign [class="(?i)qutebrowser"] $ws2
|
||||
assign [class="(?i)icecat"] $ws2
|
||||
assign [title="bittorrent"] $ws3
|
||||
assign [class="(?i)keepassx"] $ws5
|
||||
assign [class="(?i)gnucash"] $ws6
|
||||
assign [title="Steam"] $ws7
|
||||
assign [class="(?i)mumble"] $ws8
|
||||
|
|
|
@ -16,45 +16,11 @@
|
|||
|
||||
TYPE="${BLOCK_INSTANCE:-mem}"
|
||||
|
||||
ram=$(free -h | grep Mem | awk '{print $7}' | sed "s/$//")
|
||||
|
||||
ram=`awk -v type=$TYPE '
|
||||
/^MemTotal:/ {
|
||||
mem_total=$2
|
||||
}
|
||||
/^MemFree:/ {
|
||||
mem_free=$2
|
||||
}
|
||||
/^Buffers:/ {
|
||||
mem_free+=$2
|
||||
}
|
||||
/^Cached:/ {
|
||||
mem_free+=$2
|
||||
}
|
||||
/^SwapTotal:/ {
|
||||
swap_total=$2
|
||||
}
|
||||
/^SwapFree:/ {
|
||||
swap_free=$2
|
||||
}
|
||||
END {
|
||||
# full text
|
||||
if (type == "swap")
|
||||
printf("%.1f\n", (swap_total-swap_free)/1024/1024)
|
||||
else
|
||||
printf("%.1f\n", mem_free/1024/1024)
|
||||
|
||||
# TODO: short text
|
||||
|
||||
# TODO: color (if less than X%)
|
||||
}
|
||||
' /proc/meminfo`
|
||||
|
||||
if [[ ($ram < 4) && ($ram > 2) ]]
|
||||
if [[ $ram -ge 6 ]]
|
||||
then
|
||||
echo -n "<span foreground='#ffa500' background='#61CE3C'></span><span foreground='black' background='#ffa500'> $ram </span><span foreground='#8A458A' background='#ffa500'> </span>"
|
||||
elif [[ ($ram < 2) ]]
|
||||
then
|
||||
echo -n "<span foreground='#B60900' background='#61CE3C'></span><span foreground='black' background='#B60900'> $ram </span><span foreground='#8A458A' background='#B60900'> </span>"
|
||||
echo -n "<span foreground='#B60900' background='#61CE3C'></span><span foreground='black' background='#B60900'> $ram </span><span foreground='#8A458A' background='#B60900'> </span>"
|
||||
else
|
||||
echo -n "<span foreground='#4c83ff' background='#61CE3C'></span><span foreground='black' background='#4c83ff'> $ram </span><span foreground='#8A458A' background='#4c83ff'> </span>"
|
||||
fi
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo -n "<span foreground='#ffd700' background='#8A458A'></span><span foreground='black' background='#ffd700'> " $(acpi -t | cut -d' ' -f4) "º </span>"
|
||||
echo -n "<span foreground='#ffd700' background='#8A458A'></span><span foreground='black' background='#ffd700'> " $(acpi -t | grep "Thermal 1" | cut -d' ' -f4) "º </span>"
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
~/.i3/scripts/lock
|
||||
sleep 1
|
||||
echo 'mem' > /sys/power/state
|
||||
|
|
@ -12,3 +12,4 @@ pip_packages:
|
|||
- virtualenv
|
||||
- virtualenvwrapper
|
||||
- nikola
|
||||
- jenkins-cli
|
||||
|
|
Loading…
Reference in New Issue