From 7fceb52f1dd8482b8d5fe942c5662493797cad18 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sun, 15 Apr 2018 16:29:27 +0200 Subject: [PATCH] urxvt <3 --- Xresources | 1 + Xresources.d/urxvt | 56 +++++++++++++++++++++++++++++++++ bashrc | 1 + config/compton.conf | 53 ------------------------------- config/i3/config | 7 +++-- scripts/install-prefs | 2 +- scripts/pdfpages | 4 +++ terminfo/rxvt-unicode | Bin 0 -> 2213 bytes terminfo/rxvt-unicode-256color | Bin 0 -> 2239 bytes 9 files changed, 67 insertions(+), 57 deletions(-) create mode 100644 Xresources.d/urxvt delete mode 100644 config/compton.conf create mode 100755 scripts/pdfpages create mode 100644 terminfo/rxvt-unicode create mode 100644 terminfo/rxvt-unicode-256color diff --git a/Xresources b/Xresources index ebdba57..6a06d00 100644 --- a/Xresources +++ b/Xresources @@ -1,3 +1,4 @@ #include ".Xresources.d/xft" #include ".Xresources.d/theme" #include ".Xresources.d/xterm" +#include ".Xresources.d/urxvt" diff --git a/Xresources.d/urxvt b/Xresources.d/urxvt new file mode 100644 index 0000000..53f39b1 --- /dev/null +++ b/Xresources.d/urxvt @@ -0,0 +1,56 @@ +! Scrollback position +! TODO Do not work + +! do not scroll with output +URxvt*scrollTtyOutput: false + +! scroll in relation to buffer (with mouse scroll or Shift+Page Up) +URxvt*scrollWithBuffer: true + +! scroll back to the bottom on keypress +URxvt*scrollTtyKeypress: true + + +! Scrollback buffer in secondary screen +! TODO Do not work +URxvt.secondaryScreen: 1 +URxvt.secondaryScroll: 0 + + +! Font declaration +URxvt.font: xft:DejaVu Sans Mono for Powerline:size=12:antialias=true + +! Font spacing +URxvt.letterSpace: 0 + +! No scroll bar +URxvt*scrollBar: false + +! Disable Ctrl+Shift default bindings +URxvt.iso14755: false +URxvt.iso14755_52: false + +! Copy/Paste CLIPBOARD selection with Ctrl+Shift+C/V +URxvt.keysym.C-S-C: eval:selection_to_clipboard +URxvt.keysym.C-S-V: eval:paste_clipboard + + +! Extensions +URxvt.perl-ext-common: default,matcher,resize-font + +! Clickable URL (extension: matcher) +URxvt.url-launcher: /usr/bin/xdg-open +URxvt.matcher.button: 1 + +! Changing font size on the fly (extension: resize-font, package: urxvt-resize-font-git) +URxvt.keysym.C-KP_Subtract: resize-font:smaller +URxvt.keysym.C-KP_Add: resize-font:bigger + +! Fake transparency (without compositing manager) +urxvt*transparent: true +urxvt*shading: 30 + +! True transparency (with compositing manager) +!urxvt*depth: 32 +!urxvt*background: rgba:2700/2800/2200/c800 + diff --git a/bashrc b/bashrc index 371fe0f..37a045a 100644 --- a/bashrc +++ b/bashrc @@ -119,6 +119,7 @@ export PS1="\[\e]2;\u@\h \w\a\]\[\e[0;37m\][\[\e[0;${col}m\]\u\[\e[0;37m\]@\[\e[ export PS2="> " export PS3="+ " export PS4="- " +export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:${PWD}\007"' # CUSTOM SCRIPTS diff --git a/config/compton.conf b/config/compton.conf deleted file mode 100644 index 34eb7df..0000000 --- a/config/compton.conf +++ /dev/null @@ -1,53 +0,0 @@ -shadow = false; -no-dnd-shadow = true; -no-dock-shadow = true; -clear-shadow = true; - -menu-opacity = 0.9; -inactive-opacity = 0.93; -active-opacity = 1; -alpha-step = 0.01; -inactive-dim = 0.0; -blur-background = false; -blur-kern = "3x3box"; - -fading = false; -fade-delta = 1; -fade-in-step = 0.03; -fade-out-step = 0.03; -fade-exclude = [ ]; - -backend = "xrender"; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -detect-rounded-corners = true; -detect-client-opacity = true; -unredir-if-possible = true; -refresh-rate = 0; -vsync = "none"; -dbe = false; -paint-on-overlay = true; -focus-exclude = [ "class_g = 'Cairo-clock'" ]; -detect-transient = true; -detect-client-leader = true; -invert-color-include = [ ]; -glx-copy-from-front = false; -glx-swap-method = "undefined"; - -wintypes : -{ - tooltip : - { - fade = true; - shadow = false; - opacity = 0.75; - focus = true; - }; - fullscreen : - { - fade = true; - shadow = false; - opacity = 1; - focus = true; - }; -}; diff --git a/config/i3/config b/config/i3/config index 77b5749..19298d7 100644 --- a/config/i3/config +++ b/config/i3/config @@ -46,7 +46,7 @@ bindsym $mod+dollar exec --no-startup-id ~/.config/i3/sshmenu root bindsym $mod+d exec --no-startup-id ~/.config/i3/dmenu_run # Start Applications -bindsym $mod+Return exec xterm +bindsym $mod+Return exec urxvtc bindsym $mod+p exec thunar bindsym $mod+m exec qutebrowser --override-restore --backend=webengine @@ -59,8 +59,8 @@ bindsym $mod+F7 exec pactl suspend-sink @DEFAULT_SINK@ 1; exec pactl suspend-sin bindsym $mod+F8 exec mpc prev bindsym $mod+F9 exec mpc toggle bindsym $mod+F10 exec mpc next -bindsym $mod+F11 exec xterm -e 'pacmixer' -bindsym $mod+F12 exec xterm -e 'pacmixer' +bindsym $mod+F11 exec urxvtc -e 'pacmixer' +bindsym $mod+F12 exec urxvtc -e 'pacmixer' #Brightness control bindsym XF86MonBrightnessDown exec xbacklight -dec 20 @@ -362,6 +362,7 @@ bindsym $mod+F5 exec --no-startup-id xautolock -enable # Autostart applications #exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # Password remembering #exec --no-startup-id gnome-keyring-daemon # Password remembering +exec --no-startup-id urxvtd -q -f # urxvt daemon exec --no-startup-id numlockx on # Activate Num lock exec --no-startup-id unclutter # Hide mouse cursor after some time #exec --no-startup-id dunst # Notifications (handled by systemd) diff --git a/scripts/install-prefs b/scripts/install-prefs index e718c0a..314a063 100755 --- a/scripts/install-prefs +++ b/scripts/install-prefs @@ -252,7 +252,7 @@ fi if [ $GUI == 1 ]; then # Desktop manager - inst i3 i3lock dunst unclutter xautolock feh numlockx scrot xterm xclip + inst i3 i3lock dunst unclutter xautolock feh numlockx scrot rxvt-unicode xclip curl "https://raw.githubusercontent.com/FortAwesome/Font-Awesome/a8386aae19e200ddb0f6845b5feeee5eb7013687/fonts/fontawesome-webfont.ttf" > ~/.local/share/fonts/fontawesome-webfont.ttf if [ $ARCH == 1 ]; then inst xorg-xinit diff --git a/scripts/pdfpages b/scripts/pdfpages new file mode 100755 index 0000000..e805435 --- /dev/null +++ b/scripts/pdfpages @@ -0,0 +1,4 @@ +#!/usr/bin/bash + +# From https://stackoverflow.com/a/14736593 +pdftk "$1" dump_data | grep NumberOfPages | awk '{print $2}' diff --git a/terminfo/rxvt-unicode b/terminfo/rxvt-unicode new file mode 100644 index 0000000000000000000000000000000000000000..7650d3cfe25183d4d8a251406a8fdee3b5f3f96d GIT binary patch literal 2213 zcmb_cO=w(I6h8O8j8#iP5m7s&rrKNEv`yyy&5zIgwoOA!ZD}kHO;eh5@-ykoWHOoj z&qV2>f_6~^!3uVv2-#F9qG)m9-@--R2!g9_-T8wcbRp00oHt{WCPgZ~;e7Y|&OPVe z`|de!wkwYs>1isey^+$wT=~FkA$x8rGg?_In#!Z4e6}#0Yub};dL>)POwBh9EY6fi z^Lt4t`p1M2G=2=~I6X*D!VzqE($u+QGyk2y2(pL_YM{qyJ3T|YsTm%RdZ?HBX#o5r zjR41JlFGC|74Qpmk=~@sU_o$2@G5;kt8|S%r5p4WJm1p~^b_3z`;~sDKP9F`*(wO) zFn*F4+hARydsM$Vq0;J%%BV?IRCB7LE~wWrcL{b`y{+DrxFEQy-d7*ic(~F=TvgZA z4fTz>seV+q)X(ZSb-R{f7!Md*jUaf$cnlZ>M~pt>q>(mG8AHZL@LV@O7Jm?YW_)3M zX?$yZC;BFEo5>lEnor2sD9E1rv%`EAzUMah>+_qB`w?%Mamn(5o#tV)Pt;4m0bxOq zu8q9LX>-J!FbihcTryuXFPfLkx7N&VzRQ2}zH^`JzGtqQ*UV4M&yn}F$Cn{-L9?iSHspw82wbFF|sqFBU@-2MF(|O7cHIfbFc^wPs{^};%AFNeV8>e95rng0yTP4B z0Fv_jdT=NBP`rlk_^$8yaX;n93BjabiqVcSid%9HLB-i6@wIzvr)V2o^6GqXLXOr6pFli(G9d$X(qAXM ztW5EWLSC*Du1gl?GI)S<7{klCuZu|{t=1nIiYB-tH-7Iq_g-_+)5Mjq^m3xA+fk1}CyCEQ_ROO)gHCPQs_HgfcJ-(P zJEGz><%+UuDlWG5*#l?Ag`q5rT-7yi0<~t(@Gpk{nws&2?dzt$ E0c9C}>i_@% literal 0 HcmV?d00001 diff --git a/terminfo/rxvt-unicode-256color b/terminfo/rxvt-unicode-256color new file mode 100644 index 0000000000000000000000000000000000000000..3f43d0d567f4bc450e2354e00fde5760e82074a3 GIT binary patch literal 2239 zcmb_cO=w(I6h8O8j8#iPDWZ0WPPMl`X_L&m?`LLwCex&C8e;lGV{vGj(j+rUCY`^` zy!_9k(nSUBq6mTtcA*H_R4AfoapB*>McoL3t8U%-gCKMv&vVXuW0NLDD!$=-_dDM` z=idA7Id67|OV1v=E!mds8ut ziE&UZwl@=dC11*x=VL>QH7{4(2SUI<#stvEAAx|A@Gv}uiof9j;a}WLzZ)3AEC3B! z;0f3P&%thJL&b(Z=!ZcVLVg;?5GP<7JXnA_@=I_T-hivfeE%KBYw!WA!gcr*Zo*fn zd=EdsPjDOAukbtk$uS*53Ey|n=t<((h1SDCGi^0T|v7l z-V*O}obO)~?~4yZ9;~zxSH%r+Q+y+Ci66yn@w50%+zB%@?ICTe=KGIn+Yx>Ls5YRT z)-u`|ZAAMBl^fc}to#0F+85fF+PB(w?B7D%rc=h_`jb4iGLq7Kp3$F2ZO;b1IluXM z0OJka;Vc*NpngOjVDC8M5HsJ;gd?qSRv*)+^pfuBOZuz&W&Mi&=9<~fclmGX+Yh+z zd-|$=UH?S?9P_^B+}$m&x2)g$mwSAg{bLhteb&EwcfvLPYS|hIqMwemMs`MIWD9JA z=&;PoiXpSEtSFhSqF_!U^hbx)0FE!A(HKS@y-S0Hes~n6ezdf*3;4MqF;s!wDRd5@ z^#r1;Y*J359fRnIa<@QqZyY_lh+q(;jkuMfAd4VD5`#sIkD0-oUUZ7VPz`emC|LxG z;}s{Q?WtWas(5EN2I1LoyWyP`1WYQ@>!F;WL(v+p=~}MsI&R8!9M_1);{*nRmBP2- zwGU$MAY4Q=R}knJ$#V#XL9Svn6mf$C42!wVm|#pYrU+G>kY&y}jGjXh$A|aU4bd)? z_|@s+m>g>oIsq$mGA2V!GT0=vEKkvjOkQphs!JZtBCrw0aSSf!fi5PAX<>h4A)26$ z;3KAG#gU$CNLM0NNUeYxvSP|Q`ia1|klF!FAWcfQNEs>VVS~sVmRhxKJn*i=|SzT&c{=RI9a`=grQ}&CSm*EG#ZAEiEtC z>y5_BN_$U7@BTvv4#$s7_2sFr&!D9f)OhJc0dSyVouD`2%9^{7aYd8F41xrKBFLgS zL~H`ONX0#%I74ww6_;0W4=C;dGgz7HZ*sgD^bCD=c%}GNW=|n?N(k7biWVj_Q?8Z5 zk7C4fxu$M)a_j}V<7LOTO}io6X8T`f2UsD@?Vf%aGZv^{@0RR91 literal 0 HcmV?d00001