Commit graph

58 commits

Author SHA1 Message Date
dc3b2cf12e
qutebrowser: Update redirects 2023-06-22 12:38:19 +02:00
7121897385
qutebrowser: Add URL rewriting for scribe redirects
Scribe links are often not redirected correctly if belonging to medium's
'global-identity' redirections. This is a first attempt at fixing those
by removing the superfluous string from the scribe URL.

Generalized enough to work as a 'post-processing' function for the
redirection plugin, which can be set up by pointing the 'postprocess'
key of a page entry to a callable object (most likely a function).
2023-05-23 15:42:03 +02:00
337b250aba
qutebrowser: Fix bare redirect exception 2023-03-22 11:48:57 +01:00
617872463b
qutebrowser: Add annas archive search engine 2023-03-21 18:58:35 +01:00
395ae723b9
qutebrowser: Update redirects 2023-03-21 18:56:17 +01:00
6dd08327d8
qutebrowser: Switch youtube search engine back to yewtube 2023-03-09 21:19:27 +01:00
c59b617da5
qutebrowser: Fix external textbox editor
Fixed text not flowing to the external (nvim) editor and saved text not
being brought back into qutebrowser.
Same issue as here https://github.com/qutebrowser/qutebrowser/issues/6707
it essentially amounts to the terminal not having its own running
process id which qutebrowser uses to know when the application closes.
Thus, it thinks it closes immediately and deletes the temporary file. No
changes are brought back and the file is empty for the editor.
With the fix, this does not happen anymore.
2023-03-09 21:17:24 +01:00
ec20d637c0
qutebrowser: Source colorscheme file from xdg state dir 2023-03-03 18:48:55 +01:00
c92afad510
qutebrowser: Removed offline server redirect 2023-03-03 12:54:29 +01:00
ad90cdce30
qutebrowser: Fix index error on redirects
Fixed silly mistake sometimes trying to reach an out of range redirect
url.
2023-02-25 16:54:24 +01:00
6a0745dedb
qutebrowser: Extend page redirection
Extended redirection using open source frontends for a variety of
services: youtube, reddit, lbry, twitter, google translate and more.
2023-01-16 17:36:14 +01:00
8912a09a39
scripts: Change nxsiv-rifle to uoeia
I rewrote and extended the nsxiv-rifle script recently, and this change
now: removes the old script, adds the new one as a submodule into the
repository and links a working binary into the path.

The new script is essentially still just an image grabber-and-opener,
but supports more image viewers, is a little more advanced and can for
example replace arbitrary parts of urls (and is documented a little more
nicely).

Make qutebrowser use new script and remove leftover references to
nsxiv-rifle. Qutebrowser also gets a third option of viewing images, now
there are:

,i -> open selected link in imageviewer
,I -> open current page in imageviewer
,<C-i> -> open selected image in imageviewer
2023-01-08 21:05:16 +01:00
bd1182a873
qutebrowser: Add pypi search,Remove google translate 2023-01-07 14:50:09 +01:00
30e9d09ee4
qutebrowser: Restructure commands and shortcuts
There was not much structure to the shortcuts versus commands so far.
This turns most userscripts into invokable commands, which in turn are
invoked by the respective shortcut mappings. Mappings themselves have
not changed.

New commands are:

- `readable` to invoke readability script
- `save-to-pdf` (from `save_to_pdf`) to save current page as pdf
- `recent-downloads` to show list of recently downloaded files
2022-12-09 12:54:51 +01:00
7e2da571e7
qutebrowser: Add doi2scihub script
Added script which takes you to the corresponding sci-hub entry for any
DOI. DOIs can be passed in three ways:

- via hinted link (shortcut `;p` to start hinting)
- via selected text (select text then invoke `send-to-scihub` command
  with `"p`)
- or from meta tags in current page (invoke `send-to-scihub` command
  with `"p` when on article page)

It will grab the newest sci-hub link and attempt to bring you the
corresponding pdf file.
2022-12-09 12:51:10 +01:00
b2ee02e474
qutebrowser: Add cookie-blocker script
Added cookie-blocker script which attempts to remove the cookie banners
popping up on a variety of websites. Works well for some of the large
ones (e.g. reddit, google, stackoverflow) but less well on smaller
pages.

Can be invoked with `:cookie-block` command alias.
2022-12-09 11:03:37 +01:00
5a9a4e7162
qutebrowser: Add pcgamingwiki search
Now that I have time to enjoy a game every now and again once more,
pcgamingwiki is a wonderful resource to start looking into all sorts of
compatibility issues and troubleshooting, so it is added as a
qutebrowser search engine as `pcw`.
2022-12-08 13:42:09 +01:00
e884c94a99
qutebrowser: Fix terminal calls for wezterm 2022-11-25 17:02:48 +01:00
ff6dab2c8f
qutebrowser: Add docker hub to search engines
Added docker hub search by prefixing search with `docker <query>`.
2022-11-25 16:45:28 +01:00
b8e97120d9
qutebrowser: Rewrite medium urls to use scribe.rip 2022-10-08 17:52:33 +02:00
8c00641c17
qutebrowser: Change image viewing hints from rapid
Changed the hinting style for image viewing from rapid hinting to
normal, single link hinting.

