Commit 5b418321 authored by Joris's avatar Joris

Update

parent 181d82d2
......@@ -17,15 +17,25 @@ config.bind('e', 'tab-next')
config.bind('E', 'tab-move +')
## Other
config.bind('O', 'set-cmd-text -s :open {url}')
config.bind('h', 'reload')
config.bind('à', 'hint all tab')
config.bind('À', 'hint all window')
config.bind('j', 'set-cmd-text -s :open -t')
config.bind('J', 'set-cmd-text -s :open -w')
config.bind('gi', 'enter-mode insert')
## MPV
config.bind('m', 'spawn mpv {url}')
config.bind('M', 'hint links spawn mpv {hint-url}')
## Yank / copy
config.bind('y', 'yank -s')
config.bind('p', 'open -- {primary}')
config.bind('P', 'open -t -- {primary}')
config.bind('Pt', 'open --tab -- {primary}')
config.bind('Pw', 'open --window -- {primary}')
config.unbind('PP')
config.unbind('Pp')
# Options
......@@ -33,15 +43,20 @@ c.auto_save.session = True
c.colors.hints.bg = '#F07E00'
c.colors.hints.fg = 'white'
c.colors.hints.match.fg = '#555555'
# c.colors.tabs.selected.even.bg = '#F07E00'
# c.colors.tabs.selected.even.fg = 'white'
# c.colors.tabs.selected.odd.bg = '#F07E00'
# c.colors.tabs.selected.odd.fg = 'white'
c.confirm_quit = [ 'multiple-tabs', 'downloads' ]
c.content.geolocation = False
c.content.private_browsing = True
c.editor.command = ["urxvt", "-e", "nvim", "{}"]
c.fonts.tabs = '8pt monospace'
c.hints.border = '1px solid #F07E00'
c.fonts.hints = 'bold 8pt monospace'
c.hints.chars = 'etisuran'
c.scrolling.bar = True
c.tabs.background = True
config.bind('m', 'spawn mpv {url}')
config.bind('M', 'hint links spawn mpv {hint-url}')
c.tabs.title.format = '{title}'
c.tabs.padding = { 'top': 5, 'right': 5, 'bottom': 5, 'left': 5 }
c.tabs.width.indicator = 0
......@@ -2,6 +2,9 @@ set adjust-open width
map <BackSpace> navigate previous
map <Space> navigate next
map é navigate previous
map è navigate previous
unmap h
unmap j
unmap k
......
{ stdenv, fetchurl, cups, dpkg, ghostscript, patchelf, a2ps, coreutils, gnused, gawk, file }:
stdenv.mkDerivation rec {
name = "brother";
model = "DCPL2560DW";
# name = "${model}-cupswrapper-${version}";
version = "3.2.0-1";
srcs =
[ (fetchurl {
url = "http://download.brother.com/welcome/dlf101767/dcpl2560dwlpr-${version}.i386.deb";
sha256 = "7202dd895d38d50bb767080f2995ed350eed99bc2b7871452c3c915c8eefc30a";
})
(fetchurl {
url = "http://download.brother.com/welcome/dlf101768/dcpl2560dwcupswrapper-${version}.i386.deb";
sha256 = "92af9024e821159eccd78a8925fc77fb92b4f247f2d2c824ca303004077076a7";
})
];
buildInputs = [ cups ghostscript dpkg a2ps ];
unpackPhase = "true";
installPhase = ''
for s in $srcs; do dpkg-deb -x $s $out; done
substituteInPlace $out/opt/brother/Printers/${model}/cupswrapper/brother_ldpwrapper_${model} \
--replace /opt "$out/opt" \
--replace /usr "$out/usr" \
--replace /etc "$out/etc"
substituteInPlace $out/opt/brother/Printers/${model}/lpd/filter_${model} \
--replace /opt "$out/opt" \
--replace file "${file}/bin/file" \
--replace sed "${gnused}/bin/sed" \
--replace mktemp "${coreutils}/bin/mktemp" \
--replace cat "${coreutils}/bin/cat" \
--replace rm "${coreutils}/bin/rm"
# sed -i '/GHOST_SCRIPT=/c\GHOST_SCRIPT=gs' $out/opt/brother/Printers/mfcj470dw/lpd/psconvertij2
# substituteInPlace $out/opt/brother/Printers/mfcj470dw/lpd/psconvertij2 \
# --replace awk "${gawk}/bin/awk" \
# --replace cat "${coreutils}/bin/cat" \
# --replace mktemp "${coreutils}/bin/mktemp" \
# --replace sed "${gnused}/bin/sed" \
# --replace expr "${coreutils}/bin/expr" \
# --replace rm "${coreutils}/bin/rm"
# patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/lpd/brmfcj470dwfilter
# patchelf --set-interpreter ${stdenv.glibc.out}/lib/ld-linux.so.2 $out/opt/brother/Printers/mfcj470dw/cupswrapper/brcupsconfpt1
mkdir -p $out/lib/cups/filter/
ln -s $out/opt/brother/Printers/${model}/lpd/filter_${model} $out/lib/cups/filter/brother_lpdwrapper_${model}
'';
meta = {
homepage = http://www.brother.com/;
description = "A driver for brother ${model} printers to print over WiFi and USB";
license = stdenv.lib.licenses.unfree;
platforms = stdenv.lib.platforms.linux;
downloadPage = http://support.brother.com/g/b/downloadlist.aspx?c=gb&lang=en&prod=dcpl2560dw_eu&os=128;
};
}
......@@ -3,13 +3,11 @@
{
allowUnfree = true;
haskellPackageOverrides = with pkgs.haskell.lib; self: super: {
config-manager = self.callPackage ./haskell/config-manager.nix {};
};
packageOverrides = super: let self = super.pkgs; in {
motion = self.callPackage ./tools/video/motion {};
testtest = self.callPackage ./tools/video/motion {};
brother = self.callPackage ./brother.nix {};
};
# haskellPackageOverrides = with pkgs.haskell.lib; self: super: {
# config-manager = self.callPackage ./haskell/config-manager.nix {};
# };
#
# packageOverrides = super: let self = super.pkgs; in {
# motion = self.callPackage ./tools/video/motion {};
# };
}
.headers on
.mode column
.nullvalue ¤
.prompt "> "
.timer on
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment