Skip to content

Commit

Permalink
update vscodium config and add prtsc button to dwm
Browse files Browse the repository at this point in the history
  • Loading branch information
goncrust committed Oct 21, 2023
1 parent d14d54e commit ebe0348
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
1 change: 0 additions & 1 deletion .config/VSCodium/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,6 @@
/* ------------- Extensions ------------- */
/*
codium --install-extension asvetliakov.vscode-neovim;
codium --install-extension CoenraadS.bracket-pair-colorizer-2;
codium --install-extension eamodio.gitlens;
codium --install-extension Equinusocio.vsc-material-theme;
codium --install-extension equinusocio.vsc-material-theme-icons;
Expand Down
8 changes: 8 additions & 0 deletions .config/VSCodium/product.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extensionsGallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"itemUrl": "https://marketplace.visualstudio.com/items",
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
"controlUrl": ""
}
}
16 changes: 9 additions & 7 deletions dwm/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,16 @@ static const Layout layouts[] = {
/* key definitions */
#define MODKEY Mod4Mask
#define TAGKEYS(KEY, TAG) \
{MODKEY, KEY, view, {.ui = 1 << TAG}}, \
{MODKEY | ControlMask, KEY, toggleview, {.ui = 1 << TAG}}, \
{MODKEY | ShiftMask, KEY, tag, {.ui = 1 << TAG}}, \
{MODKEY | ControlMask | ShiftMask, KEY, toggletag, {.ui = 1 << TAG}},
{MODKEY, KEY, view, {.ui = 1 << TAG}}, \
{MODKEY | ControlMask, KEY, toggleview, {.ui = 1 << TAG}}, \
{MODKEY | ShiftMask, KEY, tag, {.ui = 1 << TAG}}, \
{MODKEY | ControlMask | ShiftMask, KEY, toggletag, {.ui = 1 << TAG}},

/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) \
{ \
.v = (const char *[]) { "/bin/sh", "-c", cmd, NULL } \
}
{ \
.v = (const char *[]) { "/bin/sh", "-c", cmd, NULL } \
}

/* commands */
static char dmenumon[2] =
Expand All @@ -85,12 +85,14 @@ static const char *termcmd[] = {"st", "zsh", NULL};
static const char *rangercmd[] = {"st", "-T", "stfloat", "ranger", NULL};
static const char *cidercmd[] = {"cider", NULL};
static const char *speedcrunchcmd[] = {"speedcrunch", NULL};
static const char *prtsccmd[] = {"flameshot", "gui", NULL};

static Key keys[] = {
/* modifier key function argument */
{MODKEY | ControlMask, XK_m, spawn, {.v = cidercmd}},
{MODKEY | ControlMask, XK_f, spawn, {.v = rangercmd}},
{MODKEY | ControlMask, XK_c, spawn, {.v = speedcrunchcmd}},
{0, XK_Print, spawn, {.v = prtsccmd}},
{MODKEY, XK_p, spawn, {.v = dmenucmd}},
{MODKEY, XK_Return, spawn, {.v = termcmd}},
{MODKEY, XK_b, togglebar, {0}},
Expand Down

0 comments on commit ebe0348

Please sign in to comment.