In the future I will have to think more about image viewing
shortcuts in general:

I want to be able to open the current page, a single link (default) and
multiple links in quick succession - how to accomplish without
overloading the lleader+i mapping terribly?
Plus, ideally I would want there to be a shortcut to open both links
(hint links) and images themselves (hint images) which may require even
further mappings.
2022-08-10 08:55:30 +02:00
0aeccdad4f
qutebrowser: Add maps for viewing images in nsxiv
Added two mappings: localleader+i and localleader+I (localleader being ,
in my case) to open single images or galleries in nsxiv.

The maps make use of nsxiv-rifle and mirror the setup for opening video
in mpv with +m/+M where capital letters open the current page and small
ones let you follow a link.
2022-08-06 22:12:06 +02:00
b20e011b66
qutebrowser: Remove outline readability alias
Removed alias to invoke sending a page to outline to make it more
readable. Two reasons: First, outline seems gone. The website is hogged
by advertisements. Second, when I really need a page in readability
mode, I can just send it to my personal wallabag instance and as a bonus
even get it archived automatically.
2022-07-08 22:27:47 +02:00
cbf1e4e8e2
qutebrowser: Fix tab visibility toggling
Changed default tab visibility option to only show when multiple tabs
are open.

Fixed default tab visibility to always take effect when qutebrowser is
started and always allow simultaneous toggling to tabs and status bar
(<leader>tt)
2022-06-12 16:09:35 +02:00
f523431f01
qutebrowser: Add wikiless redirect
Added wikiless as automatic redirection for any wikipedia page.
Will only work for generall `wikipedia.org` links or specifically
english-language `en.wikipedia.org` links.
2022-06-12 16:08:41 +02:00
bef798418e
qutebrowser: Update wallabag userscript
Updated wallabag userscript to be able to both use the current page when
called from qutebrowser or any arbitrary url passed as an argument.
2022-03-05 22:50:16 +01:00
6fabac6cd8
kitty: Switch to kitty terminal emulator
Finally made the switch from alacritty to kitty. I have been thinking
about this for a while. Both, fundamentally, serve my purposes just
fine. Both are fast, customizable, gpu accelerated, and so on.
Kitty feels a little faster on the input, but this should not provide
major differences.

One big difference, however, is now very apparent and I can feel it:
Alacritty, on wayland, does not support any picture preview. It does not
support sixel, and things like w3mimg or ueberzug are based on and
require X11 to run.
Kitty brings its own graphics display library and it seems both pretty
stable and fast.
I have not done much more with it than use it in things like vifm image
previews but it should be much more stable than things like ueberzug,
much faster than things like sixel. Time will tell.

Switched other modules to make use of kitty instead of alacritty:
vifm uses kitty previews,
river spawns kitty instances,
systemd units use kitty instances,
waybar presents extra mouse-click interactions through kitty,
and styler contains a processor to style kitty permanently.

I would love to converge this all a bit more on the `$TERMINAL` env var,
but this is unfortunately difficult for things like systemd and waybar.
For waybar I currently see no real way except for a custom
`ideal-terminal` script which just goes down the list of terminal
emulators I want to run, depending on which is installed,
since it does not read env vars,
while for systemd it might be feasible to import user environment
variables,
but also connected to additional complexity and overhead which it does
not seem worth for the currently two simple service units it affects.

Also removed some obsolete sxhkd and sh settings from the move to
wayland.
2022-01-16 15:18:07 +01:00
bfc19636ad
qutebrowser: Add maps for command mode navigation
Added ways of navigating the command mode similar to unix readline or
fzf lists.
^N / ^P will get you up and down the history / completion options
^J / ^K will get you up the last typed commands
^U / ^A / ^E / ^F / ^B / ^H manipulate the caret on the commandline.
2021-12-02 16:55:43 +01:00
f23f0bd740
tmux: Add music session to defaults
Opens a mopidy server (in the foreground), a commandline player
(ncmpcpp), a sound mixer window, and bluetooth connectivity.
2021-11-30 22:37:36 +01:00
5806aee591
qutebrowser: Switch google maps shortcut for qwant
Switched quicksearch using `maps <location>` query in the browser for
qwant openstreetmaps implementation.
2021-11-16 12:09:47 +01:00
251965799c
qutebrowser: Ignore quickmarks
Bookmarks are already gitignored. While I don't mind the quickmarks
being public, I also don't think them being saved in this repo brings a
lot of pros - and they are massively out of date anyway.

