Add tinypc config

This commit is contained in:
lemon-sh 2021-10-01 17:42:30 +02:00
parent 083389ae52
commit 8b336f6297
11 changed files with 16 additions and 33 deletions

View File

@ -1,4 +1,4 @@
urxvt*font: xft:Ubuntu Mono:size=13
urxvt*font: xft:Cozette:size=9
urxvt*foreground: #cccccc
urxvt*scrollBar: false
urxvt*background: rgba:0000/0000/0000/cccc
@ -10,7 +10,7 @@ Xft*hinting: full
URxvt.transparent: true
URxvt.tintColor: white
URxvt.shading: 20
URxvt.internalBorder: 20
URxvt.internalBorder: 15
URxvt*color0: #000000
URxvt*color1: #9e1828

View File

@ -1,7 +1,7 @@
configuration{
modi: "drun";
lines: 10;
font: "Misc Fixed 10";
font: "Cozette 9";
show-icons: true;
terminal: "urxvt";
drun-display-format: "{icon} {name}";

View File

@ -1,10 +1,7 @@
#!/bin/sh
feh --bg-fill ~/wallpaper.png &
# who the fuck needs a compositor?
#picom -b --config ~/.config/picom.conf
~/.dwm/bar.sh &
setxkbmap pl
flameshot &
qbittorrent &
dunst -fn "Mononoki Nerd Font" -corner_radius 2 -frame_width 1 -padding 10 -horizontal_padding 10 -geometry "0x3+50-50" &
nm-applet &
dwm

View File

@ -1,36 +1,22 @@
#!/bin/bash
cpu() {
echo -n "^c#3b414d^^b#7ec7a2^ CPU "
echo -n "^c#abb2bf^^b#1e222a^ $(grep -o "^[^ ]*" /proc/loadavg)"
echo -n "^c#7ec7a2^^c#abb2bf^ $(grep -o "^[^ ]*" /proc/loadavg)"
}
mem() {
echo -n "^c#3b414d^^b#c7957e^ MEM "
echo -n "^c#abb2bf^^b#1e222a^ $(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() {
echo -n "^c#1e222a^^b#668ee3^ 󱑆 "
echo -n "^c#1e222a^^b#7aa2f7^ $(date '+%a | %x | %R') "
echo -n "^c#1e222a^^b#668ee3^  ^c#1e222a^^b#7aa2f7^ $(date '+%a | %x | %R') "
}
root() {
echo -n "^c#3b414d^^b#ad7ec7^ / "
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#1e222a^ $(awk -F"[][]" '/Left:/ { print $2 }' <(amixer -D pulse sget Master))"
}
spotify() {
echo -n "^c#3b414d^^b#a7c77e^  "
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}}')"
echo -n "^c#ad7ec7^^c#abb2bf^ $(df -h / | awk '{if ($1 != "Filesystem") print $4" free"}')"
}
while true; do
xsetroot -name "^c#cdff59^$(spotify)$(pulse) $(root) $(cpu) $(mem) $(clock)"
sleep 2
xsetroot -name "^c#cdff59^ $(root) $(cpu) $(mem) $(clock)"
sleep 10
done

Binary file not shown.

Binary file not shown.

View File

@ -4,10 +4,10 @@
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int default_border = 1; // to switch back to default border after dynamic border resizing via keybinds
static const unsigned int snap = 32; /* snap pixel */
static const unsigned int gappih = 15; /* horiz inner gap between windows */
static const unsigned int gappiv = 15; /* vert inner gap between windows */
static const unsigned int gappoh = 20; /* horiz outer gap between windows and screen edge */
static const unsigned int gappov = 20; /* vert outer gap between windows and screen edge */
static const unsigned int gappih = 5; /* horiz inner gap between windows */
static const unsigned int gappiv = 5; /* vert inner gap between windows */
static const unsigned int gappoh = 10; /* horiz outer gap between windows and screen edge */
static const unsigned int gappov = 10; /* vert outer gap between windows and screen edge */
static int smartgaps = 0; /* 1 means no outer gap when there is only one window */
static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */
static const unsigned int systrayspacing = 5; /* systray spacing */
@ -26,8 +26,8 @@ static const int vertpadtab = 33;
static const int horizpadtabi = 15;
static const int horizpadtabo = 15;
static const int scalepreview = 4;
static const char *fonts[] = {"Mononoki Nerd Font:style:medium:size=10"};
static const char dmenufont[] = "Mononoki Nerd Font:style:medium:size=10";
static const char *fonts[] = {"Cozette:style:medium:size=10"};
static const char dmenufont[] = "Cozette:style:medium:size=10";
static const int colorfultag = 1; /* 0 means use SchemeSel for selected non-vacant tag */
// theme

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 28 KiB