mirror of
https://github.com/vale981/yabar
synced 2025-03-05 09:31:39 -05:00
195 lines
5.4 KiB
Text
195 lines
5.4 KiB
Text
#Hi!, this config is not intended to become an example of beauty in yabar.
|
|
#It is just intended to show an example (specifically an example config that uses internal blocks) of what you can do using yabar.
|
|
|
|
bar-list = ["topbar"];
|
|
topbar:{
|
|
font: "Droid Sans, FontAwesome Bold 9";
|
|
block-list: ["ya_diskspace", "ya_ws", "ya_title", "ya_date", "ya_diskusage", "ya_volume", "ya_uptime", "ya_cpu", "ya_thermal", "ya_brightness", "ya_bw", "ya_mem", "ya_disk", "ya_bat"];
|
|
position: "top";
|
|
gap-horizontal: 10;
|
|
gap-vertical: 10;
|
|
#width: 1100;
|
|
height: 20;
|
|
//If you want transparency, use argb, not rgb
|
|
background-color-rgb: 0x000000;
|
|
underline-size: 2;
|
|
overline-size: 2;
|
|
slack-size: 4;
|
|
#border-size: 2;
|
|
#monitor: "LVDS1"; # get name from `xrandr`
|
|
|
|
# various examples for internal blocks:
|
|
ya_ws: {
|
|
exec: "YABAR_WORKSPACE";
|
|
align: "left";
|
|
fixed-size: 40;
|
|
internal-option1: " ";
|
|
}
|
|
ya_title: {
|
|
exec: "YABAR_TITLE";
|
|
align: "left";
|
|
justify: "left";
|
|
fixed-size: 300;
|
|
}
|
|
ya_date:{
|
|
exec: "YABAR_DATE";
|
|
align: "center";
|
|
fixed-size: 120;
|
|
interval: 2;
|
|
background-color-rgb:0x279DBD;
|
|
underline-color-rgb:0xC02942;
|
|
internal-prefix: " ";
|
|
internal-option1: "%a %d %b, %I:%M";
|
|
}
|
|
ya_diskusage:{
|
|
exec: "YABAR_DISKSPACE";
|
|
align: "right";
|
|
fixed-size: 120;
|
|
interval: 10;
|
|
internal-prefix: " ";
|
|
# examples for this option:
|
|
# "/dev/sda1" first partition of device sda
|
|
# "/dev/sdb" all mounted partitions of device sdb
|
|
# "/dev/mapper/vgc-" all mounted logical volumes of volume group vgc
|
|
# "/dev" all mounted partitions / logical volumes
|
|
internal-option1: "/dev/sda";
|
|
background-color-rgb:0x49708A;
|
|
underline-color-rgb:0xECD078;
|
|
}
|
|
ya_volume:{
|
|
exec: "YABAR_VOLUME";
|
|
align: "right";
|
|
interval: 1;
|
|
internal-option1 : "default"; # device
|
|
internal-option2 : "Master;0"; # Mixer index (separated by a semicolon)
|
|
internal-option3 : " "; # characters to display when sound is on or off (separated by a space)
|
|
internal-suffix: "%";
|
|
background-color-rgb:0x529e67;
|
|
underline-color-rgb:0x91313b;
|
|
}
|
|
ya_uptime:{
|
|
exec: "YABAR_UPTIME";
|
|
align: "right";
|
|
fixed-size: 70;
|
|
interval: 1;
|
|
background-color-rgb:0x96B49C;
|
|
underline-color-rgb:0xF8CA00;
|
|
internal-prefix: " ";
|
|
#internal-spacing: true;
|
|
}
|
|
ya_mem:{
|
|
exec: "YABAR_MEMORY";
|
|
align: "right";
|
|
fixed-size: 70;
|
|
interval: 1;
|
|
background-color-rgb:0x45ADA8;
|
|
underline-color-rgb:0xFA6900;
|
|
internal-prefix: " ";
|
|
#internal-spacing: true;
|
|
}
|
|
ya_thermal: {
|
|
exec: "YABAR_THERMAL";
|
|
align: "right";
|
|
fixed-size: 40;
|
|
interval: 1;
|
|
background-color-rgb:0x309292;
|
|
underline-color-rgb:0xE08E79;
|
|
internal-option1: "thermal_zone0"; # one of /sys/class/thermal/NAME/temp
|
|
internal-option2: "70; 0xFFFFFFFF; 0xFFED303C"; #Critical Temperature, fg, bg
|
|
internal-option3: "58; 0xFFFFFFFF; 0xFFF4A345"; #Warning Temperature, fg, bg
|
|
internal-prefix: " ";
|
|
#internal-spacing: true;
|
|
}
|
|
ya_brightness: {
|
|
exec: "YABAR_BRIGHTNESS";
|
|
align: "right";
|
|
fixed-size: 40;
|
|
interval: 1;
|
|
background-color-rgb:0x81A8B8;
|
|
underline-color-rgb:0xBD1550;
|
|
internal-prefix: " ";
|
|
internal-option1: "intel_backlight"; # one of /sys/class/backlight/intel_backlight/brightness
|
|
#internal-spacing: true;
|
|
}
|
|
ya_bw: {
|
|
exec: "YABAR_BANDWIDTH";
|
|
align: "right";
|
|
fixed-size: 110;
|
|
interval: 1;
|
|
internal-prefix: " ";
|
|
internal-option1: "wlan0"; # "default" or network interface from `ifconfig` or `ip link`
|
|
internal-option2: " "; # characters to be placed before up/down data
|
|
#background-color-rgb:0x547980;
|
|
background-color-rgb:0x3EC9A7;
|
|
underline-color-rgb:0xD95B43;
|
|
#internal-spacing: true;
|
|
}
|
|
ya_cpu: {
|
|
exec: "YABAR_CPU";
|
|
align: "right";
|
|
fixed-size: 60;
|
|
interval: 1;
|
|
internal-prefix: " ";
|
|
internal-suffix: "%";
|
|
background-color-rgb:0x98D9B6;
|
|
underline-color-rgb:0xE97F02;
|
|
#internal-spacing: true;
|
|
}
|
|
ya_bat: {
|
|
exec: "YABAR_BATTERY";
|
|
align: "right";
|
|
fixed-size: 70;
|
|
interval: 1;
|
|
internal-suffix: "%";
|
|
internal-option1: "BAT0";
|
|
internal-option2: " ";
|
|
#internal-spacing: true;
|
|
}
|
|
ya_disk: {
|
|
exec: "YABAR_DISKIO";
|
|
align: "right";
|
|
fixed-size: 110;
|
|
interval: 1;
|
|
internal-prefix: " ";
|
|
internal-option1: "sda"; # name from `lsblk` or `ls /sys/class/block/`
|
|
internal-option2: " "; # characters to be placed before in/out data
|
|
background-color-rgb:0x49708A;
|
|
underline-color-rgb:0xECD078;
|
|
#internal-spacing: true;
|
|
}
|
|
ya_diskspace:{
|
|
exec: "YABAR_DISKSPACE";
|
|
align: "left";
|
|
fixed-size: 120;
|
|
interval: 10;
|
|
internal-prefix: " ";
|
|
# examples for this option:
|
|
# "/dev/sda1" first partition of device sda
|
|
# "/dev/sdb" all mounted partitions of device sdb
|
|
# "/dev/mapper/vgc-" all mounted logical volumes of volume group vgc
|
|
# "/dev" all mounted partitions / logical volumes
|
|
internal-option1: "/dev/sda";
|
|
background-color-rgb:0x49708A;
|
|
underline-color-rgb:0xECD078;
|
|
}
|
|
# example for an external block
|
|
title: {
|
|
exec: "xtitle -s";
|
|
align: "left";
|
|
fixed-size: 350;
|
|
type: "persist";
|
|
foreground-color-rgb:0xeeeeee;
|
|
underline-color-rgb:0x373b41;
|
|
overline-color-rgb:0x373b41;
|
|
}
|
|
# another example for an external block
|
|
date: {
|
|
exec: "date +'%a %d %b, %I:%M'";
|
|
align: "right";
|
|
fixed-size: 150;
|
|
type: "periodic";
|
|
interval: 1;
|
|
foreground-color-rgb:0x92D8F0;
|
|
underline-color-rgb:0xc0b929;
|
|
}
|
|
}
|