diff options
author | Joe <rbo@gmx.us> | 2024-12-19 18:04:09 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-12-19 18:04:09 +0100 |
commit | 0ad7bda8c4e0db87bb10aac6e504ae203b219f12 (patch) | |
tree | d39b692da4f905e097dfc823a7174affd6861943 | |
parent | applied scratchpads (diff) | |
download | dwm-0ad7bda8c4e0db87bb10aac6e504ae203b219f12.tar.gz dwm-0ad7bda8c4e0db87bb10aac6e504ae203b219f12.tar.bz2 dwm-0ad7bda8c4e0db87bb10aac6e504ae203b219f12.tar.xz dwm-0ad7bda8c4e0db87bb10aac6e504ae203b219f12.tar.zst dwm-0ad7bda8c4e0db87bb10aac6e504ae203b219f12.zip |
ogogog
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | applied/dwm-scratchpads-20200414-728d397b.diff (renamed from dwm-scratchpads-20200414-728d397b.diff) | 0 | ||||
-rw-r--r-- | compile_commands.json | 27 | ||||
-rw-r--r-- | config.def.h | 12 |
4 files changed, 9 insertions, 32 deletions
@@ -128,3 +128,5 @@ flycheck_*.el .ccls* dwm compile_flags.txt +compile_commands.json +.cache/ diff --git a/dwm-scratchpads-20200414-728d397b.diff b/applied/dwm-scratchpads-20200414-728d397b.diff index d3e90c0..d3e90c0 100644 --- a/dwm-scratchpads-20200414-728d397b.diff +++ b/applied/dwm-scratchpads-20200414-728d397b.diff diff --git a/compile_commands.json b/compile_commands.json deleted file mode 100644 index dcff5ac..0000000 --- a/compile_commands.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-std=c99", - "-pedantic", - "-Wall", - "-Wno-deprecated-declarations", - "-march=alderlake", - "-Os", - "-pipe", - "-I/usr/X11R6/include", - "-I/usr/include/freetype2", - "-D_DEFAULT_SOURCE", - "-D_BSD_SOURCE", - "-D_XOPEN_SOURCE=700L", - "-DVERSION=\"6.5\"", - "-DXINERAMA", - "-DHOME=\"/home/r_bousset/\"", - "-DHOMEBIN=\"/home/r_bousset/.local/bin/\"", - "dwm.c" - ], - "directory": "/home/r_bousset/.local/packs/dwm", - "file": "/home/r_bousset/.local/packs/dwm/dwm.c" - } -] diff --git a/config.def.h b/config.def.h index 84a94b5..1ec2ee2 100644 --- a/config.def.h +++ b/config.def.h @@ -36,11 +36,13 @@ typedef struct { const char *spcmd1[] = {"alacritty", "--class", "spterm", NULL }; const char *spcmd2[] = {"alacritty", "--class", "spfm", "-e", "zsh", "-ic", "lf", NULL }; const char *spcmd3[] = {"pcmanfm", NULL }; +const char *spcmd4[] = {"alacritty", "--class", "spflip", "-e", "zsh", "-ic", "hf", NULL }; static Sp scratchpads[] = { /* name cmd */ {"spterm", spcmd1}, {"spfm", spcmd2}, {"spfmgui", spcmd3}, + {"spflip", spcmd4}, }; /* tagging */ @@ -79,8 +81,9 @@ static const Rule rules[] = { { "teams-for-linux", NULL, NULL, 0, 1, 0, 0, 1 }, { "thunderbird", NULL, NULL, 1 << 1, 0, 0, 0, 1 }, { NULL, "spterm", NULL, SPTAG(0), 1, 0, 0, -1 }, - { NULL, "spfm", NULL, SPTAG(1), 1, 0, 0, -1 }, - { "pcmanfm", NULL, NULL, SPTAG(2), 1, 0, 0, -1 }, + { NULL, "spfm", NULL, SPTAG(1), 1, 1, 0, -1 }, + { NULL, "pcmanfm", NULL, SPTAG(2), 1, 0, 0, -1 }, + { NULL, "spflip", NULL, SPTAG(3), 1, 1, 0, -1 }, }; /* layout(s) */ @@ -122,7 +125,7 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *term_cmd[] = { "alacritty", NULL }; static const char *hardflip_cmd[] = { "alacritty", "-e", "hf", NULL }; -static const char *dmenucmd[] = { "dmenu_run", "-i", "-m", "0", NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-i", "-m", "0", NULL }; static const char *dmapps_cmd[] = { "/home/r_bousset/.local/bin/dmapps", NULL }; static const char *dmpc_cmd[] = { "/home/r_bousset/.local/bin/dmpc", NULL }; static const char *dmkill_cmd[] = { "/home/r_bousset/.local/bin/dmkill", NULL }; @@ -138,7 +141,6 @@ static const char *ndate_cmd[] = { "/home/r_bousset/.local/bin/ndate", NUL // static const char *edit_cmd[] = { "emacsclient", "-c", NULL }; static const char *browser_cmd[] = { "firefox", NULL }; static const char *torbro_cmd[] = { "torify", "librewolf", NULL }; -static const char *w3m_cmd[] = { "alacritty", "-e", "w3m", "https://start.duckduckgo.com/", NULL }; static const char *nb_cmd[] = { "alacritty", "-e", "newsboat", NULL }; static const char *ncmpc_cmd[] = { "alacritty", "-e", "ncmpc", NULL }; static const char *cal_cmd[] = { "alacritty", "-e", "calcurse", "-C", "/home/r_bousset/.config/calcurse", "-D", "/home/r_bousset/.local/share/calcurse", NULL }; @@ -170,7 +172,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_F2, togglescratch, {.ui = 2 } }, { MODKEY, XK_F3, spawn, {.v = browser_cmd } }, { MODKEY|ShiftMask, XK_F3, spawn, {.v = torbro_cmd } }, - { MODKEY, XK_F4, spawn, {.v = w3m_cmd } }, + { MODKEY, XK_F4, togglescratch, {.ui = 3 } }, { MODKEY, XK_F5, spawn, {.v = ncmpc_cmd } }, { MODKEY, XK_F6, spawn, {.v = nb_cmd} }, { MODKEY, XK_F7, spawn, {.v = cal_cmd } }, |