git.iko.soy/typeable/nixpkgs
on master help sign in
urxvt: add vtwheel extension

This allows to scroll content in less, screen, nano, tmux and others (the ones, who create so called "secondary screens"), similar to VTE-based terminals. Note, however, that mouse wheel won't work in `less -X`, which is used by basic `journalctl`. Fix it with `export SYSTEMD_LESS=FRSMK`

commit5c0367ee5b80bb7322cfc696a43d0eabd0506f9c authordanbst <abcz2.uprola@gmail.com> dateWed 30 Nov 2016, 03:38 (10 years ago) parent2d679db
2 files changed+29
pkgs/applications/misc/rxvt_unicode-plugins/urxvt-vtwheel.nix+27 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/rxvt_unicode-plugins/urxvt-vtwheel.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, fetchgit, perl }:
2+
3+stdenv.mkDerivation {
4+
5+ name = "rxvt_unicode-vtwheel-0.3.2";
6+
7+ src = fetchgit {
8+ url = "https://aur.archlinux.org/urxvt-vtwheel.git";
9+ rev = "36d3e861664aeae36a45f96100f10f8fe2218035";
10+ sha256 = "1h3vrsbli5q9kr84j5ijbivlhpwlh3l8cv233pg362v2zz4ja8i7";
11+ };
12+
13+ installPhase = ''
14+ sed -i 's|#! perl|#! ${perl}/bin/perl|g' vtwheel
15+ mkdir -p $out/lib/urxvt/perl
16+ cp vtwheel $out/lib/urxvt/perl
17+ '';
18+
19+ meta = with stdenv.lib; {
20+ description = "Pass mouse wheel commands to secondary screens (screen, less, nano, etc)";
21+ homepage = "https://aur.archlinux.org/packages/urxvt-vtwheel";
22+ license = licenses.mit;
23+ maintainers = with maintainers; [ danbst ];
24+ platforms = with platforms; unix;
25+ };
26+
27+}
pkgs/top-level/all-packages.nix+2
@@ -14475,6 +14475,7 @@ in
1447514475 urxvt_tabbedex
1447614476 urxvt_font_size
1447714477 urxvt_theme_switch
14478+ urxvt_vtwheel
1447814479 ];
1447914480 };
1448014481
@@ -14484,6 +14485,7 @@ in
1448414485 urxvt_tabbedex = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-tabbedex { };
1448514486 urxvt_font_size = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-font-size { };
1448614487 urxvt_theme_switch = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-theme-switch { };
14488+ urxvt_vtwheel = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-vtwheel.nix { };
1448714489
1448814490 uade123 = callPackage ../applications/audio/uade123 {};
1448914491