aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorNikita Langer <nikitalanger@icloud.com>2026-08-22 18:23:18 +0200
committerNikita Langer <nikitalanger@icloud.com>2026-08-22 18:23:18 +0200
commit98f342c73911d1ba4afcdcd36bd5b4fb9cade224 (patch)
tree1dd0db18d76f5af51e161f919179e84142c3cc25 /config.def.h
parent960d0661f6ed5ab6fd9c371c53a5f5b137864da1 (diff)
downloaddwl-98f342c73911d1ba4afcdcd36bd5b4fb9cade224.tar.gz
dwl-98f342c73911d1ba4afcdcd36bd5b4fb9cade224.tar.bz2
dwl-98f342c73911d1ba4afcdcd36bd5b4fb9cade224.tar.xz
dwl-98f342c73911d1ba4afcdcd36bd5b4fb9cade224.zip
systrayHEADmaster
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h
index 0777892..c349ab7 100644
--- a/config.def.h
+++ b/config.def.h
@@ -16,6 +16,8 @@ static const unsigned int gappoh = 5; /* horiz outer gap between wind
static const unsigned int gappov = 5; /* vert outer gap between windows and screen edge */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
+static const unsigned int systrayspacing = 2; /* systray spacing */
+static const int showsystray = 1; /* 0 means no systray */
static const char *fonts[] = {"JetBrains Mono Nerd Font Propo:size=11"};
static const char wmenufont[] = "JetBrains Mono Nerd Font Propo 11";
static const float rootcolor[] = COLOR(0x000000ff);
@@ -61,6 +63,7 @@ static const Rule rules[] = {
{ "Gimp_EXAMPLE", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
{ "firefox_EXAMPLE", NULL, 1 << 8, 0, -1 }, /* Start on ONLY tag "9" */
{ "steam", NULL, 1 << 6, 0, -1 }, /* Start on ONLY tag "9" */
+ { "xdg-desktop-portal-gtk", NULL, 0, 1, -1 }, /* Für Firefox downlaod, weil warum auch immer das tiled */
/* default/example rule: can be changed but cannot be eliminated; at least one rule must exist */
};
@@ -84,7 +87,7 @@ static const MonitorRule monrules[] = {
* -1 sets a custom mode following the user's choice
* All other numbers set the mode at the index n; 0 is the standard mode; see wlr-randr
*/
-{ "DP-1", 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0, 0, 0, 0.0f, 1, 1 },
+ { "DP-1", 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, 0, 0, 0, 0, 0.0f, 1, 0 },
{ NULL, 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1, 0, 0, 0.0f, 0, 1},
// {"DP-1", 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1, 0, 0, 260.0f, 0, 1},
// { "DP-1", 0.55f, 1, 1, &layouts[0], WL_OUTPUT_TRANSFORM_NORMAL, -1, -1, 0, 0, 0.0f, 1, 1 },
@@ -177,13 +180,14 @@ static const int cursor_timeout = 5;
/* commands */
static const char *termcmd[] = { "foot", NULL };
+static const char *dmenucmd[] = { "wmenu", NULL };
// static const char *termcmd[] = { "kitty", NULL };
static const char *menucmd[] = { "wmenu-run", "-f", wmenufont, NULL };
static const char *firefox[] = { "firefox", NULL };
static const char *steam[] = { "steam", NULL };
static const char *altmenu[] = { "wofi", "--show", "drun", NULL };
-static const char *screen[] = { "wlr-randr", "--output", "DP-1", "--mode", "2560x1440@260.002014", NULL };
-static const char *altscreen[] = { "wlr-randr", "--output", "DP-1", "--mode", "2560x1440@240.001007", NULL };
+// static const char *altscreen[] = { "wlr-randr", "--output", "DP-1", "--mode", "2560x1440@260.002014", NULL };
+static const char *screen[] = { "wlr-randr", "--output", "DP-1", "--mode", "2560x1440@240.001007", NULL };
static const char *dolphinfix[]= { "/usr/local/bin/dolphinfix.sh", NULL };
static const char *dolphin[] = { "dolphin" ,NULL };
static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL };
@@ -205,8 +209,8 @@ static const Key keys[] = {
{ MODKEY, XKB_KEY_d, spawn, {.v = menucmd} },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_d, spawn, {.v = altmenu} },
{ MODKEY, XKB_KEY_n, spawn, {.v = screen} },
- { MODKEY, XKB_KEY_n, spawn, {.v = minecraft} },
- { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_n, spawn, {.v = altscreen} },
+ { MODKEY, XKB_KEY_p, spawn, {.v = minecraft} },
+ // { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_n, spawn, {.v = altscreen} },
{ MODKEY|WLR_MODIFIER_ALT, XKB_KEY_n, spawn, {.v = lockcmd} },
{ MODKEY, XKB_KEY_e, spawn, {.v = dolphin} },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_e, spawn, {.v = dolphinfix} },
@@ -305,4 +309,6 @@ static const Button buttons[] = {
{ ClkTagBar, 0, BTN_RIGHT, toggleview, {0} },
{ ClkTagBar, MODKEY, BTN_LEFT, tag, {0} },
{ ClkTagBar, MODKEY, BTN_RIGHT, toggletag, {0} },
+ { ClkTray, 0, BTN_LEFT, trayactivate, {0} },
+ { ClkTray, 0, BTN_RIGHT, traymenu, {0} },
};