Compare commits
No commits in common. "6172f45cc1d62a2973ca271e9964763701356ef6" and "8e85199a56bb3bf266aa7eda7fa8a1973db352cd" have entirely different histories.
6172f45cc1
...
8e85199a56
|
@ -25,19 +25,11 @@
|
||||||
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
for m in $(xrandr --query | grep " connected"); do
|
for m in $(xrandr --query | grep " connected"); do
|
||||||
MONITOR=$(echo $m | cut -d" " -f1)
|
|
||||||
BARSUFFIX=""
|
|
||||||
|
|
||||||
if [[ $m = *primary* ]]; then
|
if [[ $m = *primary* ]]; then
|
||||||
BARSUFFIX=$BARSUFFIX"_main"
|
MONITOR=$(echo $m | cut -d" " -f1) polybar --reload bottom_main &
|
||||||
|
else
|
||||||
|
MONITOR=$(echo $m | cut -d" " -f1) polybar --reload bottom &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $m = *1920x* ]]; then
|
|
||||||
BARSUFFIX=$BARSUFFIX"_1920"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo $BARSUFFIX
|
|
||||||
MONITOR=$MONITOR polybar --reload "bottom$BARSUFFIX" &
|
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -73,7 +65,7 @@
|
||||||
#"siji:pixelsize=14;1"
|
#"siji:pixelsize=14;1"
|
||||||
];
|
];
|
||||||
|
|
||||||
modules-left = "hostname uptime bspwm i3";
|
modules-left = "hostname bspwm i3";
|
||||||
modules-center = "mpd";
|
modules-center = "mpd";
|
||||||
modules-right = "dirty root xbacklight volume wlan eth zram memory cpu battery date";
|
modules-right = "dirty root xbacklight volume wlan eth zram memory cpu battery date";
|
||||||
|
|
||||||
|
@ -81,36 +73,6 @@
|
||||||
scroll-down = "i3wm-wsprev";
|
scroll-down = "i3wm-wsprev";
|
||||||
};
|
};
|
||||||
|
|
||||||
"bar/bottom_1920" = {
|
|
||||||
monitor = "\${env:MONITOR:}";
|
|
||||||
bottom = true;
|
|
||||||
|
|
||||||
radius = 0;
|
|
||||||
height = 25;
|
|
||||||
width = "100%";
|
|
||||||
|
|
||||||
padding = 1;
|
|
||||||
line-size = 3;
|
|
||||||
module-margin = 1;
|
|
||||||
|
|
||||||
background = "\${colors.background}";
|
|
||||||
foreground = "\${colors.foreground}";
|
|
||||||
|
|
||||||
font = [
|
|
||||||
"fixed:pixelsize=14;1"
|
|
||||||
"unifont:fontformat=truetype:size=12:antialias=false;0"
|
|
||||||
"FontAwesome5Free-Solid:weight=heavy:size=12"
|
|
||||||
#"siji:pixelsize=14;1"
|
|
||||||
];
|
|
||||||
|
|
||||||
modules-left = "hostname uptime bspwm i3";
|
|
||||||
modules-center = "mpd";
|
|
||||||
modules-right = "dirty volume wlan eth memory cpu battery date";
|
|
||||||
|
|
||||||
scroll-up = "i3wm-wsnext";
|
|
||||||
scroll-down = "i3wm-wsprev";
|
|
||||||
};
|
|
||||||
|
|
||||||
"bar/bottom_main" = {
|
"bar/bottom_main" = {
|
||||||
monitor = "\${env:MONITOR:}";
|
monitor = "\${env:MONITOR:}";
|
||||||
bottom = true;
|
bottom = true;
|
||||||
|
@ -133,7 +95,7 @@
|
||||||
#"siji:pixelsize=14;1"
|
#"siji:pixelsize=14;1"
|
||||||
];
|
];
|
||||||
|
|
||||||
modules-left = "hostname uptime bspwm i3";
|
modules-left = "hostname bspwm i3";
|
||||||
modules-center = "mpd";
|
modules-center = "mpd";
|
||||||
modules-right = "dirty root xbacklight volume wlan eth zram memory cpu battery date tray";
|
modules-right = "dirty root xbacklight volume wlan eth zram memory cpu battery date tray";
|
||||||
|
|
||||||
|
@ -141,36 +103,6 @@
|
||||||
scroll-down = "i3wm-wsprev";
|
scroll-down = "i3wm-wsprev";
|
||||||
};
|
};
|
||||||
|
|
||||||
"bar/bottom_main_1920" = {
|
|
||||||
monitor = "\${env:MONITOR:}";
|
|
||||||
bottom = true;
|
|
||||||
|
|
||||||
radius = 0;
|
|
||||||
height = 25;
|
|
||||||
width = "100%";
|
|
||||||
|
|
||||||
padding = 1;
|
|
||||||
line-size = 3;
|
|
||||||
module-margin = 1;
|
|
||||||
|
|
||||||
background = "\${colors.background}";
|
|
||||||
foreground = "\${colors.foreground}";
|
|
||||||
|
|
||||||
font = [
|
|
||||||
"fixed:pixelsize=14;1"
|
|
||||||
"unifont:fontformat=truetype:size=12:antialias=false;0"
|
|
||||||
"FontAwesome5Free-Solid:weight=heavy:size=12"
|
|
||||||
#"siji:pixelsize=14;1"
|
|
||||||
];
|
|
||||||
|
|
||||||
modules-left = "hostname uptime bspwm i3";
|
|
||||||
modules-center = "mpd";
|
|
||||||
modules-right = "dirty volume wlan eth memory cpu battery date tray";
|
|
||||||
|
|
||||||
scroll-up = "i3wm-wsnext";
|
|
||||||
scroll-down = "i3wm-wsprev";
|
|
||||||
};
|
|
||||||
|
|
||||||
"module/tray" = {
|
"module/tray" = {
|
||||||
type = "internal/tray";
|
type = "internal/tray";
|
||||||
};
|
};
|
||||||
|
@ -187,7 +119,7 @@
|
||||||
label-mounted = "%mountpoint%%{F-} %free% of %total%";
|
label-mounted = "%mountpoint%%{F-} %free% of %total%";
|
||||||
label-mounted-foreground = "\${colors.foreground-alt}";
|
label-mounted-foreground = "\${colors.foreground-alt}";
|
||||||
|
|
||||||
bar-used-width = 10;
|
bar-used-width = 5;
|
||||||
bar-used-fill = "█";
|
bar-used-fill = "█";
|
||||||
bar-used-empty = "█";
|
bar-used-empty = "█";
|
||||||
bar-used-indicator = "";
|
bar-used-indicator = "";
|
||||||
|
@ -227,18 +159,6 @@
|
||||||
format-prefix-foreground = "\${colors.foreground-alt}";
|
format-prefix-foreground = "\${colors.foreground-alt}";
|
||||||
};
|
};
|
||||||
|
|
||||||
"module/uptime" = {
|
|
||||||
type = "custom/script";
|
|
||||||
exec = "echo $(uptime | sed 's|.*up|up|; s|,.*||')";
|
|
||||||
interval = 60;
|
|
||||||
|
|
||||||
format = "<label>";
|
|
||||||
format-underline = "#72fb81";
|
|
||||||
|
|
||||||
format-prefix = "";
|
|
||||||
format-prefix-foreground = "\${colors.foreground-alt}";
|
|
||||||
};
|
|
||||||
|
|
||||||
"module/dirty" = {
|
"module/dirty" = {
|
||||||
type = "custom/script";
|
type = "custom/script";
|
||||||
exec = "grep -e Dirty: /proc/meminfo | sed 's/Dirty: *//; s/ kB/000/' | numfmt --to=iec --suffix=B | sed 's/\\([0-9]\\)\\([A-Z]\\)/\\1 \\2/'";
|
exec = "grep -e Dirty: /proc/meminfo | sed 's/Dirty: *//; s/ kB/000/' | numfmt --to=iec --suffix=B | sed 's/\\([0-9]\\)\\([A-Z]\\)/\\1 \\2/'";
|
||||||
|
@ -292,7 +212,7 @@
|
||||||
format = "<label> <bar-swap-used>";
|
format = "<label> <bar-swap-used>";
|
||||||
format-underline = "#256d7b";
|
format-underline = "#256d7b";
|
||||||
|
|
||||||
bar-swap-used-width = 10;
|
bar-swap-used-width = 5;
|
||||||
bar-swap-used-fill = "█";
|
bar-swap-used-fill = "█";
|
||||||
bar-swap-used-empty = "█";
|
bar-swap-used-empty = "█";
|
||||||
bar-swap-used-indicator = "";
|
bar-swap-used-indicator = "";
|
||||||
|
|
Loading…
Reference in New Issue