diff options
author | danbst <abcz2.uprola@gmail.com> | 2016-11-30 03:38:11 +0200 |
---|---|---|
committer | danbst <abcz2.uprola@gmail.com> | 2016-11-30 03:43:28 +0200 |
commit | 5c0367ee5b80bb7322cfc696a43d0eabd0506f9c (patch) | |
tree | bfad26784fe9653ac0373ba4d1bd21614f63b6b6 | |
parent | 2d679dbe745e05e62a0f14c0fad12f83f3d4e2b3 (diff) | |
download | nixpkgs-5c0367ee5b80bb7322cfc696a43d0eabd0506f9c.tar nixpkgs-5c0367ee5b80bb7322cfc696a43d0eabd0506f9c.tar.gz nixpkgs-5c0367ee5b80bb7322cfc696a43d0eabd0506f9c.tar.bz2 nixpkgs-5c0367ee5b80bb7322cfc696a43d0eabd0506f9c.tar.lz nixpkgs-5c0367ee5b80bb7322cfc696a43d0eabd0506f9c.tar.xz nixpkgs-5c0367ee5b80bb7322cfc696a43d0eabd0506f9c.tar.zst nixpkgs-5c0367ee5b80bb7322cfc696a43d0eabd0506f9c.zip |
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`
-rw-r--r-- | pkgs/applications/misc/rxvt_unicode-plugins/urxvt-vtwheel.nix | 27 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/applications/misc/rxvt_unicode-plugins/urxvt-vtwheel.nix b/pkgs/applications/misc/rxvt_unicode-plugins/urxvt-vtwheel.nix new file mode 100644 index 00000000000..000828ddb7f --- /dev/null +++ b/pkgs/applications/misc/rxvt_unicode-plugins/urxvt-vtwheel.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchgit, perl }: + +stdenv.mkDerivation { + + name = "rxvt_unicode-vtwheel-0.3.2"; + + src = fetchgit { + url = "https://aur.archlinux.org/urxvt-vtwheel.git"; + rev = "36d3e861664aeae36a45f96100f10f8fe2218035"; + sha256 = "1h3vrsbli5q9kr84j5ijbivlhpwlh3l8cv233pg362v2zz4ja8i7"; + }; + + installPhase = '' + sed -i 's|#! perl|#! ${perl}/bin/perl|g' vtwheel + mkdir -p $out/lib/urxvt/perl + cp vtwheel $out/lib/urxvt/perl + ''; + + meta = with stdenv.lib; { + description = "Pass mouse wheel commands to secondary screens (screen, less, nano, etc)"; + homepage = "https://aur.archlinux.org/packages/urxvt-vtwheel"; + license = licenses.mit; + maintainers = with maintainers; [ danbst ]; + platforms = with platforms; unix; + }; + +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 51a7dea2e68..27088e83dd7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14475,6 +14475,7 @@ in urxvt_tabbedex urxvt_font_size urxvt_theme_switch + urxvt_vtwheel ]; }; @@ -14484,6 +14485,7 @@ in urxvt_tabbedex = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-tabbedex { }; urxvt_font_size = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-font-size { }; urxvt_theme_switch = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-theme-switch { }; + urxvt_vtwheel = callPackage ../applications/misc/rxvt_unicode-plugins/urxvt-vtwheel.nix { }; uade123 = callPackage ../applications/audio/uade123 {}; |