diff --git a/config.def.h b/config.def.h index d79be53..fda171c 100644 --- a/config.def.h +++ b/config.def.h @@ -87,7 +87,7 @@ static const Layout layouts[] = { #define TERM(cmd) { .v = (const char*[]){ TERM_CMD, cmd, NULL } } static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "rofi", "-dpi", "1", "-show", "drun", NULL }; -static const char *calccmd[] = { "rofi", "-dpi", "1", "-show", "calc", "-modi", "calc", "-no-show-match", "-no-sort", "-kb-accept-custom", "Return", "-kb-accept-entry", "Control+Return", "-calc-command", "wl-copy {result}", "-theme", "~/.config/rofi/calc.rasi", NULL}; +static const char *calccmd[] = { "rofi", "-dpi", "1", "-show", "calc", "-modi", "calc", "-no-show-match", "-no-sort", "-kb-accept-custom", "Return", "-kb-accept-entry", "Control+Return", "-calc-command", "\"echo -n '{result}' | xclip\"", "-theme", "~/.config/rofi/calc.rasi", NULL}; static const char *clipboardcmd[] = { "rofi", "-dpi", "1", "-modi", "clipboard:~/bin/cliphist-rofi-img", "-show", "clipboard", "-show-icons", "-theme", "~/.config/rofi/clipboard.rasi", NULL }; static const char *termcmd[] = { "wezterm", "-e", NULL }; static const char *volmicmutecmd[] = { "/usr/bin/pactl", "set-source-mute", "@DEFAULT_SOURCE@", "toggle", NULL }; diff --git a/config.h b/config.h index d79be53..fda171c 100644 --- a/config.h +++ b/config.h @@ -87,7 +87,7 @@ static const Layout layouts[] = { #define TERM(cmd) { .v = (const char*[]){ TERM_CMD, cmd, NULL } } static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "rofi", "-dpi", "1", "-show", "drun", NULL }; -static const char *calccmd[] = { "rofi", "-dpi", "1", "-show", "calc", "-modi", "calc", "-no-show-match", "-no-sort", "-kb-accept-custom", "Return", "-kb-accept-entry", "Control+Return", "-calc-command", "wl-copy {result}", "-theme", "~/.config/rofi/calc.rasi", NULL}; +static const char *calccmd[] = { "rofi", "-dpi", "1", "-show", "calc", "-modi", "calc", "-no-show-match", "-no-sort", "-kb-accept-custom", "Return", "-kb-accept-entry", "Control+Return", "-calc-command", "\"echo -n '{result}' | xclip\"", "-theme", "~/.config/rofi/calc.rasi", NULL}; static const char *clipboardcmd[] = { "rofi", "-dpi", "1", "-modi", "clipboard:~/bin/cliphist-rofi-img", "-show", "clipboard", "-show-icons", "-theme", "~/.config/rofi/clipboard.rasi", NULL }; static const char *termcmd[] = { "wezterm", "-e", NULL }; static const char *volmicmutecmd[] = { "/usr/bin/pactl", "set-source-mute", "@DEFAULT_SOURCE@", "toggle", NULL };