summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoroda2019-09-03 10:04:45 +0900
committeroda2019-09-03 10:04:45 +0900
commitcd73995efda274811281ac72acb3045a17e1e47e (patch)
tree3a8833c1b222d68c749f1b3d15c0624daa9d5e49
parenteb68c57657867b8483e19e59299ddba8cceeaaef (diff)
downloadaur-cd73995efda274811281ac72acb3045a17e1e47e.tar.gz
update to v0.5.1
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD4
-rw-r--r--config.h37
3 files changed, 30 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e66f30c3a7e..51944633257 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = bspwmbar
pkgdesc = A lightweight status bar for bspwm
- pkgver = 0.5.0
+ pkgver = 0.5.1
pkgrel = 1
url = https://github.com/odknt/bspwmbar
arch = x86_64
@@ -13,9 +13,9 @@ pkgbase = bspwmbar
depends = libxext
depends = fontconfig
optdepends = ttf-nerd-fonts-symbols: default prefix icons font
- source = https://github.com/odknt/bspwmbar/archive/v0.5.0.tar.gz
+ source = https://github.com/odknt/bspwmbar/archive/v0.5.1.tar.gz
source = config.h
- sha256sums = 511091af117033ca1d8b04b771f4226a87e05871c2a06fd493fecacb80796934
+ sha256sums = a6d5920626568f2161121004b000e7dd0b614c361471467dbea9e6135453401d
sha256sums = SKIP
pkgname = bspwmbar
diff --git a/PKGBUILD b/PKGBUILD
index d5a88d81d7c..f667478ec10 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# maintainer: odknt <oda.kenta.hj at gmail.com>
pkgname=bspwmbar
-pkgver=0.5.0
+pkgver=0.5.1
pkgrel=1
pkgdesc='A lightweight status bar for bspwm'
arch=(x86_64)
@@ -10,7 +10,7 @@ depends=(bspwm alsa-lib libx11 libxrandr libxft libxext fontconfig)
optdepends=('ttf-nerd-fonts-symbols: default prefix icons font')
source=("https://github.com/odknt/bspwmbar/archive/v${pkgver}.tar.gz"
'config.h')
-sha256sums=('511091af117033ca1d8b04b771f4226a87e05871c2a06fd493fecacb80796934'
+sha256sums=('a6d5920626568f2161121004b000e7dd0b614c361471467dbea9e6135453401d'
'SKIP')
prepare() {
diff --git a/config.h b/config.h
index 464e64af648..a7983fb8091 100644
--- a/config.h
+++ b/config.h
@@ -10,20 +10,25 @@
/* k10temp */
/* #define THERMAL_PATH "/sys/class/hwmon/hwmon1/temp1_input" */
-#define FONT_MAXSZ 3
+/* max length of monitor output name and bspwm desktop name */
#define NAME_MAXSZ 32
+/* max length of active window title */
#define TITLE_MAXSZ 50
-#define WS_MAXSZ 5
+/* set window height */
#define BAR_HEIGHT 24
+/* set tray icon size */
#define TRAY_ICONSZ 16
-#define BGCOLOR 0
-#define ALTFGCOLOR 1
-#define ALTBGCOLOR 8
-#define FGCOLOR 2
-#define LOGOCOLOR 3
-const char *workspace_chars[] = { "", "" };
+/* set font pattern for find fonts, see fonts-conf(5) */
+const char *fontname = "sans-serif:size=10";
+
+/* set strings for uses on render bspwm desktop */
+#define WS_ACTIVE ""
+#define WS_INACTIVE ""
+/*
+ * color map for bspwmbar
+ */
const char *colors[] = {
"#222222", /* black */
"#7f7f7f", /* gray */
@@ -38,13 +43,20 @@ const char *colors[] = {
"#555555", /* dark gray */
};
-const char *fontname = "sans-serif:size=10";
+/*
+ * color settings by index of color map
+ */
+#define BGCOLOR 0
+#define ALTFGCOLOR 1
+#define ALTBGCOLOR 8
+#define FGCOLOR 2
+#define LOGOCOLOR 3
/*
* function description
*
* logo render the given string
- * workspace bspwm workspaces
+ * desktops bspwm desktop states
* windowtitle active window title
* datetime the current time in the given format
* thermal temperature of given sensor file
@@ -56,14 +68,15 @@ const char *fontname = "sans-serif:size=10";
/* for modules on the left (float: left;) */
const Module left_modules[] = {
/* function argument event handler */
+ /* float: left; */
{ logo, "", NULL },
- { workspace, NULL, NULL },
+ { desktops, NULL, NULL },
{ windowtitle, "…", NULL },
};
/* for modules on the right (float: right;) */
const Module right_modules[] = {
- /* function argument event handler */
+ /* float: right; */
{ datetime, "%H:%M", NULL },
{ thermal, THERMAL_PATH, NULL },
{ filesystem, "/", NULL },