Add flameshot and change color of the bar

This commit is contained in:
lemon-sh 2021-09-09 16:52:22 +02:00
parent 807117be69
commit 78143fc4c0
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh
feh --bg-fill ~/wallpaper.png &
# who the fuck needs a compositor?
#picom -b --config ~/.config/picom.conf &
#picom -b --config ~/.config/picom.conf
~/.dwm/bar.sh &
setxkbmap pl
flameshot &
dwm

View File

@ -2,12 +2,12 @@
cpu() {
echo -n "^c#3b414d^^b#7ec7a2^ CPU "
echo -n "^c#abb2bf^^b#353b45^ $(grep -o "^[^ ]*" /proc/loadavg)"
echo -n "^c#abb2bf^^b#1e222a^ $(grep -o "^[^ ]*" /proc/loadavg)"
}
mem() {
echo -n "^c#3b414d^^b#c7957e^ MEM "
echo -n "^c#abb2bf^^b#353b45^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
echo -n "^c#abb2bf^^b#1e222a^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
}
clock() {
@ -17,17 +17,17 @@ clock() {
root() {
echo -n "^c#3b414d^^b#ad7ec7^ / "
echo -n "^c#abb2bf^^b#353b45^ $(df -h / | awk '{if ($1 != "Filesystem") print $4" free"}')"
echo -n "^c#abb2bf^^b#1e222a^ $(df -h / | awk '{if ($1 != "Filesystem") print $4" free"}')"
}
pulse() {
echo -n "^c#3b414d^^b#7ec0c7^ 墳 "
echo -n "^c#abb2bf^^b#353b45^ $(awk -F"[][]" '/Left:/ { print $2 }' <(amixer -D pulse sget Master))"
echo -n "^c#abb2bf^^b#1e222a^ $(awk -F"[][]" '/Left:/ { print $2 }' <(amixer -D pulse sget Master))"
}
spotify() {
echo -n "^c#3b414d^^b#a7c77e^  "
echo -n "^c#abb2bf^^b#353b45^ $(playerctl metadata | awk '{if ($2 == "xesam:title") {s = ""; for (i = 3; i <= NF; i++) s = s $i " "; print s}}')"
echo -n "^c#abb2bf^^b#1e222a^ $(playerctl metadata | awk '{if ($2 == "xesam:title") {s = ""; for (i = 3; i <= NF; i++) s = s $i " "; print s}}')"
}
while true; do

View File

@ -130,7 +130,6 @@ static Key keys[] = {
// general stuff
{MODKEY, XK_d, spawn, {.v = rofi}},
{MODKEY, XK_Return, spawn, {.v = termcmd }},
{MODKEY, XK_u, spawn, SHCMD("gnome-screenshot -i")},
{MODKEY, XK_b, togglebar, {0}},
{MODKEY, XK_j, focusstack, {.i = +1}},
{MODKEY, XK_k, focusstack, {.i = -1}},