From c4ebe75fe5f4f972c051027fc405b119f229ee21 Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Tue, 10 Mar 2020 22:18:34 +0100 Subject: [PATCH] Add urxvt plugins + tools for ranger preview --- configs/files/ranger/rifle.conf | 2 +- configs/xmonad.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/configs/files/ranger/rifle.conf b/configs/files/ranger/rifle.conf index a31aabe..e35efac 100755 --- a/configs/files/ranger/rifle.conf +++ b/configs/files/ranger/rifle.conf @@ -55,7 +55,7 @@ # install a rare browser, you probably use it. Firefox/konqueror/w3m on the # other hand are often only installed as fallback browsers. -ext x?html?, has waterfox, X, flag f = waterfox -- "$@" +ext x?html?, has firefox, X, flag f = firefox -- "$@" ext x?html?, has surf, X, flag f = surf -- file://"$1" ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@" ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@" diff --git a/configs/xmonad.nix b/configs/xmonad.nix index 4f59032..edb274f 100644 --- a/configs/xmonad.nix +++ b/configs/xmonad.nix @@ -34,6 +34,11 @@ scrot i3lock numix-gtk-theme + + # Ranger preview utils + w3m + xclip + odt2txt ]; home.keyboard = { layout = "fr"; @@ -88,12 +93,18 @@ programs.urxvt = { enable = true; + package = pkgs.rxvt_unicode-with-plugins; fonts = ["xft:monospace:size=12:antialias=true"]; scroll = { bar.enable = false; lines = 65535; }; + keybindings = { + "Shift-Control-C" = "eval:selection_to_clipboard"; + "Shift-Control-V" = "eval:paste_clipboard"; + }; extraConfig = { + "perl-ext-common" = "default,clipboard,matcher,resize-font"; "background" = "rgba:28ff/28ff/28ff/cf00"; "foreground" = "#ebdbb2"; "color0" = "#282828"; @@ -116,6 +127,8 @@ "letterSpace" = "-1"; "internalBorder" = "10"; "depth" = "32"; + "resize-font.smaller" = "C-Down"; + "resize-font.bigger" = "C-Up"; }; };