diff --git a/mail/.local/bin/mail-check b/mail/.local/bin/mail-check index 217833d..e5cb3a8 100755 --- a/mail/.local/bin/mail-check +++ b/mail/.local/bin/mail-check @@ -17,6 +17,8 @@ # MBSYNC_POST="/bin/usr/cmd-to-run" # MBSYNC_NOTIFY=1 +PASSWORD_FILE="$HOME/.local/share/pass/misc/aerc-gmail-app-password.gpg" + prehook() { if [ -n "$MBSYNC_PRE" ]; then eval "$MBSYNC_PRE" @@ -64,7 +66,7 @@ checkonline() { # warn user that he has to enter his password in a moment # to stop catching him offguard or entering something by accident checkwarnuser() { - agt=$(gpg2 --decrypt --no-tty --quiet --no-verbose --for-your-eyes-only --pinentry-mode cancel ~/.local/share/pass/misc/aerc-gmail-app-password.gpg 2>&1) + agt=$(gpg2 --decrypt --no-tty --quiet --no-verbose --for-your-eyes-only --pinentry-mode cancel "$PASSWORD_FILE" 2>&1) if echo "$agt" | grep -qE 'No secret key'; then notify "Mail: Password phrase needed!" sleep 2.5 diff --git a/mpv/.config/mpv/scripts/gallery-dl.lua b/mpv/.config/mpv/scripts/gallery-dl.lua new file mode 100644 index 0000000..d49c561 --- /dev/null +++ b/mpv/.config/mpv/scripts/gallery-dl.lua @@ -0,0 +1,32 @@ +-- gallery-dl_hook.lua +-- +-- load online image galleries as playlists using gallery-dl +-- https://github.com/mikf/gallery-dl +-- +-- to use, prepend the gallery url with: gallery-dl:// +-- e.g. +-- `mpv gallery-dl://https://imgur.com/....` + +local utils = require 'mp.utils' +local msg = require 'mp.msg' + +local function exec(args) + local ret = utils.subprocess({args = args}) + return ret.status, ret.stdout, ret +end + +mp.add_hook("on_load", 15, function() + local url = mp.get_property("stream-open-filename", "") + if (url:find("gdl://") ~= 1) then + msg.debug("not a gdl:// url: " .. url) + return + end + local url = string.gsub(url,"gdl://","") + + local es, urls, result = exec({"gallery-dl", "-g", url}) + if (es < 0) or (urls == nil) or (urls == "") then + msg.error("failed to get album list.") + end + + mp.commandv("loadlist", "memory://" .. urls) +end) diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index 0badd89..f048091 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -71,14 +71,6 @@ c.tabs.title.format = "{index} {audio}{perc}{current_title}" c.tabs.position = "right" c.tabs.width = "15%" -# give the browser nice theme colors -config.source("colorscheme.py") - -# Status bar -# should be visible to prevent 'jumping' bug, -# see https://github.com/qutebrowser/qutebrowser/issues/2236 -c.statusbar.show = "always" - c.colors.webpage.bg = "#555555" # FUNCTION @@ -182,3 +174,6 @@ c.url.searchengines = { "hn": "https://hn.algolia.com/?q={}", "kb": "https://soeg.kb.dk/discovery/search?query=any,contains,{}&tab=Everything&search_scope=MyInst_and_CI&vid=45KBDK_KGL:KGL&offset=0&lang=en", } + +# give the browser nice theme colors +config.source("colorscheme.py") diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc index 0f6aca9..811d889 100644 --- a/vifm/.config/vifm/vifmrc +++ b/vifm/.config/vifm/vifmrc @@ -120,6 +120,7 @@ mark d ~/downloads/ mark p ~/projects/ mark s ~/projects/studentassistant/ mark i ~/pictures/ +mark v ~/videos/ mark n ~/documents/notes/ mark N ~/Nextcloud/ mark l ~/documents/library/academia/pdf/