From 1074c0acc210457dbdd1181b593e221d7242d502 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Thu, 31 Mar 2022 01:11:51 +0200 Subject: [PATCH] Move to urxvt. --- _desktop/install-desktop.sh | 2 +- _desktop/xresources | 34 ++++++++++++++++++++++++++++++++++ _suckless/dwm/config.h | 10 +++++----- 3 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 _desktop/xresources diff --git a/_desktop/install-desktop.sh b/_desktop/install-desktop.sh index 735437a..80b6414 100644 --- a/_desktop/install-desktop.sh +++ b/_desktop/install-desktop.sh @@ -4,7 +4,7 @@ mkdir -p ~/.config ~/.local/bin ~/.local/settings # link config -for i in clipit dunst zathura; do +for i in clipit dunst zathura xresources; do rm -rf ~/.config/${i} ln -sf $XDG_DATA_HOME/repos/dotfiles/_desktop/${i} ~/.config done diff --git a/_desktop/xresources b/_desktop/xresources new file mode 100644 index 0000000..37aa266 --- /dev/null +++ b/_desktop/xresources @@ -0,0 +1,34 @@ +URxvt.perl-ext: font-size,matcher,searchable-scrollback + +URxvt.font: xft:RobotoMono Nerd Font:style=Medium:pixelsize=14, xft:Noto Color Emoji:pixelsize=12 +URxvt.foreground: #c7c7c7 +URxvt.background: [90]#161616 +URxvt.color0: #161616 +URxvt.color1: #fd4285 +URxvt.color2: #a6e22d +URxvt.color3: #e5da72 +URxvt.color4: #0094d8 +URxvt.color5: #9a37ff +URxvt.color6: #50b6d8 +URxvt.color7: #c7c7c7 +URxvt.color8: #676767 +URxvt.color9: #fa7fac +URxvt.color10: #bde271 +URxvt.color11: #fff27f +URxvt.color12: #00bdff +URxvt.color13: #bd9eff +URxvt.color14: #5ed6fe +URxvt.color15: #feffff +URxvt*colorUL: #a0a0a0 + +URxvt*depth: 32 +URxvt*fading: 20 +URxvt.termName: xterm-256color +URxvt.scrollBar: false +URxvt.url-launcher: xdg-open + +URxvt.keysym.C-e: perl:matcher:list +URxvt.keysym.C-f: perl:searchable-scrollback:start +URxvt.keysym.C-0: perl:font-size:reset +URxvt.keysym.C-equal: perl:font-size:increase +URxvt.keysym.C-minus: perl:font-size:decrease diff --git a/_suckless/dwm/config.h b/_suckless/dwm/config.h index 5b9d5d6..a19a947 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[] = {"st", "-n", "spterm", "-g", "120x34", NULL }; -const char *spcmd2[] = {"st", "-n", "spwork", "-g", "120x34", NULL }; +const char *spcmd1[] = {"urxvt", "-n", "spterm", "-g", "120x34", NULL }; +const char *spcmd2[] = {"urxvt", "-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, "st", 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,8 +103,8 @@ static Key keys[] = { TAGKEYS( XK_0, 9) /* apps n'shit */ //{ MODKEY, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_Return, spawn, SHCMD("BROWSER=firefox st") }, - { SHTKEY, XK_Return, spawn, SHCMD("BROWSER=workfx st -n stwork") }, + { MODKEY, XK_Return, spawn, SHCMD("urxvt") }, + { SHTKEY, XK_Return, spawn, SHCMD("urxvt -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'") },