From 2ee657a5fac0fe6b0d58907f140607a19863ec29 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Thu, 31 Mar 2022 13:21:35 +0200 Subject: [PATCH] Let's try urxvtd. --- _desktop/xresources | 2 +- _suckless/dwm/config.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_desktop/xresources b/_desktop/xresources index 7bf54f0..20ecee7 100644 --- a/_desktop/xresources +++ b/_desktop/xresources @@ -1,4 +1,4 @@ -URxvt.perl-ext: -background,-bell-command,-block-graphics-to-ascii,-clipboard-osc,-confirm-paste,-digital-clock,-eval,-example-refresh-hooks,-keysym-list,-kuake,-option-popup,-overlay-osc,-readline,-remote-clipboard,-selection,-selection-autotransform,-selection-pastebin,-selection-popup,-selection-to-clipboard,-tabbed,-urxvt-popup,-xim-onthespot,font-size,matcher,searchable-scrollback +URxvt.perl-ext: -confirm-paste,-option-popup,-selection,-selection-popup,font-size,matcher,readline,searchable-scrollback URxvt.font: xft:RobotoMono Nerd Font:style=Medium:pixelsize=14, xft:Noto Color Emoji:pixelsize=12 URxvt.foreground: #c7c7c7 diff --git a/_suckless/dwm/config.h b/_suckless/dwm/config.h index 60a9091..57177db 100644 --- a/_suckless/dwm/config.h +++ b/_suckless/dwm/config.h @@ -31,8 +31,8 @@ typedef struct { const char *name; const void *cmd; } Sp; -const char *spcmd1[] = {"urxvtc", "-n", "spterm", "-g", "120x34", NULL }; -const char *spcmd2[] = {"urxvtc", "-n", "spwork", "-g", "120x34", NULL }; +const char *spcmd1[] = {"RXVT_SOCKET=$XDG_CACHE_HOME/rxvt-socket urxvtc", "-n", "spterm", "-g", "120x34", NULL }; +const char *spcmd2[] = {"RXVT_SOCKET=$XDG_CACHE_HOME/rxvt-socket urxvtc", "-n", "spwork", "-g", "120x34", NULL }; static Sp scratchpads[] = { /* name cmd */ {"spterm", spcmd1}, @@ -48,7 +48,7 @@ static const Rule rules[] = { * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating isterminal noswallow monitor */ - { NULL, NULL, "urxvtc", 0, 0, 1, 0, -1 }, + { NULL, NULL, "urxvt", 0, 0, 1, 0, -1 }, { "firefox", NULL, NULL, 2, 0, 0, 1, -1 }, { "Ferdi", NULL, NULL, 1 << 2, 0, 0, 0, -1 }, { "Slack", NULL, NULL, 1 << 7, 0, 0, 0, -1 }, @@ -103,12 +103,12 @@ static Key keys[] = { TAGKEYS( XK_0, 9) /* apps n'shit */ //{ MODKEY, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_Return, spawn, SHCMD("urxvtc") }, - { SHTKEY, XK_Return, spawn, SHCMD("urxvtc -name work") }, + { MODKEY, XK_Return, spawn, SHCMD("RXVT_SOCKET=$XDG_CACHE_HOME/rxvt-socket urxvtc") }, + { SHTKEY, XK_Return, spawn, SHCMD("RXVT_SOCKET=$XDG_CACHE_HOME/rxvt-socket urxvtc -name work") }, { MODKEY, XK_space, spawn, SHCMD("dmenu_run -c -i -l 20") }, { MODKEY, XK_i, spawn, SHCMD("scrot -f -s 'scrot_%Y-%m-%d_%H-%M-%S_%s.png'") }, { SHTKEY, XK_i, spawn, SHCMD("scrot 'scrot_%Y-%m-%d_%H-%M-%S_%s.png'") }, - { MODKEY, XK_m, spawn, SHCMD("pgrep -x neomutt > /dev/null || urxvtc -name mutt -e neomutt") }, + { MODKEY, XK_m, spawn, SHCMD("pgrep -x neomutt > /dev/null || RXVT_SOCKET=$XDG_CACHE_HOME/rxvt-socket urxvtc -name mutt -e neomutt") }, { MODKEY, XK_q, killclient, {0} }, { MODKEY, XK_e, togglescratch, {.ui = 0 } }, { SHTKEY, XK_e, togglescratch, {.ui = 1 } },