aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-09-16 13:11:26 +0200
committerBerke Kocaoğlu <berke.kocaoglu@metu.edu.tr>2021-09-16 21:55:31 +0200
commit0b2078316405af6b96a174628004f828f8fb8092 (patch)
tree7fbb4d8858d821861286653eba450abc8cecae25
parent7cce7ea857321c854fc9e061edee3a32f4831d18 (diff)
downloadnsxiv-0b2078316405af6b96a174628004f828f8fb8092.tar.zst
change .font to .bar.font for consistency (#48)
-rw-r--r--CHANGELOG.md1
-rw-r--r--nsxiv.12
-rw-r--r--window.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a9c2498..0d4aff1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ nsxiv
Changes:
* Re-release under the name nsxiv
* Sxiv.foreground and Sxiv.background changed to Nsxiv.window.foreground and Nsxiv.window.background
+ * `Sxiv.font` changed to `Nsxiv.bar.font`
* Rework the build system (#19). Now by default we'll build with only optional dependencies that are already installed
Added:
* Fill scale mode (#2)
diff --git a/nsxiv.1 b/nsxiv.1
index 5d25099..ca5727d 100644
--- a/nsxiv.1
+++ b/nsxiv.1
@@ -408,7 +408,7 @@ Color of the bar background. Defaults to window.foreground
.B bar.foreground
Color of the bar foreground. Defaults to window.background
.TP
-.B font
+.B bar.font
Name of Xft bar font
.TP
Please see xrdb(1) on how to change them.
diff --git a/window.c b/window.c
index 3cd6c4a..d05bef7 100644
--- a/window.c
+++ b/window.c
@@ -130,7 +130,7 @@ void win_init(win_t *win)
res_man = XResourceManagerString(e->dpy);
db = res_man != NULL ? XrmGetStringDatabase(res_man) : None;
- f = win_res(db, RES_CLASS ".font", "monospace-8");
+ f = win_res(db, RES_CLASS ".bar.font", "monospace-8");
win_init_font(e, f);
win_bg = win_res(db, RES_CLASS ".window.background", "white");