Update the tinypc config
This commit is contained in:
parent
8b336f6297
commit
cab335e639
|
@ -3,6 +3,8 @@ urxvt*foreground: #cccccc
|
||||||
urxvt*scrollBar: false
|
urxvt*scrollBar: false
|
||||||
urxvt*background: rgba:0000/0000/0000/cccc
|
urxvt*background: rgba:0000/0000/0000/cccc
|
||||||
|
|
||||||
|
URxvt.bell-command: paplay ~/notification.ogg
|
||||||
|
|
||||||
Xft*dpi: 96
|
Xft*dpi: 96
|
||||||
Xft*antialias: true
|
Xft*antialias: true
|
||||||
Xft*hinting: full
|
Xft*hinting: full
|
||||||
|
@ -11,6 +13,7 @@ URxvt.transparent: true
|
||||||
URxvt.tintColor: white
|
URxvt.tintColor: white
|
||||||
URxvt.shading: 20
|
URxvt.shading: 20
|
||||||
URxvt.internalBorder: 15
|
URxvt.internalBorder: 15
|
||||||
|
URxvt.blurRadius: 10
|
||||||
|
|
||||||
URxvt*color0: #000000
|
URxvt*color0: #000000
|
||||||
URxvt*color1: #9e1828
|
URxvt*color1: #9e1828
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
feh --bg-fill ~/wallpaper.png &
|
feh --bg-fill ~/wallpaper.png &
|
||||||
~/.dwm/bar.sh &
|
~/.dwm/bar.sh &
|
||||||
setxkbmap pl
|
setxkbmap pl
|
||||||
dunst -fn "Mononoki Nerd Font" -corner_radius 2 -frame_width 1 -padding 10 -horizontal_padding 10 -geometry "0x3+50-50" &
|
dunst -fn "Cozette 9" -corner_radius 2 -frame_width 1 -padding 10 -horizontal_padding 10 -geometry "0x3+50-50" &
|
||||||
nm-applet &
|
flameshot &
|
||||||
|
volctl &
|
||||||
dwm
|
dwm
|
||||||
|
|
16
.dwm/bar.sh
16
.dwm/bar.sh
|
@ -1,22 +1,26 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cpu() {
|
cpu() {
|
||||||
echo -n "^c#7ec7a2^^c#abb2bf^ $(grep -o "^[^ ]*" /proc/loadavg)"
|
echo -n "^c#7ec7a2^^c#abb2bf^ $(grep -o "^[^ ]*" /proc/loadavg)"
|
||||||
}
|
}
|
||||||
|
|
||||||
mem() {
|
mem() {
|
||||||
echo -n "^c#c7957e^^c#abb2bf^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
|
echo -n "^c#c7957e^^c#abb2bf^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
|
||||||
}
|
}
|
||||||
|
|
||||||
clock() {
|
clock() {
|
||||||
echo -n "^c#1e222a^^b#668ee3^ ^c#1e222a^^b#7aa2f7^ $(date '+%a | %x | %R') "
|
echo -n "^c#1e222a^^b#668ee3^ ^c#1e222a^^b#7aa2f7^ $(date '+%a | %x | %R') "
|
||||||
}
|
}
|
||||||
|
|
||||||
root() {
|
root() {
|
||||||
echo -n "^c#ad7ec7^^c#abb2bf^ $(df -h / | awk '{if ($1 != "Filesystem") print $4" free"}')"
|
echo -n "^c#ad7ec7^^c#abb2bf^ $(df -h / | awk '{if ($1 != "Filesystem") print $4" free"}')"
|
||||||
|
}
|
||||||
|
|
||||||
|
spotify() {
|
||||||
|
echo -n "^c#42f59e^^c#abb2bf^ $(playerctl metadata | awk '{if ($2 == "xesam:title") {s = ""; for (i = 3; i <= NF; i++) s = s $i " "; print s}}')"
|
||||||
}
|
}
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
xsetroot -name "^c#cdff59^ $(root) $(cpu) $(mem) $(clock)"
|
xsetroot -name "^c#cdff59^ $(spotify) $(root) $(cpu) $(mem) $(clock)"
|
||||||
sleep 10
|
sleep 10
|
||||||
done
|
done
|
||||||
|
|
|
@ -26,8 +26,8 @@ static const int vertpadtab = 33;
|
||||||
static const int horizpadtabi = 15;
|
static const int horizpadtabi = 15;
|
||||||
static const int horizpadtabo = 15;
|
static const int horizpadtabo = 15;
|
||||||
static const int scalepreview = 4;
|
static const int scalepreview = 4;
|
||||||
static const char *fonts[] = {"Cozette:style:medium:size=10"};
|
static const char *fonts[] = {"Cozette:style:medium:size=12"};
|
||||||
static const char dmenufont[] = "Cozette:style:medium:size=10";
|
static const char dmenufont[] = "Cozette:style:medium:size=12";
|
||||||
static const int colorfultag = 1; /* 0 means use SchemeSel for selected non-vacant tag */
|
static const int colorfultag = 1; /* 0 means use SchemeSel for selected non-vacant tag */
|
||||||
|
|
||||||
// theme
|
// theme
|
||||||
|
@ -185,8 +185,8 @@ static Button buttons[] = {
|
||||||
{ClkClientWin, MODKEY, Button1, moveorplace, {.i = 0}},
|
{ClkClientWin, MODKEY, Button1, moveorplace, {.i = 0}},
|
||||||
{ClkClientWin, MODKEY, Button2, togglefloating, {0}},
|
{ClkClientWin, MODKEY, Button2, togglefloating, {0}},
|
||||||
{ClkClientWin, MODKEY, Button3, resizemouse, {0}},
|
{ClkClientWin, MODKEY, Button3, resizemouse, {0}},
|
||||||
{ClkClientWin, ControlMask, Button1, dragmfact, {0}},
|
{ClkClientWin, ControlMask | ShiftMask, Button1, dragmfact, {0}},
|
||||||
{ClkClientWin, ControlMask, Button3, dragcfact, {0}},
|
{ClkClientWin, ControlMask | ShiftMask, Button3, dragcfact, {0}},
|
||||||
{ClkTagBar, 0, Button1, view, {0}},
|
{ClkTagBar, 0, Button1, view, {0}},
|
||||||
{ClkTagBar, 0, Button3, toggleview, {0}},
|
{ClkTagBar, 0, Button3, toggleview, {0}},
|
||||||
{ClkTagBar, MODKEY, Button1, tag, {0}},
|
{ClkTagBar, MODKEY, Button1, tag, {0}},
|
||||||
|
|
Reference in a new issue