gallery-dl: add nitter config + tweak download path for mastodon

Also:
- vifm: use cyan instead of purple for window bar (more comfy)
- fish: add ghq_cd function
- mopidy: add some config I might be interested in
This commit is contained in:
Hoang Nguyen 2023-04-20 00:00:00 +07:00
parent 3dd76655aa
commit f170d8f29f
Signed by: folliehiyuki
GPG key ID: B0567C20730E9B11
9 changed files with 48 additions and 10 deletions

View file

@ -20,7 +20,8 @@ Plans for the future of this dotfiles.
- [ ] Wayland compositors: [japokwm](https://github.com/werererer/japokwm), [dwl](https://github.com/djpohly/dwl), [labwc](https://github.com/labwc/labwc), [vivarium](https://github.com/inclement/vivarium), [qtile](https://github.com/qtile/qtile) (also revaluate [hikari](https://hub.darcs.net/raichoo/hikari) and [wayfire](https://wayfire.org))
- [x] ~~[tremc](https://github.com/tremc/tremc) / [rtorrent](https://github.com/rakshasa/rtorrent/)~~ ==> I use [qbt](https://github.com/ludviglundgren/qbittorrent-cli) with qbittorrent-nox daemon now
- [ ] Other terminals (contour, wezterm)
- [ ] CopyQ
- [ ] CopyQ (config, themes + superd service + clipboard menu script)
- [ ] mangal
## Cosmetic

View file

@ -0,0 +1,10 @@
function ghq_cd
set -l proj (ghq list --full-path | fzf \
--no-multi \
--prompt "Project: " \
--preview 'lsd -1FAL --group-dirs first --icon always --color always {}' \
)
if test -n "$proj"
cd -- "$proj"
end
end

View file

@ -13,8 +13,8 @@ highlight /^.*\.(~|$$$|bak|tmp)$/ cterm=none ctermfg=008 ctermbg=default
" General highlight
highlight Border cterm=none ctermfg=002 ctermbg=default
highlight TopLine cterm=none ctermfg=005 ctermbg=default
highlight TopLineSel cterm=bold ctermfg=005 ctermbg=000
highlight TopLine cterm=none ctermfg=006 ctermbg=default
highlight TopLineSel cterm=bold,inverse ctermfg=006 ctermbg=default
highlight TabLine cterm=none ctermfg=004 ctermbg=default
highlight TabLineSel cterm=bold,inverse ctermfg=004 ctermbg=default

View file

@ -3,7 +3,7 @@
file:
path: '~/.config/fish/{{ item }}'
state: directory
mode: 0755
mode: '755'
loop:
- completions
- conf.d
@ -14,19 +14,21 @@
copy:
src: 'fish/{{ item.src }}'
dest: '~/.config/fish/{{ item.dest }}'
mode: 0644
mode: '644'
loop:
- src: fish_greeting.fish
dest: functions/
- src: fish_user_key_bindings.fish
dest: functions/
- src: ghq_cd.fish
dest: functions/
- name: fish | Copy config templates
template:
src: 'fish/{{ item.src }}.j2'
dest: '~/.config/fish/{{ item.dest }}.fish'
force: true
mode: 0644
mode: '644'
loop:
- src: aliases
dest: conf.d/aliases
@ -40,7 +42,7 @@
src: 'fish/{{ item }}'
dest: '~/.config/fish/themes/{{ item }}'
force: true
mode: 0644
mode: '644'
loop:
- Onedark.theme
- Nord.theme
@ -58,7 +60,7 @@
get_url:
url: https://github.com/junegunn/fzf/raw/master/shell/key-bindings.fish
dest: ~/.config/fish/functions/fzf_key_bindings.fish
mode: 0644
mode: '644'
- name: fish | Install fisher
shell: /usr/bin/curl -sSL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher

View file

@ -20,7 +20,7 @@
"mastodon": {
"filename": "{id}_{media[id]}.{extension}",
"directory": ["mastodon", "{instance}", "{account[username]!l}"],
"directory": ["mastodon", "{account[acct]!l}"],
"reblogs": true,
"replies": true,
"text-posts": false,
@ -28,6 +28,13 @@
"root": "https://fosstodon.org"
}
},
"nitter": {
"filename": "{tweet_id}_{num}.{extension}",
"directory": ["twitter", "{user[name]}"],
"nitter.absturztau.be": {
"root": "https://nitter.absturztau.be"
}
},
"pixiv": {
"filename": "{id}_p{num}.{extension}",
"directory": ["Pixiv", "{user[name]}-{user[id]}"],

View file

@ -74,3 +74,5 @@
[privacy]
ignoreTimezone = true
pattern = hms
[ghq]
root = ~/Code

View file

@ -55,6 +55,7 @@ album_art_files =
enabled = true
hostname = 127.0.0.1
port = 6680
csrf_protection = true
[m3u]
enabled = true
@ -65,6 +66,9 @@ default_extension = .m3u8
[softwaremixer]
enabled = true
[stream]
enabled = false
[mpd]
enabled = true
hostname = unix:{{ ansible_env.XDG_RUNTIME_DIR }}/mpd.sock
@ -77,4 +81,6 @@ command_blacklist =
[youtube]
enabled = true
musicapi_enabled = false
allow_cache = false
youtube_dl_package = yt_dlp

View file

@ -127,18 +127,21 @@ system_apk_packages:
- fzf
- gallery-dl
- gdb
- ghq
- ginkgo
- git-branchless
- git-cliff
- git-email
- git-extras
- git-lfs
- git-scalar
- git-sizer
- github-cli
- gitoxide
- glab
- gnupg-doc
- go
- go-jsonnet
- go-s
- go-task
- gobang
- gocryptfs
@ -236,6 +239,7 @@ system_apk_packages:
- peep
- perf
- pgcli
- pijul
- pinentry-qt
- pipe-viewer
- pipewire

View file

@ -107,3 +107,9 @@
community.general.cargo:
name: alass-cli
state: latest
- name: packages | Install faerber
tags: faerber
command:
cmd: /usr/bin/cargo install --locked --force --git https://github.com/nekowinston/faerber.git fearber
removes: /usr/bin/cargo