summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoroda2019-05-08 12:34:45 +0900
committeroda2019-05-08 12:34:45 +0900
commit710b34db223017e2d4806eb9ebeb1206e666cc23 (patch)
tree116f9e3016ef1667ace214c752c874785130e607
parent62339ad0739e729b5aa4beb6a46c584903b931a2 (diff)
downloadaur-710b34db223017e2d4806eb9ebeb1206e666cc23.tar.gz
fix build failed
-rw-r--r--.SRCINFO2
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD2
-rw-r--r--config.h66
4 files changed, 68 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fd36273a764..6169ac22aa9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -10,7 +10,7 @@ pkgbase = bspwmbar
depends = libxft
depends = fontconfig
source = https://github.com/odknt/bspwmbar/archive/v0.2.0.tar.gz
- source = config.def.h
+ source = config.h
sha256sums = 0f81370e64ae2946dd585ae2e09150b174834a6238d0eb5365ec3ca40981cca2
sha256sums = SKIP
diff --git a/.gitignore b/.gitignore
index f54a95dc560..8999a8b0149 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-config.h
v*.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index 70cc9a04154..8b5dfc2abe0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ license=('ISC')
url='https://github.com/odknt/bspwmbar'
depends=(bspwm alsa-lib libxft fontconfig)
source=("https://github.com/odknt/bspwmbar/archive/v${pkgver}.tar.gz"
- 'config.def.h')
+ 'config.h')
sha256sums=('0f81370e64ae2946dd585ae2e09150b174834a6238d0eb5365ec3ca40981cca2'
'SKIP')
diff --git a/config.h b/config.h
new file mode 100644
index 00000000000..b90d62a4da2
--- /dev/null
+++ b/config.h
@@ -0,0 +1,66 @@
+/* See LICENSE file for copyright and license details. */
+
+#ifndef BSPWMBAR_CONFIG_H_
+#define BSPWMBAR_CONFIG_H_
+
+#include "bspwmbar.h"
+
+/* intel */
+#define THERMAL_PATH "/sys/class/thermal/thermal_zone0/temp"
+/* k10temp */
+/* #define THERMAL_PATH "/sys/class/hwmon/hwmon1/temp1_input" */
+
+#define FONT_MAXSZ 3
+#define NAME_MAXSZ 32
+#define TITLE_MAXSZ 50
+#define WS_MAXSZ 5
+#define BAR_HEIGHT 24
+#define BGCOLOR 0
+#define ALTFGCOLOR 1
+#define ALTBGCOLOR 8
+#define FGCOLOR 2
+#define LOGOCOLOR 3
+
+const char *workspace_chars[] = { "", "" };
+
+const char *colors[] = {
+ "#222222", /* black */
+ "#7f7f7f", /* gray */
+ "#e5e5e5", /* white */
+ "#1793d1", /* logo color */
+
+ "#449f3d", /* success color */
+ "#2f8419", /* normal color */
+ "#f5a70a", /* warning color */
+ "#ed5456", /* critical color */
+
+ "#555555", /* dark gray */
+};
+
+const char *fontname = "sans-serif:size=10";
+
+/* init, deinit, handler for polling fd */
+const Poller pollers[] = {
+ /* init deinit handler */
+ { alsa_connect, alsa_disconnect, alsa_update },
+};
+
+/* for modules on the right (float: right;) */
+const Module modules[] = {
+ /* function argument event handler */
+ /* float: left; */
+ { logo, "", NULL },
+ { workspace, NULL, NULL },
+ { windowtitle, "…", NULL },
+
+ /* float: right; */
+ { float_right, NULL, NULL },
+ { datetime, "%H:%M", NULL },
+ { thermal, THERMAL_PATH, NULL },
+ { filesystem, "/", NULL },
+ { volume, NULL, volume_ev },
+ { memgraph, NULL, NULL },
+ { cpugraph, NULL, NULL },
+};
+
+#endif