citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit ca124a5f41df06e13a5bb201c72d6ed606514f47
parent e5931d34bd94bb24a89032eefe7c5d9602239006
Author: William Casarin <jb55@jb55.com>
Date:   Sun,  1 Nov 2020 19:59:59 -0800

.config: add a few settings

Diffstat:
Adotfiles/.config/mimi/mime.conf | 24++++++++++++++++++++++++
Adotfiles/.config/pkginit/default.json | 16++++++++++++++++
Adotfiles/.config/qutebrowser/autoconfig.yml | 10++++++++++
Adotfiles/.config/qutebrowser/config.py | 116+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adotfiles/.config/qutebrowser/quickmarks | 24++++++++++++++++++++++++
Adotfiles/.config/zathura/zathurarc | 16++++++++++++++++
6 files changed, 206 insertions(+), 0 deletions(-)

diff --git a/dotfiles/.config/mimi/mime.conf b/dotfiles/.config/mimi/mime.conf @@ -0,0 +1,24 @@ +txt: urxvtc -e lessr +text/: edit +application/pdf: zathura +text/html: browser +html: browser +video/: vlc +image/: feh +audio/: vlc +svg: feh --conversion-timeout 2 +lightning: urxvtc -e /home/jb55/bin/lightning-handler +application/x-tar: urxvtc -e una +application/x-gzip: urxvtc -e una +application/x-bzip2: urxvtc -e una +application/x-rar: urxvtc -e una +application/x-xz: urxvtc -e una +application/zip: urxvtc -e una +inode/directory: urxvtc -e ranger +gopher: urxvtc -e sacc +zoommtg: zoom-us +mailto: /home/jb55/bin/notmuch-emacs-mua --client --hello +spotify: /home/jb55/bin/spotify-open +ps: zathura +http: /home/jb55/bin/zoom-link-opener +https: /home/jb55/bin/zoom-link-opener diff --git a/dotfiles/.config/pkginit/default.json b/dotfiles/.config/pkginit/default.json @@ -0,0 +1,16 @@ +{ + "name": basename.replace(/^node-/, ''), + "description": prompt(), + "version": "0.1.0", + "repository": { + "url": "https://github.com/jb55/" + basename + }, + "main": prompt('entry point', 'index.js'), + "scripts": { + "test": "tap test/*.js" + }, + "dependencies": {}, + "devDependencies": { + "tap": "~0.2.5" + } +} diff --git a/dotfiles/.config/qutebrowser/autoconfig.yml b/dotfiles/.config/qutebrowser/autoconfig.yml @@ -0,0 +1,10 @@ +# If a config.py file exists, this file is ignored unless it's explicitly loaded +# via config.load_autoconfig(). For more information, see: +# https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc#loading-autoconfigyml +# DO NOT edit this file by hand, qutebrowser will overwrite it. +# Instead, create a config.py - see :help for details. + +config_version: 2 +settings: + content.host_blocking.enabled: + global: false diff --git a/dotfiles/.config/qutebrowser/config.py b/dotfiles/.config/qutebrowser/config.py @@ -0,0 +1,116 @@ +# Autogenerated config.py +# Documentation: +# qute://help/configuring.html +# qute://help/settings.html +import socket +hostname = socket.gethostname() + +# Uncomment this to still load settings configured via autoconfig.yml +# config.load_autoconfig() + +# Aliases for commands. The keys of the given dictionary are the +# aliases, while the values are the commands they map to. +# Type: Dict +c.aliases = {'q': 'quit', 'w': 'session-save', 'wq': 'quit --save'} + +# Enable JavaScript. +# Type: Bool +config.set('content.javascript.enabled', True, 'file://*') + +# Enable JavaScript. +# Type: Bool +config.set('content.javascript.enabled', True, 'chrome://*/*') + +# Enable JavaScript. +# Type: Bool +config.set('content.javascript.enabled', True, 'qute://*/*') + +config.set('fonts.default_family', 'terminus') + +if hostname == 'quiver': + config.set('zoom.default', 125) + + +# Editor (and arguments) to use for the `open-editor` command. The +# following placeholders are defined: * `{file}`: Filename of the file +# to be edited. * `{line}`: Line in which the caret is found in the +# text. * `{column}`: Column in which the caret is found in the text. * +# `{line0}`: Same as `{line}`, but starting from index 0. * `{column0}`: +# Same as `{column}`, but starting from index 0. +# Type: ShellCommand +c.editor.command = ['edit', '{file}'] + +# This setting can be used to map keys to other keys. When the key used +# as dictionary-key is pressed, the binding for the key used as +# dictionary-value is invoked instead. This is useful for global +# remappings of keys, for example to map Ctrl-[ to Escape. Note that +# when a key is bound (via `bindings.default` or `bindings.commands`), +# the mapping is ignored. +# Type: Dict +c.bindings.key_mappings = {'<Ctrl+6>': '<Ctrl+^>', '<Ctrl+Enter>': '<Ctrl+Return>', '<Ctrl+j>': '<Return>', '<Ctrl+m>': '<Return>', '<Ctrl+[>': '<Escape>', '<Enter>': '<Return>', '<Shift+Enter>': '<Return>', '<Shift+Return>': '<Return>'} + +# Bindings for normal mode +config.unbind('r') +config.bind(')', 'zoom 150') +config.bind('d', 'scroll-page 0 1') +config.bind('u', 'scroll-page 0 -1') +#config.bind('<Ctrl-d>', 'scroll-page 0 1') +#config.bind('<Ctrl-u>', 'scroll-page 0 -1') +#config.bind('d', 'repeat 10 scroll down') +#config.bind('u', 'repeat 10 scroll up') +#config.bind('<Ctrl-d>', 'scroll-page 0 0.5') +#config.bind('<Ctrl-u>', 'scroll-page 0 -0.5') +config.bind('<Ctrl-r>', 'reload') + +config.bind('e', 'open-editor') +config.bind('co', 'tab-only') +config.bind('gl', 'tab-move +') +config.bind('gh', 'tab-move -') +config.bind('gF', 'hint all tab-bg') +config.unbind('D') +config.bind('Do', 'download-open') + +config.set('downloads.position', 'bottom') +config.set('tabs.select_on_remove', 'last-used') + +config.set('url.default_page', 'about:blank') + +config.set('url.searchengines', { + 'DEFAULT': 'https://google.com/search?q={}', + 'ddg': 'http://duckduckgo.com/?q={}', + 'star': 'https://github.com/stars?utf8=%E2%9C%93&q={}', + 'so': 'https://google.com/search?q=site:stackoverflow.com {}', + 'gl': 'http://www.google.com/search?q={}&btnI=Im+Feeling+Lucky', + 'ghi': 'https://github.com/{}/issues', + 'wa': 'http://www.wolframalpha.com/input/?i={}', + 'ha': 'https://google.com/search?q=site:hackage.haskell.org {}', + 'gamedev': 'http://gamedev.stackexchange.com/search?q={}', + 'npm': 'https://npmjs.org/search?q={}', + 'cargo': 'https://crates.io/search?q={}', + 'zen': 'http://brandalliance.zendesk.com/search?query={}', + 'g': 'https://www.google.com/search?q={}', + 'ud': 'http://www.urbandictionary.com/define.php?term={}', + 'alert': 'http://alrt.io/{}', + 'hackage': 'http://hackage.haskell.org/package/{}', + 'travis': 'https://travis-ci.org/{}', + 'ttx': 'https://testnet.smartbit.com.au/tx/{}/', + 'e': 'https://www.google.com/search?q=site%3Apackage.elm-lang.org+{}&btnI=Im+Feeling+Lucky', + 'key': 'https://www.npmjs.org/browse/keyword/{}', + 'h': 'http://holumbus.fh-wedel.de/hayoo/hayoo.html?query={}', + 'lh': 'http://localhost:8080/?hoogle={} -package:Cabal', + 'hoogle': 'http://www.haskell.org/hoogle/?hoogle={}', + 'github': 'http://github.com/search?q={}', + 'r': 'https://old.reddit.com/r/{}', + 'a': 'http://blockstream.info/address/{}', + 'bgg': 'http://www.boardgamegeek.com/metasearch.php?searchtype=game&search={}', + 'pgp': 'http://pgp.mit.edu/pks/lookup?search={}&op=index', + 'gh': 'https://github.com/{}', + 'cd': 'https://docs.rs/{}/latest', + 'crate': 'https://crates.io/crates/{}', + 'repo': 'http://npmrepo.com/{}', + 'ec': 'http://package.elm-lang.org/packages/elm-lang/{}/latest', + 'tx': 'https://blockstream.info/tx/{}' +}) + + + diff --git a/dotfiles/.config/qutebrowser/quickmarks b/dotfiles/.config/qutebrowser/quickmarks @@ -0,0 +1,24 @@ +activitypub-vocab https://www.w3.org/TR/activitystreams-vocabulary/ +bitcoin-ledger https://www.reddit.com/r/Bitcoin/comments/155gw5/heres_how_you_use_ledger_to_account_for_bitcoin/ +bitcoinhackers https://bitcoinhackers.org/web/getting-started +commit-slack https://app.slack.com/client/TEHGEHGQG/ +crypto-watch https://cryptowat.ch/ +heightfield-ao http://nothings.org/gamedev/horizon/ +lego-common-parts https://brickarchitect.com/2019/2019-most-common-lego-parts/ +nixos-channels http://howoldis.herokuapp.com/ +qute-cheatsheet qute://help/img/cheatsheet-big.png +qute-commands qute://help/commands.html +razorcx https://backend-staging.razorcx.com/Organization/List +steamoji-backlog https://steamoji.atlassian.net/secure/RapidBoard.jspa?rapidView=2&projectKey=STEAM&view=planning&selectedIssue=STEAM-288&issueLimit=100 +x11-events https://tronche.com/gui/x/xlib/events/types.html +yt https://www.youtube.com/feed/subscriptions +torrents http://torrent.home./ +steamoji-sprint https://steamoji.atlassian.net/secure/RapidBoard.jspa?rapidView=2&projectKey=STEAM&selectedIssue=STEAM-756 +animal-crossing-fishing https://ca.ign.com/wikis/animal-crossing-new-horizons/Fish_Guide:_Fish_List,_Sell_Price,_and_Fishing_Tips#Cherry_Salmon +notmuch-public-inbox https://yhetil.org/notmuch/ +razorcx-sprint https://gitlab.com/razorcx/RazorCX-Platform/-/boards/1672872?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=Sprint%201 +sovereign-sprint https://gitlab.com/groups/sovereign-engineering/-/boards +steamoji-burndown https://steamoji.atlassian.net/secure/RapidBoard.jspa?rapidView=5&projectKey=STEAM&view=reporting&chart=burndownChart&sprint=35&estimate=field_customfield_10026 +steamoji-issues https://steamoji.atlassian.net/browse/STEAM-825?jql=ORDER%20BY%20updated%20DESC +gpu-reset-bug https://forum.level1techs.com/t/linux-host-windows-guest-gpu-passthrough-reinitialization-fix/121097 +rbc https://www.rbcroyalbank.com/personal.html diff --git a/dotfiles/.config/zathura/zathurarc b/dotfiles/.config/zathura/zathurarc @@ -0,0 +1,16 @@ +map [normal] d scroll full-down +map [normal] u scroll full-up +map [normal] <C-d> toggle_page_mode 2 + +set adjust-open "best-fit" + +set recolor "false" +set default-bg "#000000" +set recolor-lightcolor "#282c34" +set recolor-darkcolor "#abb2bf" +set recolor-keephue "false" + +set scroll-page-aware "true" +set scroll-full-overlap 0.01 +set scroll-step 100 +