new toggle terminal, use old screenshot tool
This commit is contained in:
parent
166f942f78
commit
283e35fb2d
|
@ -48,7 +48,8 @@ Mod Shift|e|Spawn an LF (File Manager) window
|
|||
Mod|u|Spawn launcher menu
|
||||
Mod|backslash|Toggle calculator scratchpad
|
||||
Mod|Return|Spawn a terminal window
|
||||
Mod Shift|Return|Spawn a terminal window in working directory of active client
|
||||
Mod Shift|Return|Spawn a terminal scratchpad
|
||||
Mod Alt|Return|Spawn a terminal window in working directory of active client
|
||||
Mod|m|Spawn a music player
|
||||
Mod|w|Spawn Ferdium
|
||||
|
||||
|
|
24
config.h
24
config.h
|
@ -66,7 +66,8 @@ static const Rule rules[] = {
|
|||
{ "Zathura", "org.pwmt.zathura", NULL, 0, 0, 0, 0, -1, 0, 0, 0, 0, -1 },
|
||||
{ NULL, "kitty", NULL, 0, 0, 0, 1, 0, 0, 0, 0, 0, -1 },
|
||||
{ "Qalculate-gtk", NULL, NULL, 'q', 0, 1, 0, 0, .5, .5, 722, 512, -1 },
|
||||
{ NULL, "sphelp", NULL, 'n', 0, 1, 1, 0, .5, .5, .4, .8, -1 },
|
||||
{ NULL, "sphelp", NULL, 'n', 0, 1, 0, 0, .5, .5, .4, .8, -1 },
|
||||
{ NULL, "spterm", NULL, 't', 0, 1, 1, 0, .5, .5, .8, .8, -1 },
|
||||
{ NULL, "splf", NULL, 'l', 0, 1, 0, 0, .5, .5, .8, .8, -1 },
|
||||
{ NULL, "sphtop", NULL, 'h', 0, 1, 0, 0, .5, .5, .8, .8, -1 },
|
||||
{ NULL, "spmix", NULL, 'm', 0, 1, 0, 0, -4, -4, 900, 600, -1 },
|
||||
|
@ -102,12 +103,12 @@ static const Layout layouts[] = {
|
|||
#define SHCMD(cmd) { .v = (const char *[]) { "/bin/sh", "-c", cmd, NULL } }
|
||||
|
||||
/* commands */
|
||||
// static const char *spterm[] = { "t", "/bin/sh", "-c", "$TERMINAL --name spterm --config ~/.config/kitty/kitty.conf --config ~/.config/kitty/kittyfullscreen.conf" };
|
||||
static const char *spqalc[] = { "q", "qalculate-gtk", NULL };
|
||||
static const char *splf[] = { "l", TERMINAL, "--name", "splf", "-d", "~", "-e", "lf", NULL };
|
||||
static const char *sphtop[] = { "h", TERMINAL, "--name", "sphtop", "-e", "htop", NULL };
|
||||
static const char *spmix[] = { "m", TERMINAL "--name", "spmix", "-e", "pulsemixer" };
|
||||
static const char *sphelp[] = { "n", TERMINAL, "--name", "sphelp", "-e", "/bin/sh", "-c", "lowdown -Tterm /usr/local/share/dwm/dwm.md | less" };
|
||||
static const char *spterm[] = { "t", TERMINAL,"-o", "background_opacity=0.8", "--name", "spterm", "-d", "~", NULL };
|
||||
static const char *splf[] = { "l", TERMINAL,"-o", "background_opacity=0.8", "--name", "splf", "-d", "~", "-e", "lf", NULL };
|
||||
static const char *sphtop[] = { "h", TERMINAL,"-o", "background_opacity=0.8", "--name", "sphtop", "-e", "htop", NULL };
|
||||
static const char *spmix[] = { "m", TERMINAL,"-o", "background_opacity=0.8", "--name", "spmix", "-e", "pulsemixer" };
|
||||
static const char *sphelp[] = { "n", TERMINAL,"-o", "background_opacity=0.8", "--name", "sphelp", "-e", "/bin/sh", "-c", "lowdown -Tterm /usr/local/share/dwm/dwm.md | less" };
|
||||
|
||||
#include <X11/XF86keysym.h>
|
||||
|
||||
|
@ -195,7 +196,8 @@ static const Key keys[] = {
|
|||
{ MODKEY, XK_backslash, togglescratch, {.v = spqalc} },
|
||||
// { MODKEY | ShiftMask, XK_backslash, spawn, {.v = (const char *[]){NULL}} },
|
||||
{ MODKEY, XK_Return, spawn, {.v = (const char *[]){TERMINAL, "-d", "~", NULL}} },
|
||||
{ MODKEY | ShiftMask, XK_Return, spawn, {.v = (const char *[]){"samedir", NULL}} },
|
||||
{ MODKEY | ShiftMask, XK_Return, togglescratch, {.v = spterm} },
|
||||
{ MODKEY | Mod3Mask, XK_Return, spawn, {.v = (const char *[]){"samedir", NULL}} },
|
||||
// { MODKEY, XK_semicolon, spawn, {.v = (const char *[]){NULL}} },
|
||||
// { MODKEY | ShiftMask, XK_semicolon, spawn, {.v = (const char *[]){NULL}} },
|
||||
{ MODKEY, XK_q, killclient, {0} },
|
||||
|
@ -218,8 +220,10 @@ static const Key keys[] = {
|
|||
// { MODKEY | ShiftMask, XK_z, spawn, {.v = (const char *[]){NULL}} },
|
||||
{ MODKEY, XK_space, zoom, {0} },
|
||||
{ MODKEY | ShiftMask, XK_space, togglefloating, {0} },
|
||||
{ 0, XK_Print, spawn, SHCMD("flameshot full -p ${XDG_PICTURES_DIR:-$HOME/Pictures}/$(date '+%y%m%d-%H%M-%S').png") },
|
||||
{ ShiftMask, XK_Print, spawn, {.v = (const char *[]){"dmenuflameshot", NULL}} },
|
||||
{ 0, XK_Print, spawn, SHCMD("maim ~/Photos/Screenshots/pic-full-$(date '+%y%m%d-%H%M-%S').png") },
|
||||
{ ShiftMask, XK_Print, spawn, {.v = (const char *[]){"dmenumaim", NULL}} },
|
||||
// { 0, XK_Print, spawn, SHCMD("flameshot full -p ${XDG_PICTURES_DIR:-$HOME/Pictures}/$(date '+%y%m%d-%H%M-%S').png") },
|
||||
// { ShiftMask, XK_Print, spawn, {.v = (const char *[]){"dmenuflameshot", NULL}} },
|
||||
{ MODKEY, XK_Print, spawn, {.v = (const char *[]){"dmenurecord", NULL}} },
|
||||
{ MODKEY | ShiftMask, XK_Print, spawn, {.v = (const char *[]){"dmenurecord", "kill", NULL}} },
|
||||
// { MODKEY, XK_Scroll_Lock, spawn, {.v = (const char *[]){NULL}} },
|
||||
|
@ -260,7 +264,7 @@ static const Key keys[] = {
|
|||
// { 0, XF86XK_AudioMedia, spawn, {.v = (const char *[]){NULL}} },
|
||||
{ 0, XF86XK_AudioMicMute, spawn, {.v = (const char *[]){"pactl set-source-mute @DEFAULT_SOURCE@ toggle", NULL}} },
|
||||
// { 0, XF86XK_PowerOff, spawn, {.v = (const char *[]){"sysact", NULL}} },
|
||||
{ 0, XF86XK_PowerOff, spawn, {.v = (const char *[]){"sysact", NULL}} },
|
||||
{ 0, XF86XK_PowerOff, spawn, {.v = (const char *[]){"alarm-troll", NULL}} },
|
||||
{ 0, XF86XK_Calculator, spawn, {.v = (const char *[]){TERMINAL, "-e", "bc", "-l", NULL}} },
|
||||
{ 0, XF86XK_Sleep, spawn, {.v = (const char *[]){"sudo", "-A", "zzz", NULL}} },
|
||||
{ 0, XF86XK_WWW, spawn, {.v = (const char *[]){BROWSER, NULL}} },
|
||||
|
|
Loading…
Reference in New Issue