diff options
| author | Craig Jennings <craigmartinjennings@gmail.com> | 2023-08-11 15:44:46 -0500 |
|---|---|---|
| committer | Craig Jennings <craigmartinjennings@gmail.com> | 2023-08-11 15:45:17 -0500 |
| commit | 8bb2c50231ce05fa6c06b341478181e431777615 (patch) | |
| tree | 9a3a6835eb454541e0b8fb5a2938da8931d841f3 | |
| parent | d405962cf99eba1ab6d6b218145b33b02e22e3bc (diff) | |
changed gnome-calculator to a gui scratchpad
It's a nicer experience to toggle visibility using one key
| -rw-r--r-- | config.def.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h index c3f12c9..c1bfc08 100644 --- a/config.def.h +++ b/config.def.h @@ -42,15 +42,13 @@ typedef struct { } Sp; const char *spcmd1[] = {"st", "-n", "spaudio", "-g", "120x35", "-e", "pulsemixer", NULL }; -const char *spcmd2[] = {"st", "-n", "spmon", "-g", "120x35", "-e", "htop", NULL }; +const char *spcmd2[] = {"st", "-n", "spmon", "-g", "120x35", "-e", "gotop", NULL }; const char *spcmd3[] = {"st", "-n", "spmp", "-g", "120x35", "-e", "ncmpcpp", NULL }; const char *spcmd4[] = {"st", "-n", "spbt", "-g", "120x35", "-e", "tremc", NULL }; const char *spcmd5[] = {"st", "-n", "spterm", "-g", "120x35", "-e", "tmux", NULL }; const char *spcmd6[] = {"st", "-n", "spfm", "-g", "120x35", "-e", "ranger", NULL }; +const char *spcmd7[] = { "gnome-calculator", NULL }; -/*...and this is how to add a gui app to a scratchpad - const char *spcmd5[] = {"keepassxc", NULL }; -*/ static Sp scratchpads[] = { /* name cmd */ @@ -60,6 +58,7 @@ static Sp scratchpads[] = { {"spbt", spcmd4}, {"spterm", spcmd5}, {"spfm", spcmd6}, + {"spcalc", spcmd7}, /* {"keepassxc", spcmd3}, */ }; @@ -81,7 +80,6 @@ static const Rule rules[] = { /* class instance title tags mask isfloating isterminal noswallow monitor */ { "Gimp", NULL, NULL, 0, 1, 0, 0, -1 }, - { "gnome-calculator", NULL, NULL, 0, 1, 0, 0, -1 }, { NULL, "alarm-clock-applet", NULL, 0, 1, 0, 0, -1 }, { NULL, "caffeine", NULL, 0, 1, 0, 0, -1 }, { NULL, "blueman-services", NULL, 0, 1, 0, 0, -1 }, @@ -95,6 +93,7 @@ static const Rule rules[] = { { NULL, "spbt", NULL, SPTAG(3), 1, 0, 0, -1 }, { NULL, "spterm", NULL, SPTAG(4), 1, 1, 0, -1 }, { NULL, "spfm", NULL, SPTAG(5), 1, 0, 0, -1 }, + { "gnome-calculator", NULL, NULL, SPTAG(6), 1, 0, 0, -1 }, { NULL, NULL, "Event Tester", 0, 1, 0, 1, -1 }, /* xev */ }; @@ -138,7 +137,6 @@ static const char *termcmd[] = { "st", NULL }; // default terminal; respe static const char *browsercmd[] = { "firefox", NULL }; // default browser; respects $BROWSER env variable static const char *editorcmd[] = { "emacs", NULL }; // default editor; respects $VISUAL env variable static const char *torbrowsercmd[] = { "tor-browser", NULL }; -static const char *calccmd[] = { "gnome-calculator", NULL }; /* volume control */ static const char *upvol[] = { "pactl", "set-sink-volume", "0", "+5%", NULL }; @@ -152,7 +150,6 @@ static Key keys[] = { { MODKEY, XK_e, spawn, {.v = editorcmd } }, { MODKEY, XK_w, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_w, spawn, {.v = torbrowsercmd } }, - { MODKEY, XK_x, spawn, {.v = calccmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -194,6 +191,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_b, togglescratch, {.ui = 3 } }, { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 4 } }, { MODKEY, XK_f, togglescratch, {.ui = 5 } }, + { MODKEY, XK_x, togglescratch, {.ui = 6 } }, { 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, |
