From 7cde3ec842070c0cabd0e796789856ed745483fa Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Fri, 29 Oct 2021 23:56:48 -0400 Subject: Update passcommands, screenshooter and add ddmenu --- config.h | 17 +++++++++++------ selfrestart.c | 4 ---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/config.h b/config.h index a6dbf2c..fc2fdb9 100644 --- a/config.h +++ b/config.h @@ -1,6 +1,6 @@ /* See LICENSE file for copyright and license details. */ -#define PROFONT_LARGE "ProfontOTB:pixelsize=14:antialias=false:autohint=false" +#define PROFONT_LARGE "ProfontOTB:pixelsize=13:antialias=false:autohint=false" #define PROFONT_SMALL "ProfontOTB:pixelsize=10:antialias=false:autohint=false" #define ROBOTO_YUGE "RobotoMono-Regular:pixelsize=18:antialias=true:autohint=true" #define FONT_SCIENTIFICA "scientifica:style=Bold:pixelsize=10:antialias=false:autohint=false" @@ -86,15 +86,18 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", DMENU_FLAGS, NULL }; +static const char *ddmenucmd[] = { "ddmenu", DMENU_FLAGS, NULL }; // static const char *termcmd[] = { "st", NULL }; static const char *termcmd[] = { "konsole", NULL }; static const char *termcmdLarge[] = { "st", "-f", PROFONT_LARGE, NULL }; static const char *termcmdYuge[] = { "st", "-f", TERMINUS_YUGE, NULL }; -static const char *passcmd[] = { "passmenu", DMENU_FLAGS, NULL }; -static const char *passcmd_type[] = { "passmenu", "--type", DMENU_FLAGS, NULL }; +static const char *passcmd[] = { "dpw-menu", DMENU_FLAGS, NULL }; +static const char *passcmd_type[] = { "dpw-menu", "--type", DMENU_FLAGS, NULL }; +static const char *passcmd_otp_type[] = { "dpw-menu", "--type", "--otp", DMENU_FLAGS, NULL }; static const char *snip_cmd[] = { "snipmenu", DMENU_FLAGS, NULL }; -static const char *screenshot_cmd[] = { "xfce4-screenshooter", NULL }; -static const char *file_cmd[] = { "thunar", NULL }; +static const char *screenshot_cmd[] = { "scrot", "-s", "/tmp/screenshot.png", NULL }; +static const char *file_cmd[] = { "dolphin", NULL }; +// static const char *file_cmd[] = { "thunar", NULL }; static const char *slock_cmd[] = { "slock", NULL }; static const char *volup_cmd[] = { "vol", "up", NULL }; static const char *voldn_cmd[] = { "vol", "down", NULL }; @@ -103,12 +106,14 @@ static const char *monitor_cmd[] = { "sh", "monitor/laptop", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_d, spawn, {.v = dmenucmd } }, + { MODKEY|ShiftMask, XK_d, spawn, {.v = ddmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmdLarge } }, { MODKEY|ControlMask|ShiftMask, XK_Return, spawn, {.v = termcmdYuge } }, - { MODKEY, XK_p, spawn, {.v = passcmd } }, { MODKEY|ShiftMask, XK_p, spawn, {.v = screenshot_cmd } }, + { MODKEY, XK_p, spawn, {.v = passcmd } }, { MODKEY, XK_o, spawn, {.v = passcmd_type } }, + { MODKEY|ControlMask, XK_o, spawn, {.v = passcmd_otp_type } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = snip_cmd } }, { MODKEY|ControlMask, XK_f, spawn, {.v = file_cmd } }, { MODKEY|ControlMask, XK_l, spawn, {.v = slock_cmd } }, diff --git a/selfrestart.c b/selfrestart.c index 1157d29..47f2690 100644 --- a/selfrestart.c +++ b/selfrestart.c @@ -5,9 +5,5 @@ void self_restart(const Arg *arg) { char *const argv[] = {"dwm", NULL}; - if(argv[0] == NULL){ - return; - } - execvp(argv[0], argv); } -- cgit v1.2.3