dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit fe12301c1a493277e6c3d9c24a87a49e07404566
parent 85601e2d98366b4d8c1b949bd962bbf150cd64b8
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 24 Sep 2019 22:31:50 +0200

Remove unused configuration files

Diffstat:
D.config/feh/keys | 12------------
D.config/htop/htoprc | 26--------------------------
D.config/mps-youtube/config | 0
D.config/mutt/offlineimap-password-store.py | 14--------------
D.config/mutt/offlineimap.py | 55-------------------------------------------------------
D.config/newsboat/config | 71-----------------------------------------------------------------------
D.config/newsboat/urls | 158-------------------------------------------------------------------------------
D.config/uzbl/config | 472-------------------------------------------------------------------------------
D.config/uzbl/config-default | 467-------------------------------------------------------------------------------
D.config/uzbl/style.css | 34----------------------------------
D.config/xmoto/config.dat | 20--------------------
11 files changed, 0 insertions(+), 1329 deletions(-)

diff --git a/.config/feh/keys b/.config/feh/keys @@ -1,12 +0,0 @@ -zoom_in K XF86Forward -zoom_out J XF86Back -next_img L space -prev_img BackSpace H - -scroll_up k Up -scroll_down j Down -scroll_right l Right -scroll_left h Left - -toggle_fullscreen f -save_filelist F diff --git a/.config/htop/htoprc b/.config/htop/htoprc @@ -1,26 +0,0 @@ -# Beware! This file is rewritten by htop when settings are changed in the interface. -# The parser is also very primitive, and not human-friendly. -fields=0 48 17 18 38 39 40 2 46 47 49 1 -sort_key=46 -sort_direction=1 -hide_threads=0 -hide_kernel_threads=1 -hide_userland_threads=0 -shadow_other_users=0 -show_thread_names=0 -show_program_path=1 -highlight_base_name=0 -highlight_megabytes=1 -highlight_threads=0 -tree_view=0 -header_margin=1 -detailed_cpu_time=0 -cpu_count_from_zero=0 -update_process_names=0 -account_guest_in_cpu_meter=0 -color_scheme=0 -delay=15 -left_meters=AllCPUs Memory -left_meter_modes=1 1 -right_meters=Hostname Clock LoadAverage Uptime Battery -right_meter_modes=2 2 2 2 2 diff --git a/.config/mps-youtube/config b/.config/mps-youtube/config Binary files differ. diff --git a/.config/mutt/offlineimap-password-store.py b/.config/mutt/offlineimap-password-store.py @@ -1,14 +0,0 @@ -#!/usr/bin/env python -import os.path -import subprocess - -home = os.path.expanduser("~") - -def get_pass(acct): - acct = os.path.basename(acct) - path = "%s/.password-store/Email/%s.gpg" % (home,acct) - args = ["gpg2", "--use-agent", "--quiet", "--batch", "-d", path] - try: - return subprocess.check_output(args).strip() - except subprocess.CalledProcessError: - return "" diff --git a/.config/mutt/offlineimap.py b/.config/mutt/offlineimap.py @@ -1,55 +0,0 @@ -#!/usr/bin/env python -import re -import subprocess -import getpass -import os -import sys -if sys.platform == 'linux2': - import gnomekeyring as gkey - -user = getpass.getuser() -home = os.getenv('HOME') - -def get_keychain_pass(account=None, server=None): - if sys.platform == 'darwin': - command = 'sudo -u ' + user + \ - ' /usr/bin/security -v find-internet-password -g -a ' + account +\ - ' -s ' + server + ' ' + home + '/Library/Keychains/login.keychain' - output = subprocess.check_output(command, shell=True, - stderr=subprocess.STDOUT) - outtext = [l for l in output.splitlines() - if l.startswith('password: ')][0] - - return re.match(r'password: "(.*)"', outtext).group(1) - - elif sys.platform == 'linux2': - - attrs = {'server': server, 'protocol': 'http'} - items = gkey.find_items_sync(gkey.ITEM_NETWORK_PASSWORD, attrs) - return (items[0].attributes['user'], items[0].secret)[1] - - else: - raise Exception('Platform "' + sys.platform + '" not supported.') - - -def set_keychain_pass(protocol, server, user, password): - if sys.platform != 'linux2': - raise Exception('Only Linux is supported for setting passwords.') - - attrs = {'user': user, - 'server': server, - 'protocol': protocol} - name = 'offlineimap ' + server - - gkey.item_create_sync(gkey.get_default_keyring_sync(), - gkey.ITEM_NETWORK_PASSWORD, - name, attrs, password, True) - -if __name__ == '__main__': - if sys.argv[1] == 'create': - set_keychain_pass(sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5]) - else: - account = sys.argv[1] - server = sys.argv[2] - print(get_keychain_pass(account=account, server=server)) - diff --git a/.config/newsboat/config b/.config/newsboat/config @@ -1,71 +0,0 @@ -bind-key i quit -bind-key j next -bind-key k prev -bind-key m toggle-article-read -bind-key M mark-feed-read -bind-key A mark-all-feeds-read -bind-key g home -bind-key G end -bind-key s sort -bind-key S rev-sort -bind-key o open-in-browser-and-mark-read -#bind-key o open-in-browser -bind-key O open-all-unread-in-browser-and-mark-read -bind-key | pipe-to -bind-key ^U pageup -bind-key ^D pagedown -bind-key SPACE macro-prefix -bind-key ] next-feed -bind-key [ prev-feed - -unbind-key J -unbind-key K -unbind-key C -unbind-key pageup -unbind-key pagedown -unbind-key home -unbind-key end - -max-items 1000 -history-limit 0 # do not store search queries -bookmark-cmd "~/bin/bookmark" -bookmark-autopilot yes -show-read-feeds no # toggle view with 'l' -auto-reload yes -reload-threads 6 -reload-time 20 -feed-sort-order firsttag -article-sort-order date-asc -#feedlist-format "%2i %n %8u %t %> %T" -feedlist-format "%2i %n %8u %t" -feedlist-title-format "%N %V - Feeds (%u unread, %t total)%?T? - tag `%T'&?" -#error-log "~/.newsbeuter/error.log" -html-renderer "w3m -dump -T text/html" - -color background default default -color listnormal default default -color listfocus default color7 # indicator -color listnormal_unread cyan default # unread, not under indicator -color listfocus_unread cyan color7 # normal, under indicator -color info default default bold # status bars -color article default default - -highlight article "^(Feed|Author):" default default -highlight article "^(Link):" default default -highlight article "^(Title):" default default bold -highlight article "^(Date):" default default -highlight feedlist "https?://[^ ]+" default default - -# macro prefix is , -browser xdg-open -macro , open-in-browser -macro t set browser "tsp youtube-dl -o '~/tmp/%(title)s.%(ext)s' --add-metadata -ic -f bestvideo+bestaudio/best --all-subs --embed-subs"; open-in-browser ; toggle-article-read ; set browser xdg-open -macro a set browser "tsp youtube-dl -o '~/tmp/%(title)s.%(ext)s' --add-metadata -xic -f bestaudio/best"; open-in-browser ; toggle-article-read ; set browser xdg-open -macro v set browser "setsid nohup mpv >/dev/null 2>&1 "; open-in-browser ; toggle-article-read ; set browser xdg-open -macro w set browser "w3m"; open-in-browser ; toggle-article-read ; set browser xdg-open -# macro p set browser "dmenuhandler"; open-in-browser ; set browser xdg-open -macro y set browser "echo -n %u | xclip -selection clipboard" ; open-in-browser ; set browser xdg-open -macro p set browser "wkhtmltopdf %u out.pdf && mv out.pdf ~/tmp/$(basename $(mktemp)).pdf" ; open-in-browser ; set browser xdg-open -macro u set browser "curl -L %u | grep -i '\.pdf' | urlview" ; open-in-browser ; set browser xdg-open -macro s set browser "cd ~/tmp && tsp shdl -t -n -o %u" ; open-in-browser ; set browser xdg-open -macro c set browser "cd ~/tmp && comic %u" ; open-in-browser ; toggle-article-read ; set browser xdg-open diff --git a/.config/newsboat/urls b/.config/newsboat/urls @@ -1,158 +0,0 @@ -http://feeds.feedburner.com/coldhardfacts?format=xml comedy "~comedy: Cold Hard Facts" -http://www.jspowerhour.com/comics.rss comedy "~comedy: Junior Scientist Power Hour" -http://www.smbc-comics.com/rss.php comedy "~comedy: Saturday Morning Breakfast Cereal" -http://www.threewordphrase.com/rss.xml comedy "~comedy: Three Word Phrase" -https://xkcd.com/rss.xml comedy "~comedy: xkcd" -https://what-if.xkcd.com/feed.atom comedy "~comedy: xkcd: what if" -https://www.theonion.com/rss comedy news "~comedy: The Onion" - -http://www.dr.dk/nyheder/service/feeds/allenyheder news "~news: DR Nyheder" -http://www.democracynow.org/democracynow.rss news "~news: Democracy Now!" -https://stallman.org/rss/rss.xml news "~news: Richard Stallman political notes" -https://www.theguardian.com/world/rss news "~news: The Guardian" -https://www.smithsonianmag.com/rss/latest_articles/ news "~news: Smithsonian: Latest Articles" -https://www.smithsonianmag.com/rss/science-nature/ news "~news: Smithsonian: Science" - -https://www.35mmc.com/feed/ photo "~photo: 35mmc" -https://www.japancamerahunter.com/feed/ photo "~photo: Japan Camera Hunter" -https://luminous-landscape.com/feed/ photo "~photo: Luminous Landscape" -http://martinbluhm.zenfolio.com/blog.rss photo "~photo: Martin Bluhm" -http://phillipreeve.net/blog/feed/ photo "~photo: Phillip Reeve" -http://filmlabapp.com/feed.xml photo "~photo: Film Lab" -https://www.darktable.org/feed/blog.rss.xml photo tech "~photo: Darktable Blog" -https://www.darktable.org/feed/news.rss.xml photo tech "~photo: Darktable News" -https://andersdamsgaard.com/index.xml photo "~photo: andersdamsgaard.com" - -http://geo.au.dk/rss.xml?element=203201 research "~research: geo.au.dk: Nyheder" -http://geo.au.dk/rss.xml?element=203202 research "~research: geo.au.dk: Arrangementer" -http://www.nature.com/nature/current_issue/rss/ research "~research: Nature" -http://feeds.nature.com/ncomms/rss/current research "~research: Nature Communications" -http://feeds.nature.com/ngeo/rss/current research "~research: Nature Geoscience" -http://www.journals.elsevier.com/computers-and-geosciences/rss/ research "~research: Computers and Geosciences" -https://www.cambridge.org/core/rss/product/id/FE8284B2577ADBCD299821FDE4E752F1 research "~research: Journal of Glaciology: Latest" -http://rss.sciencedirect.com/publication/science/0012821X research "~research: Earth and Planetary Science Letters" -http://onlinelibrary.wiley.com/rss/journal/10.1002/(ISSN)1096-9837 research "~research: Earth Surface Processes and Landforms" -http://www.earth-surf-dynam.net/xml/rss2_0.xml research "~research: Earth Surface Dynamics" -http://feeds.launchpad.net/esys-particle/announcements.atom research "~research: ESyS-Particle" -http://journal.frontiersin.org/journal/earth-science/section/cryospheric-sciences/rss research "~research: Frontiers in Earth Science: Cryospheric Sciences" -http://journal.frontiersin.org/journal/earth-science/rss research "~research: Frontiers in Earth Science" -http://rss.sciencedirect.com/publication/science/0169555X research "~research: Geomorphology" -http://onlinelibrary.wiley.com/rss/journal/10.1002/(ISSN)1944-8007 research "~research: Geophysical Research Letters" -http://link.springer.com/search.rss?facet-content-type=Article&facet-journal-id=10035&channel-name=Granular+Matter research "~research: Granular Matter" -https://igpp.ucsd.edu/news/rss.xml research "~research: IGPP Recent News" -http://onlinelibrary.wiley.com/rss/journal/10.1002/%28ISSN%292169-9011 research "~research: Journal of Geophysical Research: Earth Surface" -http://onlinelibrary.wiley.com/rss/journal/10.1002/(ISSN)2169-9291 research "~research: Journal of Geophysical Research: Oceans" -http://feeds.nature.com/nclimate/rss/current research "~research: Nature Climate Change" -http://www.journals.elsevier.com/powder-technology/rss/ research "~research: Powder Technology" -http://feeds.aps.org/rss/tocsec/PRE-Computationalphysics.xml research "~research: Physical Review E: Computational physics" -http://feeds.aps.org/rss/tocsec/PRE-Fluiddynamics.xml research "~research: Physical Review E: Fluid dynamics" -http://feeds.aps.org/rss/tocsec/PRE-Granularmaterials.xml research "~research: Physical Review E: Granular materials" -http://www.sciencemag.org/rss/current.xml research "~research: Science" -http://rss.sciencedirect.com/publication/science/02773791 research "~research: Quaternary Science Reviews" -http://www.the-cryosphere.net/xml/rss2_0.xml research "~research: The Cryosphere" -http://feeds.feedburner.com/edp_epje?format=xml research "~research: European Physical Journal E" -https://phys.org/rss-feed/ research "~research: Phys.org" - -http://feeds.arstechnica.com/arstechnica/index tech "~tech: Ars Technica" -http://www.debian.org/News/news tech "~tech: Debian" -https://micronews.debian.org/feeds/feed.rss tech "~tech: Debian Micronews" -http://geodatahub.dk/feed.xml tech "~tech: GeoDataHub" -http://lukesmith.xyz/rss.xml tech "~tech: Luke Smith" -http://www.daemonology.net/hn-daily/index.rss tech "~tech: Hacker News Daily" -http://imapfw.offlineimap.org/feed.xml tech "~tech: Imapfw" -https://blog.kitware.com/feed/ tech "~tech: Kitware" -http://neovim.org/news.xml tech "~tech: Neovim News" -http://feeds.feedburner.com/nvidia/parallelforall tech "~tech: NVidia Parallelforall" -https://blog.torproject.org/blog/feed tech "~tech: Tor Project" -http://motherboard.vice.com/rss tech "~tech: Vice Motherboard" -http://vimcasts.org/feeds/quicktime.rss tech "~tech: Vimcasts" -https://vimways.org/index.xml tech "~tech: Vimways" -http://codemadness.org/atom.xml tech "~tech: codemadness (Hiltjo Posthuma)" -https://www.archlinux.org/feeds/news/ arch tech "~tech: arch news" -https://voidlinux.org/atom.xml tech "~tech: voidlinux news" - -https://www.reddit.com/r/linux.rss reddit tech "~reddit: r/linux" -https://www.reddit.com/r/commandline.rss reddit tech "~reddit: r/commandline" -https://www.reddit.com/r/sed.rss reddit tech "~reddit: r/sed" -https://www.reddit.com/r/archlinux.rss reddit tech "~reddit: r/archlinux" -https://www.reddit.com/r/vim.rss reddit tech "~reddit: r/vim" -https://www.reddit.com/r/suckless.rss reddit tech "~reddit: r/suckless" -https://www.reddit.com/r/unixporn.rss reddit tech "~reddit: r/unixporn" -https://www.reddit.com/r/analog.rss reddit tech "~reddit: r/analog" - -https://www.youtube.com/feeds/videos.xml?channel_id=UC7c8mE90qCtu11z47U0KErg youtube research "~youtube: Nature" - -https://www.youtube.com/feeds/videos.xml?channel_id=UC3I2GFN_F8WudD_2jUZbojA youtube music "~youtube: KEXP" -https://www.youtube.com/feeds/videos.xml?channel_id=UCt7fwAhXDy3oNFTAzF2o8Pw youtube music "~youtube: theneedledrop" -https://www.youtube.com/feeds/videos.xml?channel_id=UC9DkCKm4_VDztRRyge4mCJQ youtube music "~youtube: Amoeba" -https://www.youtube.com/feeds/videos.xml?channel_id=UCrBxmNwqe2pBpQB7LhB7z-w youtube music "~youtube: The Strombo Show" - -https://www.youtube.com/feeds/videos.xml?channel_id=UC9IuUwwE2xdjQUT_LMLONoA youtube tech "~youtube: Julia" -https://www.youtube.com/feeds/videos.xml?channel_id=UC4m2G6T18_JcjwxwtwKJijw youtube tech "~youtube: Samy Kamkar" -https://www.youtube.com/feeds/videos.xml?channel_id=UCIBaDdAbGlFDeS33shmlD0A youtube tech "~youtube: European Space Agency" -https://www.youtube.com/feeds/videos.xml?channel_id=UCLA_DiR1FfKNvjuUpBHmylQ youtube tech "~youtube: NASA" -https://www.youtube.com/feeds/videos.xml?channel_id=UC9-y-6csu5WGm29I7JiwpnA youtube tech "~youtube: Computerphile" -https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg youtube tech "~youtube: DistroTube" -https://www.youtube.com/feeds/videos.xml?channel_id=UC8uT9cgJorJPWu7ITLGo9Ww youtube tech "~youtube: The 8-Bit Guy" -https://www.youtube.com/feeds/videos.xml?channel_id=UCcTt3O4_IW5gnA0c58eXshg youtube tech "~youtube: 8-Bit Keys" -https://www.youtube.com/feeds/videos.xml?channel_id=UCafxR2HWJRmMfSdyZXvZMTw youtube tech "~youtube: Look Mum No Computer" -https://www.youtube.com/feeds/videos.xml?channel_id=UCbzNcFN7cxA8HO18cTYyTfg youtube tech "~youtube: Doctor Mix" -https://www.youtube.com/feeds/videos.xml?channel_id=UCLx053rWZxCiYWsBETgdKrQ youtube tech "~youtube: LGR" -https://www.youtube.com/feeds/videos.xml?channel_id=UC5I2hjZYiW9gZPVkvzM8_Cw youtube tech "~youtube: Techmoan" -https://www.youtube.com/feeds/videos.xml?channel_id=UCf98WFQLzORUfCinbycwXXQ youtube tech "~youtube: Play with Junk" -https://www.youtube.com/feeds/videos.xml?channel_id=UChWv6Pn_zP0rI6lgGt3MyfA youtube tech "~youtube: arduinoversusevil" -https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA youtube tech "~youtube: Luke Smith" -https://www.youtube.com/feeds/videos.xml?channel_id=UCkK9UDm_ZNrq_rIXCz3xCGA youtube tech "~youtube: BryanLunduke" -https://www.youtube.com/feeds/videos.xml?channel_id=UC0A3ldncnGQ1M_RU2Wb4L2A youtube tech "~youtube: quidsup" -https://www.youtube.com/feeds/videos.xml?channel_id=UCTfabOKD7Yty6sDF4POBVqA youtube tech "~youtube: BadEditPro" - -https://www.youtube.com/feeds/videos.xml?channel_id=UCwmhwNhFOgCpwQZ4hdWQ7EQ youtube photo "~youtube: James Stevenson" -https://www.youtube.com/feeds/videos.xml?channel_id=UCHyPdxeP9Ww0y_bMgeP1jxw youtube photo "~youtube: Lena Bessonova" -https://www.youtube.com/feeds/videos.xml?channel_id=UCFJSxBWfYv_VCz_heG-FczA youtube photo "~youtube: Leica Society" -https://www.youtube.com/feeds/videos.xml?channel_id=UCDvq7BPaphEIhBlyDN19rvQ youtube photo "~youtube: aows" -https://www.youtube.com/feeds/videos.xml?channel_id=UC323QJ81e2PXPgMuCF3B5Xg youtube photo "~youtube: Awesome Cameras" -https://www.youtube.com/feeds/videos.xml?channel_id=UCUbAIlQq6qdOCW7nURh9Qog youtube photo "~youtube: The Slanted Lens" -https://www.youtube.com/feeds/videos.xml?channel_id=UChgZlXub-dVuGtTq11O7yZA youtube photo "~youtube: John Free" -https://www.youtube.com/feeds/videos.xml?channel_id=UCLcKQhTO6i0oq10S234vWyA youtube photo "~youtube: Nick Carver" -https://www.youtube.com/feeds/videos.xml?channel_id=UCrZlzcRfCKLngZnqNTmTQjw youtube photo "~youtube: David Hancock" -https://www.youtube.com/feeds/videos.xml?channel_id=UCMYTOWED2RUuRD1QWVcbdiw youtube photo "~youtube: Ilford" -https://www.youtube.com/feeds/videos.xml?channel_id=UC99aCAfYrNqIF6st3gNeHzw youtube photo "~youtube: Silverfast" -https://www.youtube.com/feeds/videos.xml?channel_id=UCkcuvqBAZPgTJ9evx9wkzvA youtube photo "~youtube: Nicos Photography Show" -https://www.youtube.com/feeds/videos.xml?channel_id=UCTgaiv8YdmmNqI8STrpWc7w youtube photo "~youtube: NegativeFeedback" -https://www.youtube.com/feeds/videos.xml?channel_id=UCR-I25_yEl_frEZ26I9ty-w youtube photo "~youtube: Eduardo Pavez Goye" -https://www.youtube.com/feeds/videos.xml?channel_id=UCopwCE5bVtffQif8IFkbUuw youtube photo "~youtube: Matt Day" -https://www.youtube.com/feeds/videos.xml?channel_id=UCIvTu9cuf-NZFzHPJZPH23Q youtube photo "~youtube: Willem Verbeeck" -https://www.youtube.com/feeds/videos.xml?channel_id=UCc-9JMcDZSh6R4OXuWX6Gag youtube photo "~youtube: The Real Sir Robin" -https://www.youtube.com/feeds/videos.xml?channel_id=UCKGkPTT189ckB56safutTXQ youtube photo "~youtube: NickExposed" -https://www.youtube.com/feeds/videos.xml?channel_id=UCVmgQawOcdeA9v9o0aukV7A youtube photo "~youtube: Leica" -https://www.youtube.com/feeds/videos.xml?channel_id=UCSFAYalJ2Q7Tm_WmLgetmeg youtube photo "~youtube: Filmmaker IQ" -https://www.youtube.com/feeds/videos.xml?channel_id=UCJgJWICGMzzvXk2wIgqxVEQ youtube photo "~youtube: Capture One Pro" -https://www.youtube.com/feeds/videos.xml?channel_id=UC7T8roVtC_3afWKTOGtLlBA youtube photo "~youtube: The Art of Photography" -https://www.youtube.com/feeds/videos.xml?channel_id=UCDkJEEIifDzR_2K2p9tnwYQ youtube photo "~youtube: Tony & Chelsea Northrup" -https://www.youtube.com/feeds/videos.xml?channel_id=UC8lJ3EM0VC4TS0jY6VJtTcw youtube photo "~youtube: Luminous Landscape" -https://www.youtube.com/feeds/videos.xml?channel_id=UC6t7IQyBM77KVoCUPfuveOA youtube photo "~youtube: Zeiss Camera Lenses" -https://www.youtube.com/feeds/videos.xml?channel_id=UCN1-864p2gbPiJtnRG3Oujg youtube photo "~youtube: Phase One" -https://www.youtube.com/feeds/videos.xml?channel_id=UCfhW84xfA6gEc4hDK90rR1Q youtube photo "~youtube: Thomas Heaton" -https://www.youtube.com/feeds/videos.xml?channel_id=UCxnBaI6OD3TjfrFzBxoNBjw youtube photo "~youtube: Michael Shainblum" -https://www.youtube.com/feeds/videos.xml?channel_id=UCU9j9_inPFpsOCze_RX-41w youtube photo "~youtube: CineStill" -https://www.youtube.com/feeds/videos.xml?channel_id=UC8Pksdbj37CdE00kmE7Z1dw youtube photo "~youtube: Adorama" -https://www.youtube.com/feeds/videos.xml?channel_id=UC-fHTM9facYaj-EdIBnsPcA youtube photo "~youtube: Fotoimpex" -https://www.youtube.com/feeds/videos.xml?channel_id=UC7um6-cvMO_Wn4gPCSCGvJQ youtube photo "~youtube: Cameraville" -https://www.youtube.com/feeds/videos.xml?channel_id=UCLfGwQwIzK2tdup4QkXr0Bg youtube photo "~youtube: Azriel Knight" -https://www.youtube.com/feeds/videos.xml?channel_id=UCtiLZhefLrm4CEMrctJyzUQ youtube photo "~youtube: Ben Horne" -https://www.youtube.com/feeds/videos.xml?channel_id=UCx4MHIcTdwdcmJ5accSDlPA youtube photo "~youtube: grainydays" -https://www.youtube.com/feeds/videos.xml?channel_id=UCUcaft-3hNIuB1L1IgARPoQ youtube photo "~youtube: The Naked Photographer" -https://www.youtube.com/feeds/videos.xml?channel_id=UCotlbvf26z1LhiKKcDRAZqQ youtube photo "~youtube: Bob Carnie" -https://www.youtube.com/feeds/videos.xml?channel_id=UCAd5I826gVHZZmPahFwuEaQ youtube photo "~youtube: Joe Greer" -https://www.youtube.com/feeds/videos.xml?channel_id=UC8EwI9eDkSJ7_zYa6fGwazA youtube photo "~youtube: Madison B" -https://www.youtube.com/feeds/videos.xml?channel_id=UCVlP-ilVaxoSigxFx0x3iOA youtube photo "~youtube: Dave Rollans Films" -https://www.youtube.com/feeds/videos.xml?channel_id=UCEsIPHfiX6UpomrXTrdq67Q youtube photo "~youtube: Analog Insights" - -https://www.youtube.com/feeds/videos.xml?channel_id=UCm9BPmxgO7fW7_lOXl9-mPw youtube "~youtube: Lars Damsgaard Christensen" -https://www.youtube.com/feeds/videos.xml?channel_id=UCzFfuU06f327-bnI3lODUNQ youtube "~youtube: LinuxChristian" -https://www.youtube.com/feeds/videos.xml?channel_id=UCMx-iVKPpKiRPQfc39nXvXw youtube "~youtube: David Lundbek Egholm" -https://www.youtube.com/feeds/videos.xml?channel_id=UCUC_2Z23y5wGOVG2X1ulCCg youtube "~youtube: Fasanfjer" -https://www.youtube.com/feeds/videos.xml?channel_id=UCR4s1DE9J4DHzZYXMltSMAg youtube "~youtube: HowToBasic" -https://www.youtube.com/feeds/videos.xml?channel_id=UCRUq9jueekA0t4uz_z5LZmA youtube "~youtube: ToolArchive" -https://www.youtube.com/feeds/videos.xml?channel_id=UCY2mhw-XNZSxrUynsI5K8Zw youtube "~youtube: TheLouisianaChannel" -https://www.youtube.com/feeds/videos.xml?channel_id=UCoxcjq-8xIDTYp3uz647V5A youtube "~youtube: Numberphile" diff --git a/.config/uzbl/config b/.config/uzbl/config @@ -1,472 +0,0 @@ -# Example uzbl config. All settings are optional. You can use uzbl without -# any config at all (but it won't do much). - -# === Core settings ========================================================== - -# common directory locations -set prefix = @(echo $PREFIX)@ -set data_home = @(echo $XDG_DATA_HOME)@ -set cache_home = @(echo $XDG_CACHE_HOME)@ -set config_home = @(echo $XDG_CONFIG_HOME)@ - -# Interface paths. -set fifo_dir = /tmp -set socket_dir = /tmp - -set shell_cmd = sh -c - -# === General config aliases ================================================= - -# Config related events (use the request function): -# request MODE_CONFIG <mode> <key> = <value> -set mode_config = request MODE_CONFIG -# request ON_EVENT <EVENT_NAME> <command> -set on_event = request ON_EVENT -# request ON_SET <key/glob> <command> -set on_set = request ON_SET -# request MODMAP <From> <To> -set modmap = request MODMAP -# request IGNORE_KEY <glob> -set ignore_key = request IGNORE_KEY -# request TOGGLE_MODES <mode1> <mode2> ... <moden> -set toggle_modes = request TOGGLE_MODES - -set set_mode = set mode = -set set_status = set status_message = - -# Spawn path shortcuts. In spawn the first dir+path match is used in "dir1:dir2:dir3:executable" -set scripts_dir = @data_home/uzbl:@prefix/share/uzbl/examples/data:scripts - -# === Hardcoded handlers ===================================================== - -# These handlers can't be moved to the new event system yet as we don't -# support events that can wait for a response from a script. -set scheme_handler = sync_spawn @scripts_dir/scheme.py -#set request_handler = sync_spawn @scripts_dir/request.py -set authentication_handler = sync_spawn @scripts_dir/auth.py -set download_handler = sync_spawn @scripts_dir/download.sh - -# === Dynamic event handlers ================================================= - -# What to do when a website wants to open a new window: -# Open link in new window -@on_event NEW_WINDOW sh 'uzbl-browser ${1:+-u "$1"}' %r -# Open in current window (also see the REQ_NEW_WINDOW event handler below) -#@on_event NEW_WINDOW uri %s -# Open in new tab. Other options are NEW_TAB_NEXT, NEW_BG_TAB and NEW_BG_TAB_NEXT. -#@on_event NEW_WINDOW event NEW_TAB %s - -# What to do when the user requests a new window: -# If your the NEW_WINDOW handler opens the uri in the current window, you'll -# probably want to change this handler to open a new window or tab. -@on_event REQ_NEW_WINDOW event NEW_WINDOW %s - -# Load start handler -@on_event LOAD_START @set_status <span foreground="khaki">wait</span> -# Reset the keycmd on navigation -@on_event LOAD_START @set_mode - -# Load commit handlers -@on_event LOAD_COMMIT @set_status <span foreground="green">recv</span> - - # add some javascript to the page for other 'js' and 'script' commands to access later. -@on_event LOAD_COMMIT js uzbl = {}; -@on_event LOAD_COMMIT script @scripts_dir/formfiller.js -@on_event LOAD_COMMIT script @scripts_dir/follow.js - -# Userscripts/per-site-settings. See the script and the example configuration for details -#@on_event LOAD_COMMIT spawn @scripts_dir/per-site-settings.py @data_home/uzbl/per-site-settings - -# Load finish handlers -@on_event LOAD_FINISH @set_status <span foreground="gold">done</span> -@on_event LOAD_FINISH spawn @scripts_dir/history.sh - -# Switch to insert mode if a (editable) html form is clicked -@on_event FOCUS_ELEMENT sh 'if [ "$1" = INPUT -o "$1" = TEXTAREA -o "$1" = SELECT ]; then echo "@set_mode insert" > $UZBL_FIFO; fi' %s -# Switch to command mode if anything else is clicked -@on_event ROOT_ACTIVE @set_mode command - -# Example CONFIG_CHANGED event handler -#@on_event CONFIG_CHANGED print Config changed: %1 = %2 - -# Scroll percentage calculation -@on_event SCROLL_VERT set scroll_message = \@<(function(curr, min, max, size){if(max == size) return '--'; var p=(curr/(max - size)); return Math.round(10000*p)/100;})(%1,%2,%3,%4)>\@% - -# === Behaviour and appearance =============================================== - -# Custom CSS can be defined here, including link follower hint styles -set stylesheet_uri = file://@config_home/uzbl/style.css - -set show_status = 1 -set status_top = 0 -set status_background = #303030 - -set modcmd_style = weight="bold" foreground="red" -set keycmd_style = weight="light" foreground="red" -set prompt_style = foreground="grey" -set cursor_style = underline="single" -set completion_style = foreground="green" -set hint_style = weight="bold" - -set mode_section = <span background="khaki" foreground="black">[\@[\@mode_indicator]\@]</span> -set keycmd_section = [<span \@prompt_style>\@[\@keycmd_prompt]\@</span><span \@modcmd_style>\@modcmd</span><span \@keycmd_style>\@keycmd</span><span \@completion_style>\@completion_list</span>] -set progress_section = <span foreground="#606060">\@[\@progress.output]\@</span> -set scroll_section = <span foreground="#606060">\@[\@scroll_message]\@</span> -set uri_section = <span foreground="#99FF66">\@[\@uri]\@</span> -set name_section = <span foreground="khaki">\@[\@NAME]\@</span> -set status_section = <span foreground="orange">\@status_message</span> -set selected_section = <span foreground="#606060">\@[\@SELECTED_URI]\@</span> - -set download_section = <span foreground="white">\@downloads</span> - -set status_format = <span font_family="monospace">@mode_section @keycmd_section @progress_section @name_section @status_section @scroll_section @selected_section @download_section</span> -set status_format_right = <span font_family="monospace"><span foreground="#666">uri:</span> @uri_section</span> - -set title_format_long = \@keycmd_prompt \@raw_modcmd \@raw_keycmd \@TITLE - Uzbl browser <\@NAME> \@SELECTED_URI - -# Progress bar config -# %d = done, %p = pending %c = percent done, %i = int done, %s = spinner, -# %t = percent pending, %o = int pending, %r = sprite scroll -set progress.width = 8 -set progress.format = [%d>%p]%c -set progress.done = = -set progress.pending = - -# === Useragent setup ======================================================== - -set useragent = Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}) (@(+uname -sm)@ [@ARCH_UZBL]) - -# === Configure cookie blacklist ======================================================== - -# Accept 'session cookies' from uzbl.org (when you have a whitelist all other cookies are dropped) -#request WHITELIST_COOKIE domain 'uzbl.org$' expires '^$' - -# Drop google analytics tracking cookies (applied after whitelists if any) -#request BLACKLIST_COOKIE name '^__utm.$' - -# === SSL related configuration ============================================== - -# Set it to certificates store of your distribution, or your own CAfile. -set ssl_ca_file = /etc/ssl/certs/ca-certificates.crt -set ssl_verify = 1 -# Command to toggle ssl_verify value: -@cbind !ssl = chain 'toggle ssl_verify' 'reload' -# Example SSL error handler: -@on_event LOAD_ERROR js var patt=new RegExp('SSL handshake failed'); if (patt.test('%3')) {alert ('%3');} - -# === Key binding configuration ============================================== -# --- Internal modmapping and ignoring --------------------------------------- - -#modmap <From> <To> -@modmap <Control> <Ctrl> -@modmap <ISO_Left_Tab> <Shift-Tab> -@modmap <space> <Space> -@modmap <KP_Enter> <Enter> - -#ignore_key <glob> -@ignore_key <ISO_*> -@ignore_key <Shift> -@ignore_key <Multi_key> -@ignore_key <Mod2> - -# --- Bind aliases ----------------------------------------------------------- - -# request BIND <bind cmd> = <command> -set bind = request MODE_BIND global - -# request MODE_BIND <mode> <bind cmd> = <command> -set mode_bind = request MODE_BIND - -# Insert mode binding alias -set ibind = @mode_bind insert - -# Command mode binding alias -set cbind = @mode_bind command - -# Non-insert mode bindings alias (ebind for edit-bind). -set ebind = @mode_bind global,-insert - -# --- Global & keycmd editing binds ------------------------------------------ - -# Resets keycmd and returns to default mode. -@on_event ESCAPE @set_mode -@on_event ESCAPE event KEYCMD_CLEAR -@on_event ESCAPE js uzbl.follow.clearHints() -@on_event ESCAPE search_clear -@on_event ESCAPE js window.getSelection().removeAllRanges() -@bind <Escape> = event ESCAPE -@bind <Ctrl>[ = event ESCAPE - -# Commands for editing and traversing the keycmd. -@ebind <Return> = event KEYCMD_EXEC_CURRENT -@ebind <Home> = event SET_CURSOR_POS 0 -@ebind <End> = event SET_CURSOR_POS -1 -@ebind <Left> = event SET_CURSOR_POS - -@ebind <Right> = event SET_CURSOR_POS + -@ebind <BackSpace> = event KEYCMD_BACKSPACE -@ebind <Delete> = event KEYCMD_DELETE -@ebind <Tab> = event START_COMPLETION -# Readline-ish bindings. -@ebind <Ctrl>w = event KEYCMD_STRIP_WORD \ -./&?= -@ebind <Ctrl>u = event SET_KEYCMD -@ebind <Ctrl>a = event SET_CURSOR_POS 0 -@ebind <Ctrl>e = event SET_CURSOR_POS -1 - -@ebind <Up> = event HISTORY_PREV -@ebind <Down> = event HISTORY_NEXT -@ebind <Ctrl>r<search:>_ = event HISTORY_SEARCH %s -# Keycmd injection/append examples. -#@ebind <Ctrl>su = event INJECT_KEYCMD \@uri -#@ebind <Ctrl>st = event INJECT_KEYCMD \@title -#@ebind <Ctrl>du = event APPEND_KEYCMD \@uri -#@ebind <Ctrl>dt = event APPEND_KEYCMD \@title - -# --- Mouse bindings --------------------------------------------------------- - -# Middle click open in new window -@bind <Button2> = sh 'if [ "$1" ]; then echo "event REQ_NEW_WINDOW $1" > "$UZBL_FIFO"; else echo "uri $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"; fi' '\@SELECTED_URI' - -# --- Keyboard bindings ------------------------------------------------------ - -# With this command you can enter in any command at runtime when prefixed with -# a colon. -@cbind :_ = %s - -# open a new window or a new tab (see the on_event NEW_WINDOW settings above) -@cbind W = event REQ_NEW_WINDOW - -# Page movement binds -@cbind j = scroll vertical 20 -@cbind k = scroll vertical -20 -@cbind h = scroll horizontal -20 -@cbind l = scroll horizontal 20 -@cbind <Page_Down> = scroll vertical 100% -@cbind <Ctrl>d = scroll vertical 50% -@cbind <Page_Up> = scroll vertical -100% -@cbind <Ctrl>u = scroll vertical -50% -@cbind gg = scroll vertical begin -@cbind G = scroll vertical end -@cbind <Home> = scroll vertical begin -@cbind <End> = scroll vertical end -@cbind ^ = scroll horizontal begin -@cbind $ = scroll horizontal end -@cbind <Space> = scroll vertical 50% -@cbind :<Go To:>_ = scroll vertical %r! -@cbind _:<Go To:>_ = scroll horizontal %r! - -# Navigation binds -@cbind H = back -@cbind L = forward -@cbind S = stop -@cbind r = reload -@cbind R = reload_ign_cache - -# Mouse bindings -@cbind <Button8> = back -@cbind <Button9> = forward - -# Zoom binds -@cbind + = zoom_in -@cbind - = zoom_out -@cbind T = toggle zoom_type -@cbind 1 = set zoom_level = 1.0 -@cbind 2 = set zoom_level = 2.0 - -# Appearance binds -@cbind t = toggle show_status - -# Page searching binds -@cbind /* = search %s -@cbind ?* = search_reverse %s -# Jump to next and previous items -@cbind n = search -@cbind N = search_reverse - -# Print pages to a printer -@cbind <Ctrl>p = hardcopy - -# Web searching binds -@cbind sw<Startpage:>_ = uri https://ixquick.com/do/search?query=%s -@cbind sg<Google:>_ = uri https://www.google.com/search?q=\@<encodeURIComponent(%r)>\@ -@cbind ddg<DuckDuckGo:>_ = uri https://duckduckgo.com/?q=%s -@cbind awiki<Archwiki:>_ = uri http://wiki.archlinux.org/index.php/Special:Search?search=\@<encodeURIComponent(%r)>\@&go=Go -@cbind wiki<Wikipedia:>_ = uri https://en.wikipedia.org/w/index.php?title=Special:Search&search=\@<encodeURIComponent(%r)>\@&go=Go - -# Handy binds -# Set function shortcut -@cbind S<var:>_<value:>_ = set %1 = %2 -# Exit binding -@cbind ZZ = exit -# Dump config to stdout -@cbind !dump = sh 'echo dump_config > "$UZBL_FIFO"' -# Reload all variables in the config -@cbind !reload = sh "sed '/^# === Post-load misc commands/,$d' \"$UZBL_CONFIG\" | grep '^set ' > \"$UZBL_FIFO\"" - -# Use socat to directly inject commands into uzbl-core and view events -# raised by uzbl-core: -@cbind <Ctrl><Mod1>t = sh 'xterm -e "socat unix-connect:\"$UZBL_SOCKET\" -"' -#@cbind <Ctrl><Mod1>t = sh 'urxvt -e socat unix-connect:"$UZBL_SOCKET" -' - -# Uri opening prompts -@cbind o<uri:>_ = uri %s -# Or have it load the current uri into the keycmd for editing -@cbind O<uri:\@uri>_ = uri %s - -# Mode setting binds -@cbind i = @set_mode insert -@bind <Ctrl>i = @set_mode insert - -# Hard-bound bookmarks -@cbind gh = uri http://www.uzbl.org - -# New window binds -@cbind gw = event REQ_NEW_WINDOW - -# SSL-ify bindings -@cbind zs = uri \@(echo "$UZBL_URI" | sed -e 's/^http:/https:/')\@ -@cbind zS = event REQ_NEW_WINDOW \@(echo "$UZBL_URI" | sed -e 's/^http:/https:/')\@ - -# Yanking & pasting binds -@cbind yu = sh 'echo -n "$UZBL_URI" | xclip' -@cbind yU = sh 'echo -n "$1" | xclip' '\@SELECTED_URI' -@cbind yy = sh 'echo -n "$UZBL_TITLE" | xclip' -@cbind ys = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('returnuri') >\@ clipboard - -# Clone current window -@cbind c = event REQ_NEW_WINDOW \@uri -# Go the page from primary selection -@cbind p = sh 'echo "uri $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' -# Go to the page in clipboard -@cbind P = sh 'echo "uri $(xclip -selection clipboard -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' -# Start a new uzbl instance from the page in primary selection -@cbind 'p = sh 'echo "event REQ_NEW_WINDOW $(xclip -o)" > "$UZBL_FIFO"' -# paste primary selection into keycmd at the cursor position -@bind <Shift><Insert> = sh 'echo "event INJECT_KEYCMD $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' - -# Bookmark inserting binds -@cbind <Ctrl>m<tags:>_ = sh 'echo "$UZBL_URI $1" >> "$XDG_DATA_HOME"/uzbl/bookmarks' '%s' -# Or use a script to insert a bookmark. -@cbind M = spawn @scripts_dir/insert_bookmark.sh - -# Bookmark/history loading -@cbind U = spawn @scripts_dir/load_url_from_history.sh -@cbind u = spawn @scripts_dir/load_url_from_bookmarks.sh - -# Temporary bookmarks -#@cbind <Ctrl>d = spawn @scripts_dir/insert_temp.sh -#@cbind D = spawn @scripts_dir/load_url_from_temps.sh - -# Link following (similar to vimperator and konqueror) -# Set custom keys you wish to use for navigation. Some common examples: -set follow_hint_keys = 0123456789 -#set follow_hint_keys = qwerty -#set follow_hint_keys = asdfghjkl; -#set follow_hint_keys = thsnd-rcgmvwb/;789aefijkopquxyz234 -@cbind f* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'click') >\@ -@cbind F* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'newwindow') >\@ -@cbind f* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'returnuri') >\@ set -@cbind F* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'returnuri') >\@ clipboard -@cbind fi = spawn @scripts_dir/go_input.sh - -@cbind fs = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('returnuri') >\@ set -@cbind fS = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('click') >\@ -@cbind Fs = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('newwindow') >\@ -@cbind FS = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('returnuri') >\@ clipboard - -@cbind ft* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'returnuri') >\@ set -@cbind fT* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'click') >\@ -@cbind Ft* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'newwindow') >\@ -@cbind FT* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'returnuri') >\@ clipboard - -@cbind '* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'click') >\@ - -# Form filler binds -# This script allows you to configure (per domain) values to fill in form -# fields (eg login information) and to fill in these values automatically. -# This implementation allows you to save multiple profiles for each form -# (think about multiple accounts on some website). -set formfiller = spawn @scripts_dir/formfiller.sh -@cbind ze = @formfiller edit -@cbind zn = @formfiller new -@cbind zl = @formfiller load -@cbind zo = @formfiller once - -# --- Uzbl tabbed binds ------------------------------------------------------ - -# Tab opening -@cbind gn = event NEW_TAB -@cbind gN = event NEW_TAB_NEXT -#@cbind go<uri:>_ = event NEW_TAB %s -#@cbind gO<uri:>_ = event NEW_TAB_NEXT %s - -# Closing / resting -@cbind gC = exit -@cbind gQ = event CLEAN_TABS - -# Tab navigating -@cbind g< = event FIRST_TAB -@cbind g> = event LAST_TAB -@cbind gt = event NEXT_TAB -@cbind gT = event PREV_TAB -@cbind gi<index:>_ = event GOTO_TAB %s - -# Preset loading -set preset = event PRESET_TABS -@cbind gs<preset save:>_ = @preset save %s -@cbind glo<preset load:>_ = @preset load %s -@cbind gd<preset del:>_ = @preset del %s -# This doesn't work right now. -#@cbind gli = @preset list - -# === Context menu items ===================================================== - -# Default context menu -menu_add Google = set uri = http://google.com -menu_add Go Home = set uri = http://uzbl.org -menu_separator separator_1 -menu_add Quit uzbl = exit - -# Link context menu -menu_link_add Print Link = print \@SELECTED_URI - -# === Mode configuration ===================================================== - -# Define some mode specific uzbl configurations. -set command = @mode_config command -set insert = @mode_config insert -set stack = @mode_config stack - -# Command mode config. -@command keycmd_style = foreground="red" -@command status_background = #202020 -@command mode_indicator = Cmd -@command keycmd_events = 1 -@command forward_keys = 0 -@command modcmd_updates = 1 - -# Insert mode config. -@insert status_background = #303030 -@insert mode_indicator = Ins -@insert forward_keys = 1 -@insert keycmd_events = 0 -@insert modcmd_updates = 0 - -# Multi-stage-binding mode config. -@stack keycmd_style = foreground="red" -@stack status_background = #202020 -@stack mode_indicator = Bnd -@stack prompt_style = foreground="#888" weight="light" -@stack keycmd_events = 1 -@stack modcmd_updates = 1 -@stack forward_keys = 0 - -set default_mode = command - -# === Post-load misc commands ================================================ -sync_spawn_exec @scripts_dir/load_cookies.sh -sync_spawn_exec @scripts_dir/load_cookies.sh @data_home/uzbl/session-cookies.txt - -# Set the "home" page. -set uri = uzbl.org/doesitwork/@COMMIT - -# vim: set fdm=syntax: diff --git a/.config/uzbl/config-default b/.config/uzbl/config-default @@ -1,467 +0,0 @@ -# Example uzbl config. All settings are optional. You can use uzbl without -# any config at all (but it won't do much). - -# === Core settings ========================================================== - -# common directory locations -set prefix = @(echo $PREFIX)@ -set data_home = @(echo $XDG_DATA_HOME)@ -set cache_home = @(echo $XDG_CACHE_HOME)@ -set config_home = @(echo $XDG_CONFIG_HOME)@ - -# Interface paths. -set fifo_dir = /tmp -set socket_dir = /tmp - -set shell_cmd = sh -c - -# === General config aliases ================================================= - -# Config related events (use the request function): -# request MODE_CONFIG <mode> <key> = <value> -set mode_config = request MODE_CONFIG -# request ON_EVENT <EVENT_NAME> <command> -set on_event = request ON_EVENT -# request ON_SET <key/glob> <command> -set on_set = request ON_SET -# request MODMAP <From> <To> -set modmap = request MODMAP -# request IGNORE_KEY <glob> -set ignore_key = request IGNORE_KEY -# request TOGGLE_MODES <mode1> <mode2> ... <moden> -set toggle_modes = request TOGGLE_MODES - -set set_mode = set mode = -set set_status = set status_message = - -# Spawn path shortcuts. In spawn the first dir+path match is used in "dir1:dir2:dir3:executable" -set scripts_dir = @data_home/uzbl:@prefix/share/uzbl/examples/data:scripts - -# === Hardcoded handlers ===================================================== - -# These handlers can't be moved to the new event system yet as we don't -# support events that can wait for a response from a script. -set scheme_handler = sync_spawn @scripts_dir/scheme.py -#set request_handler = sync_spawn @scripts_dir/request.py -set authentication_handler = sync_spawn @scripts_dir/auth.py -set download_handler = sync_spawn @scripts_dir/download.sh - -# === Dynamic event handlers ================================================= - -# What to do when a website wants to open a new window: -# Open link in new window -@on_event NEW_WINDOW sh 'uzbl-browser ${1:+-u "$1"}' %r -# Open in current window (also see the REQ_NEW_WINDOW event handler below) -#@on_event NEW_WINDOW uri %s -# Open in new tab. Other options are NEW_TAB_NEXT, NEW_BG_TAB and NEW_BG_TAB_NEXT. -#@on_event NEW_WINDOW event NEW_TAB %s - -# What to do when the user requests a new window: -# If your the NEW_WINDOW handler opens the uri in the current window, you'll -# probably want to change this handler to open a new window or tab. -@on_event REQ_NEW_WINDOW event NEW_WINDOW %s - -# Load start handler -@on_event LOAD_START @set_status <span foreground="khaki">wait</span> -# Reset the keycmd on navigation -@on_event LOAD_START @set_mode - -# Load commit handlers -@on_event LOAD_COMMIT @set_status <span foreground="green">recv</span> - - # add some javascript to the page for other 'js' and 'script' commands to access later. -@on_event LOAD_COMMIT js uzbl = {}; -@on_event LOAD_COMMIT script @scripts_dir/formfiller.js -@on_event LOAD_COMMIT script @scripts_dir/follow.js - -# Userscripts/per-site-settings. See the script and the example configuration for details -#@on_event LOAD_COMMIT spawn @scripts_dir/per-site-settings.py @data_home/uzbl/per-site-settings - -# Load finish handlers -@on_event LOAD_FINISH @set_status <span foreground="gold">done</span> -@on_event LOAD_FINISH spawn @scripts_dir/history.sh - -# Switch to insert mode if a (editable) html form is clicked -@on_event FOCUS_ELEMENT sh 'if [ "$1" = INPUT -o "$1" = TEXTAREA -o "$1" = SELECT ]; then echo "@set_mode insert" > $UZBL_FIFO; fi' %s -# Switch to command mode if anything else is clicked -@on_event ROOT_ACTIVE @set_mode command - -# Example CONFIG_CHANGED event handler -#@on_event CONFIG_CHANGED print Config changed: %1 = %2 - -# Scroll percentage calculation -@on_event SCROLL_VERT set scroll_message = \@<(function(curr, min, max, size){if(max == size) return '--'; var p=(curr/(max - size)); return Math.round(10000*p)/100;})(%1,%2,%3,%4)>\@% - -# === Behaviour and appearance =============================================== - -# Custom CSS can be defined here, including link follower hint styles -set stylesheet_uri = file://@config_home/uzbl/style.css - -set show_status = 1 -set status_top = 0 -set status_background = #303030 - -set modcmd_style = weight="bold" foreground="red" -set keycmd_style = weight="light" foreground="red" -set prompt_style = foreground="grey" -set cursor_style = underline="single" -set completion_style = foreground="green" -set hint_style = weight="bold" - -set mode_section = <span background="khaki" foreground="black">[\@[\@mode_indicator]\@]</span> -set keycmd_section = [<span \@prompt_style>\@[\@keycmd_prompt]\@</span><span \@modcmd_style>\@modcmd</span><span \@keycmd_style>\@keycmd</span><span \@completion_style>\@completion_list</span>] -set progress_section = <span foreground="#606060">\@[\@progress.output]\@</span> -set scroll_section = <span foreground="#606060">\@[\@scroll_message]\@</span> -set uri_section = <span foreground="#99FF66">\@[\@uri]\@</span> -set name_section = <span foreground="khaki">\@[\@NAME]\@</span> -set status_section = <span foreground="orange">\@status_message</span> -set selected_section = <span foreground="#606060">\@[\@SELECTED_URI]\@</span> - -set download_section = <span foreground="white">\@downloads</span> - -set status_format = <span font_family="monospace">@mode_section @keycmd_section @progress_section @name_section @status_section @scroll_section @selected_section @download_section</span> -set status_format_right = <span font_family="monospace"><span foreground="#666">uri:</span> @uri_section</span> - -set title_format_long = \@keycmd_prompt \@raw_modcmd \@raw_keycmd \@TITLE - Uzbl browser <\@NAME> \@SELECTED_URI - -# Progress bar config -# %d = done, %p = pending %c = percent done, %i = int done, %s = spinner, -# %t = percent pending, %o = int pending, %r = sprite scroll -set progress.width = 8 -set progress.format = [%d>%p]%c -set progress.done = = -set progress.pending = - -# === Useragent setup ======================================================== - -set useragent = Uzbl (Webkit @{WEBKIT_MAJOR}.@{WEBKIT_MINOR}) (@(+uname -sm)@ [@ARCH_UZBL]) - -# === Configure cookie blacklist ======================================================== - -# Accept 'session cookies' from uzbl.org (when you have a whitelist all other cookies are dropped) -#request WHITELIST_COOKIE domain 'uzbl.org$' expires '^$' - -# Drop google analytics tracking cookies (applied after whitelists if any) -#request BLACKLIST_COOKIE name '^__utm.$' - -# === SSL related configuration ============================================== - -# Set it to certificates store of your distribution, or your own CAfile. -set ssl_ca_file = /etc/ssl/certs/ca-certificates.crt -set ssl_verify = 1 -# Command to toggle ssl_verify value: -@cbind !ssl = chain 'toggle ssl_verify' 'reload' -# Example SSL error handler: -@on_event LOAD_ERROR js var patt=new RegExp('SSL handshake failed'); if (patt.test('%3')) {alert ('%3');} - -# === Key binding configuration ============================================== -# --- Internal modmapping and ignoring --------------------------------------- - -#modmap <From> <To> -@modmap <Control> <Ctrl> -@modmap <ISO_Left_Tab> <Shift-Tab> -@modmap <space> <Space> -@modmap <KP_Enter> <Enter> - -#ignore_key <glob> -@ignore_key <ISO_*> -@ignore_key <Shift> -@ignore_key <Multi_key> -@ignore_key <Mod2> - -# --- Bind aliases ----------------------------------------------------------- - -# request BIND <bind cmd> = <command> -set bind = request MODE_BIND global - -# request MODE_BIND <mode> <bind cmd> = <command> -set mode_bind = request MODE_BIND - -# Insert mode binding alias -set ibind = @mode_bind insert - -# Command mode binding alias -set cbind = @mode_bind command - -# Non-insert mode bindings alias (ebind for edit-bind). -set ebind = @mode_bind global,-insert - -# --- Global & keycmd editing binds ------------------------------------------ - -# Resets keycmd and returns to default mode. -@on_event ESCAPE @set_mode -@on_event ESCAPE event KEYCMD_CLEAR -@on_event ESCAPE js uzbl.follow.clearHints() -@on_event ESCAPE search_clear -@on_event ESCAPE js window.getSelection().removeAllRanges() -@bind <Escape> = event ESCAPE -@bind <Ctrl>[ = event ESCAPE - -# Commands for editing and traversing the keycmd. -@ebind <Return> = event KEYCMD_EXEC_CURRENT -@ebind <Home> = event SET_CURSOR_POS 0 -@ebind <End> = event SET_CURSOR_POS -1 -@ebind <Left> = event SET_CURSOR_POS - -@ebind <Right> = event SET_CURSOR_POS + -@ebind <BackSpace> = event KEYCMD_BACKSPACE -@ebind <Delete> = event KEYCMD_DELETE -@ebind <Tab> = event START_COMPLETION -# Readline-ish bindings. -@ebind <Ctrl>w = event KEYCMD_STRIP_WORD \ -./&?= -@ebind <Ctrl>u = event SET_KEYCMD -@ebind <Ctrl>a = event SET_CURSOR_POS 0 -@ebind <Ctrl>e = event SET_CURSOR_POS -1 - -@ebind <Up> = event HISTORY_PREV -@ebind <Down> = event HISTORY_NEXT -@ebind <Ctrl>r<search:>_ = event HISTORY_SEARCH %s -# Keycmd injection/append examples. -#@ebind <Ctrl>su = event INJECT_KEYCMD \@uri -#@ebind <Ctrl>st = event INJECT_KEYCMD \@title -#@ebind <Ctrl>du = event APPEND_KEYCMD \@uri -#@ebind <Ctrl>dt = event APPEND_KEYCMD \@title - -# --- Mouse bindings --------------------------------------------------------- - -# Middle click open in new window -@bind <Button2> = sh 'if [ "$1" ]; then echo "event REQ_NEW_WINDOW $1" > "$UZBL_FIFO"; else echo "uri $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"; fi' '\@SELECTED_URI' - -# --- Keyboard bindings ------------------------------------------------------ - -# With this command you can enter in any command at runtime when prefixed with -# a colon. -@cbind :_ = %s - -# open a new window or a new tab (see the on_event NEW_WINDOW settings above) -@cbind w = event REQ_NEW_WINDOW - -# Page movement binds -@cbind j = scroll vertical 20 -@cbind k = scroll vertical -20 -@cbind h = scroll horizontal -20 -@cbind l = scroll horizontal 20 -@cbind <Page_Down> = scroll vertical 100% -@cbind <Ctrl>d = scroll vertical 50% -@cbind <Page_Up> = scroll vertical -100% -@cbind <Ctrl>u = scroll vertical -50% -@cbind << = scroll vertical begin -@cbind >> = scroll vertical end -@cbind <Home> = scroll vertical begin -@cbind <End> = scroll vertical end -@cbind ^ = scroll horizontal begin -@cbind $ = scroll horizontal end -@cbind <Space> = scroll vertical end -@cbind G<Go To:>_ = scroll vertical %r! -@cbind _G<Go To:>_ = scroll horizontal %r! - -# Navigation binds -@cbind b = back -@cbind m = forward -@cbind S = stop -@cbind r = reload -@cbind R = reload_ign_cache - -# Zoom binds -@cbind + = zoom_in -@cbind - = zoom_out -@cbind T = toggle zoom_type -@cbind 1 = set zoom_level = 1.0 -@cbind 2 = set zoom_level = 2.0 - -# Appearance binds -@cbind t = toggle show_status - -# Page searching binds -@cbind /* = search %s -@cbind ?* = search_reverse %s -# Jump to next and previous items -@cbind n = search -@cbind N = search_reverse - -# Print pages to a printer -@cbind <Ctrl>p = hardcopy - -# Web searching binds -@cbind gg<Google:>_ = uri http://www.google.com/search?q=\@<encodeURIComponent(%r)>\@ -@cbind ddg<DuckDuckGo:>_ = uri http://duckduckgo.com/?q=%s -@cbind \\awiki<Archwiki:>_ = uri http://wiki.archlinux.org/index.php/Special:Search?search=\@<encodeURIComponent(%r)>\@&go=Go -@cbind \\wiki<Wikipedia:>_ = uri http://en.wikipedia.org/w/index.php?title=Special:Search&search=\@<encodeURIComponent(%r)>\@&go=Go - -# Handy binds -# Set function shortcut -@cbind s<var:>_<value:>_ = set %1 = %2 -# Exit binding -@cbind ZZ = exit -# Dump config to stdout -@cbind !dump = sh 'echo dump_config > "$UZBL_FIFO"' -# Reload all variables in the config -@cbind !reload = sh "sed '/^# === Post-load misc commands/,$d' \"$UZBL_CONFIG\" | grep '^set ' > \"$UZBL_FIFO\"" - -# Use socat to directly inject commands into uzbl-core and view events -# raised by uzbl-core: -@cbind <Ctrl><Mod1>t = sh 'xterm -e "socat unix-connect:\"$UZBL_SOCKET\" -"' -#@cbind <Ctrl><Mod1>t = sh 'urxvt -e socat unix-connect:"$UZBL_SOCKET" -' - -# Uri opening prompts -@cbind o<uri:>_ = uri %s -# Or have it load the current uri into the keycmd for editing -@cbind O<uri:\@uri>_ = uri %s - -# Mode setting binds -@cbind i = @set_mode insert -@bind <Ctrl>i = @set_mode insert - -# Hard-bound bookmarks -@cbind gh = uri http://www.uzbl.org - -# New window binds -@cbind gw = event REQ_NEW_WINDOW - -# SSL-ify bindings -@cbind zs = uri \@(echo "$UZBL_URI" | sed -e 's/^http:/https:/')\@ -@cbind zS = event REQ_NEW_WINDOW \@(echo "$UZBL_URI" | sed -e 's/^http:/https:/')\@ - -# Yanking & pasting binds -@cbind yu = sh 'echo -n "$UZBL_URI" | xclip' -@cbind yU = sh 'echo -n "$1" | xclip' '\@SELECTED_URI' -@cbind yy = sh 'echo -n "$UZBL_TITLE" | xclip' -@cbind ys = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('returnuri') >\@ clipboard - -# Clone current window -@cbind c = event REQ_NEW_WINDOW \@uri -# Go the page from primary selection -@cbind p = sh 'echo "uri $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' -# Go to the page in clipboard -@cbind P = sh 'echo "uri $(xclip -selection clipboard -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' -# Start a new uzbl instance from the page in primary selection -@cbind 'p = sh 'echo "event REQ_NEW_WINDOW $(xclip -o)" > "$UZBL_FIFO"' -# paste primary selection into keycmd at the cursor position -@bind <Shift><Insert> = sh 'echo "event INJECT_KEYCMD $(xclip -o | sed s/\\\@/%40/g)" > "$UZBL_FIFO"' - -# Bookmark inserting binds -@cbind <Ctrl>m<tags:>_ = sh 'echo "$UZBL_URI $1" >> "$XDG_DATA_HOME"/uzbl/bookmarks' '%s' -# Or use a script to insert a bookmark. -@cbind M = spawn @scripts_dir/insert_bookmark.sh - -# Bookmark/history loading -@cbind U = spawn @scripts_dir/load_url_from_history.sh -@cbind u = spawn @scripts_dir/load_url_from_bookmarks.sh - -# Temporary bookmarks -@cbind <Ctrl>d = spawn @scripts_dir/insert_temp.sh -@cbind D = spawn @scripts_dir/load_url_from_temps.sh - -# Link following (similar to vimperator and konqueror) -# Set custom keys you wish to use for navigation. Some common examples: -set follow_hint_keys = 0123456789 -#set follow_hint_keys = qwerty -#set follow_hint_keys = asdfghjkl; -#set follow_hint_keys = thsnd-rcgmvwb/;789aefijkopquxyz234 -@cbind fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'click') >\@ -@cbind Fl* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'newwindow') >\@ -@cbind fL* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'returnuri') >\@ set -@cbind FL* = spawn @scripts_dir/follow.sh \@< uzbl.follow("\@follow_hint_keys", "%s", 'returnuri') >\@ clipboard -@cbind fi = spawn @scripts_dir/go_input.sh - -@cbind fs = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('returnuri') >\@ set -@cbind fS = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('click') >\@ -@cbind Fs = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('newwindow') >\@ -@cbind FS = spawn @scripts_dir/follow.sh \@< uzbl.follow.followSelection('returnuri') >\@ clipboard - -@cbind ft* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'returnuri') >\@ set -@cbind fT* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'click') >\@ -@cbind Ft* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'newwindow') >\@ -@cbind FT* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'returnuri') >\@ clipboard - -@cbind '* = spawn @scripts_dir/follow.sh \@< uzbl.follow.followTextContent("%s", 'click') >\@ - -# Form filler binds -# This script allows you to configure (per domain) values to fill in form -# fields (eg login information) and to fill in these values automatically. -# This implementation allows you to save multiple profiles for each form -# (think about multiple accounts on some website). -set formfiller = spawn @scripts_dir/formfiller.sh -@cbind ze = @formfiller edit -@cbind zn = @formfiller new -@cbind zl = @formfiller load -@cbind zo = @formfiller once - -# --- Uzbl tabbed binds ------------------------------------------------------ - -# Tab opening -@cbind gn = event NEW_TAB -@cbind gN = event NEW_TAB_NEXT -@cbind go<uri:>_ = event NEW_TAB %s -@cbind gO<uri:>_ = event NEW_TAB_NEXT %s - -# Closing / resting -@cbind gC = exit -@cbind gQ = event CLEAN_TABS - -# Tab navigating -@cbind g< = event FIRST_TAB -@cbind g> = event LAST_TAB -@cbind gt = event NEXT_TAB -@cbind gT = event PREV_TAB -@cbind gi<index:>_ = event GOTO_TAB %s - -# Preset loading -set preset = event PRESET_TABS -@cbind gs<preset save:>_ = @preset save %s -@cbind glo<preset load:>_ = @preset load %s -@cbind gd<preset del:>_ = @preset del %s -# This doesn't work right now. -#@cbind gli = @preset list - -# === Context menu items ===================================================== - -# Default context menu -menu_add Google = set uri = http://google.com -menu_add Go Home = set uri = http://uzbl.org -menu_separator separator_1 -menu_add Quit uzbl = exit - -# Link context menu -menu_link_add Print Link = print \@SELECTED_URI - -# === Mode configuration ===================================================== - -# Define some mode specific uzbl configurations. -set command = @mode_config command -set insert = @mode_config insert -set stack = @mode_config stack - -# Command mode config. -@command keycmd_style = foreground="red" -@command status_background = #202020 -@command mode_indicator = Cmd -@command keycmd_events = 1 -@command forward_keys = 0 -@command modcmd_updates = 1 - -# Insert mode config. -@insert status_background = #303030 -@insert mode_indicator = Ins -@insert forward_keys = 1 -@insert keycmd_events = 0 -@insert modcmd_updates = 0 - -# Multi-stage-binding mode config. -@stack keycmd_style = foreground="red" -@stack status_background = #202020 -@stack mode_indicator = Bnd -@stack prompt_style = foreground="#888" weight="light" -@stack keycmd_events = 1 -@stack modcmd_updates = 1 -@stack forward_keys = 0 - -set default_mode = command - -# === Post-load misc commands ================================================ -sync_spawn_exec @scripts_dir/load_cookies.sh -sync_spawn_exec @scripts_dir/load_cookies.sh @data_home/uzbl/session-cookies.txt - -# Set the "home" page. -set uri = uzbl.org/doesitwork/@COMMIT - -# vim: set fdm=syntax: diff --git a/.config/uzbl/style.css b/.config/uzbl/style.css @@ -1,34 +0,0 @@ -#uzbl_link_hints > span { - z-index: 1000 !important; - - background-color: #333 !important; - margin: 0 !important; - padding: 3px !important; - - color: #ccc !important; - font-size: 9px !important; - line-height: 9px !important; - font-weight: bold !important; - font-variant: normal !important; - text-decoration: none !important; - - -webkit-transform: translate(-5px,-5px); - opacity: 0.8; - -webkit-border-radius: 6px !important; - /* Play around with this, pretty fun things to do :) */ - /* -webkit-transform: scale(1) rotate(0deg) translate(-6px,-5px) !important; */ -} - -/* we can have different colours for different types of hints! */ -#uzbl_link_hints.new-window > span { - background-color: #ffff00 !important; - color: black !important; -} - -.uzbl-follow-text-match { - outline: 2px solid invert; - background: #333 !important; - color: white !important; -} - -/* vim:set et ts=4: */ diff --git a/.config/xmoto/config.dat b/.config/xmoto/config.dat @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<userconfig> - <var name="DisplayWidth" value="1366" /> - <var name="DisplayHeight" value="768" /> - <var name="DisplayBPP" value="32" /> - <var name="DisplayWindowed" value="true" /> - <var name="DisplayMaxRenderFPS" value="50" /> - <var name="DrawLib" value="OPENGL" /> - <var name="DefaultProfile" value="admesg" /> - <var name="ScreenshotFormat" value="png" /> - <var name="StoreReplays" value="true" /> - <var name="ReplayFrameRate" value="25.000000" /> - <var name="WebLevelsURL" value="http://xmoto.tuxfamily.org/levels.xml" /> - <var name="WebDbSyncUploadURL" value="http://xmoto.tuxfamily.org/tools/UploadDbSync.php" /> - <var name="WebThemesURL" value="http://xmoto.tuxfamily.org/themes.xml" /> - <var name="WebThemesURLBase" value="http://xmoto.tuxfamily.org/sprites" /> - <var name="WebHighscoreUploadURL" value="http://xmoto.tuxfamily.org/tools/UploadReplay.php" /> -</userconfig> -