From b49730c05e3a8cd34d933dc202089feb54fd93af Mon Sep 17 00:00:00 2001 From: Ray Andrew <4437323+rayandrew@users.noreply.github.com> Date: Sun, 20 Oct 2024 23:34:25 -0500 Subject: [PATCH] update dwm --- config.def.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index b6ce3ba..2b37ac8 100644 --- a/config.def.h +++ b/config.def.h @@ -58,6 +58,8 @@ static const char *const autostart[] = { SHAUTOSTART("betterlockscreen -w dim"), NULL, SHAUTOSTART("xss-lock -n /usr/share/doc/xss-lock/dim-screen.sh --transfer-sleep-lock -- ~/bin/lockscreen"), NULL, SHAUTOSTART("killall dunst; dunst"), NULL, + // "feh", "--recursive", "--bg-fill", "~/Pictures/wallpaper", NULL, + SHAUTOSTART("feh --recursive --bg-fill $HOME/Pictures/wallpaper"), NULL, // "killall", "dunst", NULL, // "dunst", NULL, NULL /* terminate */ @@ -82,6 +84,7 @@ static const Rule rules[] = { { "Gimp", NULL, NULL, 0, 0, 1, 0, 0, -1 }, { "wezterm", NULL, NULL, 0, 0, 0, 1, 0, -1 }, { "st", NULL, NULL, 0, 0, 0, 1, 0, -1 }, + // { "albert", NULL, NULL, 0, 0, 1, 0, 0, -1 }, { "Gcr-prompter", NULL, NULL, 0, 1, 1, 1, 0, -1 }, { "st", NULL, "thesaurus-syn", 0, 1, 1, 1, 1, -1 }, { NULL, NULL, "Event Tester", 0, 0, 0, 0, 1, -1 }, /* xev */ @@ -133,6 +136,7 @@ static const Layout layouts[] = { #define TERM(cmd) { .v = (const char*[]){ TERM_CMD, cmd, NULL } } static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "rofi", "-dpi", "1", "-show", "drun", NULL }; +static const char *albertcmd[] = { "albert", "toggle", NULL }; static const char *calccmd[] = { "rofi", "-dpi", "1", "-show", "calc", "-modi", "calc", "-no-show-match", "-no-sort", "-kb-accept-custom", "Return", "-kb-accept-entry", "Control+Return", "-calc-command", "\"echo -n '{result}' | xclip\"", "-theme", "~/.config/rofi/calc.rasi", NULL}; static const char *clipboardcmd[] = { "rofi", "-dpi", "1", "-modi", "clipboard:~/bin/cliphist-rofi-img", "-show", "clipboard", "-show-icons", "-theme", "~/.config/rofi/clipboard.rasi", NULL }; static const char *termcmd[] = { TERM_CMD, NULL }; @@ -152,12 +156,13 @@ static const char *mediaplayprevcmd[] = { "/usr/bin/playerctl", "previous static const Key keys[] = { /* modifier key function argument */ + // { MODKEY, XK_space, spawn, {.v = albertcmd } }, { MODKEY, XK_space, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_b, togglebar, {0} }, { MODKEY|ShiftMask, XK_space, spawn, {.v = calccmd } }, // { MODKEY, XK_j, focusstack, {.i = +1 } }, // { MODKEY, XK_k, focusstack, {.i = -1 } }, + { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_h, focusdir, {.i = 0 } }, { MODKEY, XK_l, focusdir, {.i = 1 } }, { MODKEY, XK_k, focusdir, {.i = 2 } },