Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
b6eba95813 | ||
|
|
5d0684a19a | ||
|
|
a00642fb3c |
19
config.def.h
19
config.def.h
@ -13,6 +13,9 @@ static const int swallowfloating = 0; /* 1 means swallow floating wind
|
|||||||
static const int scalepreview = 4; /* Tag preview scaling */
|
static const int scalepreview = 4; /* Tag preview scaling */
|
||||||
static const int showbar = 1; /* 0 means no bar */
|
static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
|
/* Custom Status Bar implementation */
|
||||||
|
// static const int usealtbar = 0; /* 1 means use non-dwm status bar */
|
||||||
|
// static const char *altbarclass = "Polybar"; /* Alternate bar class name */
|
||||||
/* Status is to be shown on: -1 (all monitors), 0 (a specific monitor by index), 'A' (active monitor) */
|
/* Status is to be shown on: -1 (all monitors), 0 (a specific monitor by index), 'A' (active monitor) */
|
||||||
static const int statusmon = -1;
|
static const int statusmon = -1;
|
||||||
static const unsigned int systrayspacing = 2; /* systray spacing */
|
static const unsigned int systrayspacing = 2; /* systray spacing */
|
||||||
@ -109,10 +112,12 @@ static const char *const autostart[] = {
|
|||||||
"sh", "/home/ganome/.local/bin/wallsetter.dwm", NULL,
|
"sh", "/home/ganome/.local/bin/wallsetter.dwm", NULL,
|
||||||
"parcellite", NULL,
|
"parcellite", NULL,
|
||||||
"picom", "-b", NULL,
|
"picom", "-b", NULL,
|
||||||
|
"numlockx", "on", NULL,
|
||||||
|
"blueman-applet", NULL,
|
||||||
NULL /* terminate */
|
NULL /* terminate */
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *scratchpadcmd[] = {"s", "kitty", "--name=spterm", NULL};
|
static const char *scratchpadcmd[] = {"s", "ghostty", "--x11-instance-name=spterm", NULL};
|
||||||
|
|
||||||
/* Tags
|
/* Tags
|
||||||
* In a traditional dwm the number of tags in use can be changed simply by changing the number
|
* In a traditional dwm the number of tags in use can be changed simply by changing the number
|
||||||
@ -178,7 +183,7 @@ static const Rule rules[] = {
|
|||||||
RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1)
|
RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1)
|
||||||
RULE(.wintype = WTYPE "SPLASH", .isfloating = 1)
|
RULE(.wintype = WTYPE "SPLASH", .isfloating = 1)
|
||||||
RULE(.class = "Gimp", .tags = 1 << 3)
|
RULE(.class = "Gimp", .tags = 1 << 3)
|
||||||
RULE(.class = "Vivaldi-stable", .tags = 1 << 2)
|
RULE(.class = "LibreWolf", .tags = 1 << 2)
|
||||||
RULE(.class = "Nemo", .tags = 1 << 6)
|
RULE(.class = "Nemo", .tags = 1 << 6)
|
||||||
RULE(.class = "quassel", .tags = 1 << 8)
|
RULE(.class = "quassel", .tags = 1 << 8)
|
||||||
RULE(.class = "vesktop", .tags = 1 << 3, .monitor = 1)
|
RULE(.class = "vesktop", .tags = 1 << 3, .monitor = 1)
|
||||||
@ -206,7 +211,7 @@ static const MonitorRule monrules[] = {
|
|||||||
static const BarRule barrules[] = {
|
static const BarRule barrules[] = {
|
||||||
/* monitor bar alignment widthfunc drawfunc clickfunc hoverfunc name */
|
/* monitor bar alignment widthfunc drawfunc clickfunc hoverfunc name */
|
||||||
{ -1, 0, BAR_ALIGN_LEFT, width_tags, draw_tags, click_tags, hover_tags, "tags" },
|
{ -1, 0, BAR_ALIGN_LEFT, width_tags, draw_tags, click_tags, hover_tags, "tags" },
|
||||||
{ 0, 0, BAR_ALIGN_RIGHT, width_systray, draw_systray, click_systray, NULL, "systray" },
|
{ 'A', 0, BAR_ALIGN_RIGHT, width_systray, draw_systray, click_systray, NULL, "systray" },
|
||||||
{ -1, 0, BAR_ALIGN_LEFT, width_ltsymbol, draw_ltsymbol, click_ltsymbol, NULL, "layout" },
|
{ -1, 0, BAR_ALIGN_LEFT, width_ltsymbol, draw_ltsymbol, click_ltsymbol, NULL, "layout" },
|
||||||
{ statusmon, 0, BAR_ALIGN_RIGHT, width_status, draw_status, click_status, NULL, "status" },
|
{ statusmon, 0, BAR_ALIGN_RIGHT, width_status, draw_status, click_status, NULL, "status" },
|
||||||
{ -1, 0, BAR_ALIGN_NONE, width_bartabgroups, draw_bartabgroups, click_bartabgroups, NULL, "bartabgroups" },
|
{ -1, 0, BAR_ALIGN_NONE, width_bartabgroups, draw_bartabgroups, click_bartabgroups, NULL, "bartabgroups" },
|
||||||
@ -248,9 +253,10 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
|
|||||||
NULL
|
NULL
|
||||||
}; */
|
}; */
|
||||||
|
|
||||||
static const char *termcmd[] = { "kitty", NULL };
|
static const char *termcmd[] = { "ghostty", NULL };
|
||||||
static const char *term2cmd[] = { "terminator", NULL };
|
static const char *term2cmd[] = { "kitty", NULL };
|
||||||
static const char *wallpapercmd[]= { "/home/ganome/.local/bin/wallsetter.dwm", NULL };
|
static const char *wallpapercmd[]= { "/home/ganome/.local/bin/wallsetter.dwm", NULL };
|
||||||
|
static const char *browsercmd[]= { "librewolf", NULL };
|
||||||
|
|
||||||
static const char *roficmd[] = {
|
static const char *roficmd[] = {
|
||||||
"rofi",
|
"rofi",
|
||||||
@ -267,6 +273,7 @@ static const Key keys[] = {
|
|||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = term2cmd } },
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = term2cmd } },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_d, spawn, CMD("vesktop-bin")},
|
{ MODKEY|ShiftMask, XK_d, spawn, CMD("vesktop-bin")},
|
||||||
|
{ MODKEY|ShiftMask, XK_w, spawn, {.v = browsercmd } },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||||
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
||||||
@ -293,8 +300,6 @@ static const Key keys[] = {
|
|||||||
{ MODKEY|ShiftMask, XK_n, spawn, {.v = wallpapercmd } },
|
{ MODKEY|ShiftMask, XK_n, spawn, {.v = wallpapercmd } },
|
||||||
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("exec pactl set-sink-volume @DEFAULT_SINK@ +5%")},
|
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("exec pactl set-sink-volume @DEFAULT_SINK@ +5%")},
|
||||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("exec pactl set-sink-volume @DEFAULT_SINK@ -5%")},
|
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("exec pactl set-sink-volume @DEFAULT_SINK@ -5%")},
|
||||||
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("exec brightnessctl set +5%") },
|
|
||||||
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("exec brightnessctl set 5%-") },
|
|
||||||
{ 0, XF86XK_AudioMute, spawn, SHCMD("exec pactl set-sink-mute @DEFAULT_SINK@ toggle")},
|
{ 0, XF86XK_AudioMute, spawn, SHCMD("exec pactl set-sink-mute @DEFAULT_SINK@ toggle")},
|
||||||
{ 0, XF86XK_AudioPlay, spawn, SHCMD("exec playerctl play-pause")},
|
{ 0, XF86XK_AudioPlay, spawn, SHCMD("exec playerctl play-pause")},
|
||||||
{ 0, XF86XK_AudioPause, spawn, SHCMD("exec playerctl play-pause")},
|
{ 0, XF86XK_AudioPause, spawn, SHCMD("exec playerctl play-pause")},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user