Compare commits

...

2 commits

Author SHA1 Message Date
6e9056d5ca
vimiv: Add basic configuration 2024-06-13 10:21:38 +02:00
d0a2853bf2
flavours: Add fzf styling
Added styling for fzf using the base16 schemes. Currently applies only
on newly opened shell environments but that's good enough for me.
2024-06-13 10:20:40 +02:00
6 changed files with 246 additions and 7 deletions

View file

@ -61,7 +61,6 @@ template = "qutebrowser"
subtemplate = "minimal"
file = "~/.local/state/qutebrowser/colorscheme.py"
rewrite = true
light = false
hook = "pgrep -x qutebrowser && qutebrowser :config-source"
# CSS Webpage styling in qutebrowser
@ -90,3 +89,17 @@ file = "~/.config/sioyek/prefs_user.config"
rewrite = false
start = "# START FLAVOURS"
end = "# END FLAVOURS"
[[items]]
# additionally requires style = base16 to be set
# in the [GENERAL] section of ~/.config/vimiv/vimiv.conf
template = "vimiv"
file = "~/.config/vimiv/styles/base16"
rewrite = true
[[items]]
template = "fzf"
subtemplate = "sh"
file = "~/.config/sh/env.d/fzf-base16.sh"
rewrite = true
hook = "source ~/.config/sh/env.d/fzf-base16.sh"

View file

@ -0,0 +1,9 @@
# Scheme name: {{scheme-name}}
# Scheme system: {{scheme-system}}
# Scheme author: {{scheme-author}}
# Template author: Tinted Theming (https://github.com/tinted-theming)
export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS"\
" --color=bg+:#{{base01-hex}},bg:#{{base00-hex}},spinner:#{{base0C-hex}},hl:#{{base0D-hex}}"\
" --color=fg:#{{base04-hex}},header:#{{base0D-hex}},info:#{{base0A-hex}},pointer:#{{base0C-hex}}"\
" --color=marker:#{{base0C-hex}},fg+:#{{base06-hex}},prompt:#{{base0A-hex}},hl+:#{{base0D-hex}}"

View file

@ -0,0 +1,110 @@
[GLOBAL]
<colon> : command
o : command --text='open '
yi : copy-image
yI : copy-image --primary
yy : copy-name
ya : copy-name --abspath
yA : copy-name --abspath --primary
yY : copy-name --primary
x : delete %%
gi : enter image
gl : enter library
gm : enter manipulate
gt : enter thumbnail
f : fullscreen
G : goto -1
gg : goto 1
m : mark %%
q : quit
. : repeat-command
j : scroll down
h : scroll left
l : scroll right
k : scroll up
/ : search
? : search --reverse
N : search-next
P : search-prev
zh : set library.show_hidden!
b : set statusbar.show!
tl : toggle library
tm : toggle manipulate
tt : toggle thumbnail
[IMAGE]
M : center
<button-right> : enter library
<button-middle> : enter thumbnail
| : flip
_ : flip --vertical
<end> : goto -1
<home> : goto 1
<button-forward> : next
<page-down> : next
n : next
<ctrl>n : next --keep-zoom
<space> : play-or-pause
<button-back> : prev
<page-up> : prev
p : prev
<ctrl>p : prev --keep-zoom
> : rotate
< : rotate --counter-clockwise
W : scale --level=1
<equal> : scale --level=fit
w : scale --level=fit
E : scale --level=fit-height
e : scale --level=fit-width
J : scroll-edge down
H : scroll-edge left
L : scroll-edge right
K : scroll-edge up
sl : set slideshow.delay +0.5
sh : set slideshow.delay -0.5
ss : slideshow
+ : zoom in
- : zoom out
[LIBRARY]
<button-middle> : enter thumbnail
go : goto 1 --open-selected
<button-forward> : scroll down --open-selected
n : scroll down --open-selected
<ctrl>d : scroll half-page-down
<ctrl>u : scroll half-page-up
<button-right> : scroll left
<ctrl>f : scroll page-down
<ctrl>b : scroll page-up
<button-back> : scroll up --open-selected
p : scroll up --open-selected
L : set library.width +0.05
H : set library.width -0.05
[THUMBNAIL]
$ : end-of-line
<button-right> : enter library
^ : first-of-line
<ctrl>d : scroll half-page-down
<ctrl>u : scroll half-page-up
<button-back> : scroll left
<ctrl>f : scroll page-down
<ctrl>b : scroll page-up
<button-forward> : scroll right
+ : zoom in
- : zoom out
[COMMAND]
<tab> : complete
<shift><tab> : complete --inverse
<ctrl>p : history next
<ctrl>n : history prev
<up> : history-substr-search next
<down> : history-substr-search prev
<escape> : leave-commandline
[MANIPULATE]
<colon> : command
f : fullscreen
b : set statusbar.show!

