summaryrefslogtreecommitdiff
path: root/wm/sowm/patches/patch-config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'wm/sowm/patches/patch-config.def.h')
-rw-r--r--wm/sowm/patches/patch-config.def.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/wm/sowm/patches/patch-config.def.h b/wm/sowm/patches/patch-config.def.h
new file mode 100644
index 00000000000..d6299953794
--- /dev/null
+++ b/wm/sowm/patches/patch-config.def.h
@@ -0,0 +1,27 @@
+$NetBSD: patch-config.def.h,v 1.1 2020/04/12 17:32:45 pin Exp $
+
+Use mixerctl instead of amixer on NetBSD
+Use scrot instead of scr as no scr is provided by pkg scrot
+
+--- config.def.h.orig 2020-02-21 16:08:47.000000000 +0000
++++ config.def.h
+@@ -5,12 +5,18 @@
+
+ const char* menu[] = {"dmenu_run", 0};
+ const char* term[] = {"st", 0};
+-const char* scrot[] = {"scr", 0};
++const char* scrot[] = {"scrot", 0};
+ const char* briup[] = {"bri", "10", "+", 0};
+ const char* bridown[] = {"bri", "10", "-", 0};
++#if defined (__NetBSD__)
++const char* volup[] = {"mixerctl", "-w", "outputs.master+=5", 0};
++const char* voldown[] = {"mixerctl", "-w", "outputs.master-=5", 0};
++const char* volmute[] = {"mixerctl", "-w", "outputs.master=0", 0};
++#elif
+ const char* voldown[] = {"amixer", "sset", "Master", "5%-", 0};
+ const char* volup[] = {"amixer", "sset", "Master", "5%+", 0};
+ const char* volmute[] = {"amixer", "sset", "Master", "toggle", 0};
++#endif
+ const char* colors[] = {"bud", "/home/goldie/Pictures/Wallpapers", 0};
+
+ static struct key keys[] = {