I could think about integrating them on a private fork
https://shivering-isles.com/publish-your-work-while-keeping-a-private-fork
we will see.
2021-08-19 09:44:34 +02:00
62f680ecd3
qutebrowser: Add proxying support for websites
Added automatic proxying to floss alternative frontends for proprietary
websites like reddit (teddit), youtube (invidious), twitter (nitter),
and instagram (bibliogram).

Often does not work on calling cached websites, meaning when it does not
load the correct page a full reload (shift-R) should call up the correct
frontend on first use of a previously visited page.

Squashed commit of the following:

commit ccf5a9f9a001c466e4fe00763f561d09a598bd70
Author: Marty Oehme <marty.oehme@gmail.com>
Date:   Wed Jul 28 10:05:37 2021 +0200

    qutebrowser: Add LocalLeader key concept

    Added differentiation between leader mappings and local leader mappings,
    with a similar idea to vim:
    leader mappings enact changes within qutebrowser on a more general level
    (currently e.g. changing tab display, javascript switch, stylesheet
    setting) while
    local leader mappings enact changes or interact with the current page
    context
    (e.g. start mpv stream, display in readability mode, download pdf
    version of page, and so on).

    This will be hard for my muscle memory, but I think such a switch
    benefits logical action separation in the long run, especially in case I
    add more action shortcuts over time.

    An interesting thing this separation also allows is a more
    buffer-specific action repertoire (for example through recognition of
    current page context with interceptors) so specific pages contain
    different actions.

commit afbe573d527b70fa57d643ede78cd5e71f3ca4c1
Author: Marty Oehme <marty.oehme@gmail.com>
Date:   Tue Jul 27 16:00:37 2021 +0200

    qutebrowser: Rename key mapping file

    Renamed from `keys.py` to `maps.py` to keep some coherence with nvim
    naming scheme.

commit cc78cbb67953bba7ab4d5a6dd48dfa50fbcfe2fc
Author: Marty Oehme <marty.oehme@gmail.com>
Date:   Tue Jul 27 10:19:34 2021 +0200

    qutebrowser: Add reddit redirection

    Added redirection to old.reddit whenever a link on reddit is opened.
    Added redirection of youtube links to yewtu.be invidious instance.
2021-08-18 22:28:50 +02:00
f7350756d0
qute: Update bookmarklets and config structure
qute: Add gemini integration

Added simple integration for gemini. When following a link (`f` or `F`)
to a page which begins with the `gemini://` protocol, it will
automatically convert the page to html and display it instead.

qute: Update configuration structure

Moved larger setting blocks (cmd aliaes, content settings, key mappings,
url settings) into their own files.

qute: Add readability, code_select userscripts

Added userscript to invoke (python) readability mode which will render
the page in a much more nicely to read display.
Can be invoked either through `:spawn --userscript readability` or the
key combination `<leader>r`.

Added userscript to copy code snippets from websites, using the `code`
html tag. Invoked through `;c` to fit into the other extended hinting
options qutebrowser provides.

qute: Add open downloads, default download location

Added ability to open last downloads with `gD`, replaces the previous
open last download -- this one lets you select with dmenu where the old
option only opened the very last download automatically.

Set the download directory to default to XDG directory, with fallback to
`~/downloads` if the env var is not set.

qute: Set vifm filepicker

Set vifm to be the filepicker for qute. Can be used to select single or
multiple files.
Simply select the intended files in vifm and they will be passed through
to qutebrowser (and thus whatever website).
2021-04-22 11:37:27 +02:00
7d959248cd
qute: Update bookmark mappings
Switch the way bookmarks, quickmarks, and scrollmarks are set in
qutebrowser:

Bookmarks can be set with `~`,
Quickmarks can be set with `\`` (backtick),
Scrollmarks can be set with `m`.

This essentially changes the `\`` (backtick) and `mM` key functionality,
but retains the relative setting of quickmarks/bookmarks being on the
same key, just small and capital letter.

This has been changed since I more often need to quickly set a
scrollmark for a page than a new quick/bookmark, and to also unify the
key a little with how vim does it.

Most of the 'bookmarklet' little script invocations I have set
have been migrated away from `<leader>b` pre-mappings to `"` pre-maps:

`<leader>bw` became `"w`
`<leader>ba` became `"a`
`<leader>bg` became `"g`
`<leader>bG` became `"G`

and so on. This makes sense to me as a bigger 'mark' to jump to than a
key-chain prefixed with the leader command.

Lastly, added a key-binding for the newly addded `qr` userscript in
qute, which displays the current url as a qr-code:

`"q`
2021-04-21 11:12:34 +02:00
c9c0490cbf
xdg: Move xdg media directories
Moved all directories with media contents (pictures, videos, music) to a
single coherent media directory.
2021-04-18 13:04:59 +02:00
d71e4a19fb
qutebrowser: Add sending to outline command
Added a command to send the current page to the outline service, which
acts as a readability layer (and lets you read e.g. medium articles
without pulling your hair out).

Just use the `send-to-outline` command, or use keymapping <leader>bo to
send the current page to outline.
2021-03-27 22:25:46 +01:00
41bfe2df69
mail,mpv,qutebrowser,vifm: Fix small issues
Added videos directory to vifm quick marks (`v`).

Fixed (hopefully) qutebrowser statusbar hiding and showing.

Improved mail checking script password file handling by switching the
hard-coded path to one still somewhat hard-coded, but encapsulated in a
variable to make changing it later on easier. The script is a bit
slap-dash anyway, so when refactored should be refactored overall.

Added `gallery-dl` handling by mpv, whenever a link starting with
`gdl://` is passed in.
2021-03-16 14:37:38 +01:00
b2af424d31
qutebrowser: Fix config file, Update block lists
Updated the block lists, for qutebrowser's host blocking and its new
brave adblocking.

Fixed some errors in config file, and now formatted with black
formatter.
Should improve default javascript toggling, as well as fix the toggling
of tabs and statusbar at the same time.

I am not entirely sure why
`config-cycle -t tabs.show always switching;; config-cycle -t statusbar.show in-mode always`
works to cycle both at the same time, since (in my head) putting it like
this should *alternate* between both showing. But in fact, it does the
opposite and putting both in the same order (always not-always) will
alternate between them. Why, I do not know.
2021-03-11 09:33:43 +01:00
c407a6d45b
qutebrowser: Fix quickmarks 2021-03-05 17:03:01 +01:00
1b27c2eac5
qutebrowser: Updated host blocking options to v2
qutebrowser 2.0 changed the option names for host blocking, and this
update simply fixes that change accordingly. See your
qute://help/changelog.html#v2.0.0 file.
2021-02-18 10:38:38 +01:00
8fe325964f
Update qutebrowser quickmarks and search engines 2020-12-19 16:19:39 +01:00
845b98d22d
qutebrowser: Fix git tracking, Add translate script
Added script to quickly translate a page or selected text through google
translate. Can be invoked through the aliases `:translate-page` or `:translate-selection` respectively, or the shortcuts <leader>bg, <leader>bG.

Added some gitignore files in the directory to stop keeping track of
non-personal configuration files.
2020-11-13 09:34:52 +01:00
441cd2ba36
qutebrowser: Fix ytdl link downloading
Fixed the download media (`<leader>dm`) option in qutebrowser to
download the link that is hinted and not the current page.

To download the current page, the keymapping remains the same as before
(`<leader>dM`).
2020-09-18 13:10:37 +02:00
268f8543a2
qutebrowser: Add search engines, download open map
Switched default search engine for my personal searx engine.
Added search engine bangs for duckduckgo (ddg), man-pages (man),
alternativeto.net (alt).

Added key mapping to quickly open last downloaded file, especially
useful for downloaded pdf documents or similar files.
<leader>o will open the last file.
2020-09-12 17:51:37 +02:00
e01b4c885c
[qutebrowser] Set webpage bg to grey
Defaults webpage backgrounds to 'davy grey'. Generally, this will be
overwritten in the stylesheet that is automatically applied through
styler. Setting the background color to a dark one does however prevent
the blinding whiteness when first opening a new page in a dark room and
it still has to load (as well as when rapidly switching between tabs).
2020-07-24 14:10:11 +02:00
14d56b5544
[qutebrowser] Lint and update options to 1.13
Updated legacy options to conform to qutebrowser 1.13 format.
Made file conform to pylint linter.
2020-07-08 09:52:14 +02:00
c93cf0fc27
[qutebrowser] Add fosstodon to js whitelist 2020-06-17 12:33:08 +02:00
f5505cbac1
[mpv] Add low/high quality profiles
Added profiles for lq and hq playback in preparation for battery mode
setting.

Removed qutebrowser forcing ytdl options, since it is set in mpv.conf.
2020-05-13 16:51:32 +02:00
0c8ea5275b [mpv] Add quality limit to browser streams
Sending links to mpv limits the quality to 1080p, to be able to stream
it with my connection, and since I can not display more.

Fixed mpv taking ages to open for ytdl streams. (or anything else which
takes a while to load)
Mpv had to wait until it had enough buffer to begin playing and only
then would open its main window. With this fix it immediately opens the
window, and starts playing whenever it is ready.
2020-05-13 06:02:49 +00:00
fcbadd2bf0
Prepare qutebrowser for styler automation 2020-02-16 13:55:51 +01:00