View file

@ -0,0 +1,31 @@
; base16-gruvbox-dark-soft
;
; base16: (https://github.com/chriskempson/base16)
;
; Scheme: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
; Template: Christian Karl <karlch at protonmail dot com>
[STYLE]
; Colors
base00 = #32302f
base01 = #3c3836
base02 = #504945
base03 = #665c54
base04 = #bdae93
base05 = #d5c4a1
base06 = #ebdbb2
base07 = #fbf1c7
base08 = #fb4934
base09 = #fe8019
base0a = #fabd2f
base0b = #b8bb26
base0c = #8ec07c
base0d = #83a598
base0e = #d3869b
base0f = #d65d0e
; Additional custom overrides, e.g.
; font = 10pt Hack
; thumbnail.padding = 32
; vim:ft=dosini

View file

@ -0,0 +1,76 @@
[GENERAL]
monitor_filesystem = True
startup_library = True
style = base16
read_only = False
[COMMAND]
history_limit = 100
[COMPLETION]
fuzzy = False
[SEARCH]
ignore_case = True
incremental = True
[IMAGE]
autoplay = True
autowrite = ask
overzoom = 1.0
zoom_wheel_ctrl = True
[LIBRARY]
width = 0.3
show_hidden = False
[THUMBNAIL]
size = 128
save = True
[SLIDESHOW]
delay = 2.0
indicator = slideshow:
[STATUSBAR]
collapse_home = True
show = True
message_timeout = 60000
mark_indicator = <b>*</b>
left = {pwd}{read-only}
left_image = {index}/{total} {basename}{read-only} [{zoomlevel}]
left_thumbnail = {thumbnail-index}/{thumbnail-total} {thumbnail-basename}{read-only}
left_manipulate = {basename} {image-size} Modified: {modified} {processing}
center_thumbnail = {thumbnail-size}
center = {slideshow-indicator} {slideshow-delay} {transformation-info}
right = {keys} {mark-count} {mode}
right_image = {keys} {mark-indicator} {mark-count} {mode}
[KEYHINT]
delay = 500
timeout = 5000
[TITLE]
fallback = vimiv
image = vimiv - {basename}
[METADATA]
keys1 = Exif.Image.Make,Exif.Image.Model,Exif.Photo.LensModel,Exif.Image.DateTime,Exif.Image.Artist,Exif.Image.Copyright
keys2 = Exif.Photo.ExposureTime,Exif.Photo.FNumber,Exif.Photo.ISOSpeedRatings,Exif.Photo.ApertureValue,Exif.Photo.ExposureBiasValue,Exif.Photo.FocalLength,Exif.Photo.ExposureProgram
keys3 = Exif.GPSInfo.GPSLatitudeRef,Exif.GPSInfo.GPSLatitude,Exif.GPSInfo.GPSLongitudeRef,Exif.GPSInfo.GPSLongitude,Exif.GPSInfo.GPSAltitudeRef,Exif.GPSInfo.GPSAltitude
keys4 = Iptc.Application2.Caption,Iptc.Application2.Keywords,Iptc.Application2.City,Iptc.Application2.SubLocation,Iptc.Application2.ProvinceState,Iptc.Application2.CountryName,Iptc.Application2.Source,Iptc.Application2.Credit,Iptc.Application2.Copyright,Iptc.Application2.Contact
keys5 = Exif.Image.ImageWidth,Exif.Image.ImageLength,Exif.Photo.PixelXDimension,Exif.Photo.PixelYDimension,Exif.Image.BitsPerSample,Exif.Image.Compression,Exif.Photo.ColorSpace
[SORT]
image_order = natural
directory_order = alphabetical
reverse = False
ignore_case = False
shuffle = False
[PLUGINS]
print = default
metadata = default
[ALIASES]

View file

@ -54,5 +54,5 @@ export TERM=xterm-256color
. dark_bg
if exist fzf; then
export FZF_DEFAULT_OPTS="--bind 'tab:toggle+down,shift-tab:toggle+up,ctrl-g:top,ctrl-t:toggle-preview,ctrl-d:preview-half-page-down,ctrl-u:preview-half-page-up' --color=light -1 -m --delimiter :"
export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --bind 'tab:toggle+down,shift-tab:toggle+up,ctrl-g:top,ctrl-t:toggle-preview,ctrl-d:preview-half-page-down,ctrl-u:preview-half-page-up' -1 -m --delimiter :"
fi