Edit scrotcmd

master
Nakidai 2024-10-31 16:32:50 +03:00
parent b56373b848
commit b15e671fb8
Signed by: nakidai
GPG Key ID: C6BF6082F42307C0
2 changed files with 7 additions and 2 deletions

View File

@ -5,6 +5,10 @@
#define BROWSER "firefox"
#define SCREENSHOTS_PATH "/home/naki/pic/screenshots/"
#define SCROT_PATH "/home/naki/dwmscripts/scrot.sh"
#include "frappe.h"
/* appearance */
static const unsigned int borderpx = 2; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
@ -21,7 +25,6 @@ static const int sidepad = 5;
static const char *fonts[] = { "monospace:size=10", "fontawesome:size=12", "NotoColorEmoji:size=12" };
static const char dmenufont[] = "monospace:size=10";
#include "theme.h"
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_fg, col_bg, col_bg },
@ -76,7 +79,8 @@ static const char *discordcmd[] = { "discord", NULL };
static const char *volupcmd[] = { "amixer", "-D", "pulse", "sset", "Master", "5%+", "unmute", NULL };
static const char *voldowncmd[] = { "amixer", "-D", "pulse", "sset", "Master", "5%-", "unmute", NULL };
static const char *scrotcmd[] = { "scrot", "-s", "-f", SCREENSHOTS_PATH "/%F_%T_$wx$h.png", "-e", "xclip -selection clipboard -target image/png -i $f", NULL };
// static const char *scrotcmd[] = { "scrot", "-s", "-f", SCREENSHOTS_PATH "/%F_%T_$wx$h.png", "-e", "xclip -selection clipboard -target image/png -i $f", NULL };
static const char *scrotcmd[] = { SCROT_PATH, NULL };
static Key keys[] = {
/* modifier key function argument */

1
dwm.c
View File

@ -249,6 +249,7 @@ static int xerror(Display *dpy, XErrorEvent *ee);
static int xerrordummy(Display *dpy, XErrorEvent *ee);
static int xerrorstart(Display *dpy, XErrorEvent *ee);
static void zoom(const Arg *arg);
void roundcorners(Client *c);
/* variables */
static const char broken[] = "broken";