aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-01-17 10:57:46 +0200
committerDrNuget <drnuget@outlook.com>2025-01-17 10:57:46 +0200
commitfab65f12d88b4440c01dca92f580b235a1fbef0d (patch)
tree7b7f62521355e9efe3f67a65d951c48814a0069f
parentbaa50c479457133eb1cc6be4f49a85949fce07a3 (diff)
custom config.def.h
-rw-r--r--config.def.h25
1 files changed, 22 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 86e5afa..37422da 100644
--- a/config.def.h
+++ b/config.def.h
@@ -12,14 +12,19 @@ static const unsigned int gappx = 10; /* gap pixel between windows */
static const unsigned int borderpx = 1; /* border pixel of windows */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
-static const char *fonts[] = {"monospace:size=10"};
+static const char *fonts[] = {"monospace:size=9"};
static const float rootcolor[] = COLOR(0x000000ff);
/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */
static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */
static uint32_t colors[][3] = {
/* fg bg border */
- [SchemeNorm] = { 0xbbbbbbff, 0x222222ff, 0x444444ff },
- [SchemeSel] = { 0xeeeeeeff, 0x005577ff, 0x005577ff },
+ //Original DWL colors:
+ //[SchemeNorm] = { 0xbbbbbbff, 0x222222ff, 0x444444ff },
+ //[SchemeSel] = { 0xeeeeeeff, 0x005577ff, 0x005577ff },
+ //[SchemeUrg] = { 0, 0, 0x770000ff },
+ //Materia color scheme:
+ [SchemeNorm] = { 0xdfdfdfff, 0x121212ff, 0x474747ff },
+ [SchemeSel] = { 0xeeeeeeff, 0x1a73e8ff, 0x1a73e8ff },
[SchemeUrg] = { 0, 0, 0x770000ff },
};
@@ -118,6 +123,7 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA
/* If you want to use the windows key for MODKEY, use WLR_MODIFIER_LOGO */
#define MODKEY WLR_MODIFIER_ALT
+#define SUPER WLR_MODIFIER_LOGO
#define TAGKEYS(KEY,SKEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
@@ -131,10 +137,23 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA
/* commands */
static const char *termcmd[] = { "foot", NULL };
static const char *menucmd[] = { "wmenu-run", NULL };
+static const char *lockcmd[] = { "swaylock", "-i", "$WALLPAPER"};
+static const char *printcmd[] = {"grim", NULL};
+
+static const char *voli[] = {"pamixer", "-i", "5"};
+static const char *vold[] = {"pamixer", "-d", "5"};
+static const char *volm[] = {"pamixer", "-t"};
static const Key keys[] = {
/* Note that Shift changes certain key codes: c -> C, 2 -> at, etc. */
/* modifier key function argument */
+ { 0, XKB_KEY_Print, spawn, {.v = printcmd} },
+
+ { 0, XKB_KEY_XF86AudioLowerVolume, spawn,{.v = vold}},
+ { 0, XKB_KEY_XF86AudioRaiseVolume, spawn,{.v = voli}},
+ { 0, XKB_KEY_XF86AudioMute, spawn,{.v = volm}},
+
+ { SUPER, XKB_KEY_l, spawn, {.v = lockcmd} },
{ MODKEY, XKB_KEY_p, spawn, {.v = menucmd} },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} },
{ MODKEY, XKB_KEY_b, togglebar, {0} },