From af410c0b774d6fe8ef3decc8d778ac025b34b3ab Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 2 Oct 2023 13:55:46 +0200 Subject: [PATCH] writing: Add sioyek configuration --- desktop/.config/flavours/config.toml | 8 +++++ .../templates/sioyek/default.mustache | 20 +++++++++++++ writing/.config/sioyek/keys_user.config | 30 +++++++++++++++++++ writing/.config/sioyek/prefs_user.config | 26 ++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 desktop/.config/flavours/templates/sioyek/default.mustache create mode 100644 writing/.config/sioyek/keys_user.config create mode 100644 writing/.config/sioyek/prefs_user.config diff --git a/desktop/.config/flavours/config.toml b/desktop/.config/flavours/config.toml index c971cc1..14f189d 100644 --- a/desktop/.config/flavours/config.toml +++ b/desktop/.config/flavours/config.toml @@ -82,3 +82,11 @@ rewrite = false start = "# Start flavours" end = "# End flavours" hook = "killall mako" + +[[items]] +# SIOYEK does not support includes afaik +template = "sioyek" +file = "~/.config/sioyek/prefs_user.config" +rewrite = false +start = "# START FLAVOURS" +end = "# END FLAVOURS" diff --git a/desktop/.config/flavours/templates/sioyek/default.mustache b/desktop/.config/flavours/templates/sioyek/default.mustache new file mode 100644 index 0000000..40d0ef4 --- /dev/null +++ b/desktop/.config/flavours/templates/sioyek/default.mustache @@ -0,0 +1,20 @@ +# base16-sioyek (https://github.com/loiccoyle/base16-sioyek) +# by Loic Coyle +# {{scheme-name}} scheme by{{scheme-author}} + +custom_background_color #{{base00-hex}} +custom_text_color #{{base06-hex}} + +page_separator_color #{{base00-hex}} +search_highlight_color #{{base0A-hex}} +status_bar_color #{{base00-hex}} +status_bar_text_color #{{base06-hex}} +ui_text_color #{{base06-hex}} +ui_selected_text_color #{{base06-hex}} +ui_background_color #{{base01-hex}} +ui_selected_background_color #{{base03-hex}} +background_color #{{base00-hex}} +visual_mark_color {{base03-dec-r}} {{base03-dec-g}} {{base03-dec-b}} 0.2 +text_highlight_color #{{base03-hex}} +link_highlight_color #{{base0D-hex}} +synctex_highlight_color #{{base08-hex}} diff --git a/writing/.config/sioyek/keys_user.config b/writing/.config/sioyek/keys_user.config new file mode 100644 index 0000000..a13cfc7 --- /dev/null +++ b/writing/.config/sioyek/keys_user.config @@ -0,0 +1,30 @@ +noop +open_document_embedded o + +toggle_custom_color + +goto_begining gg +goto_end G + +screen_up +screen_down +previous_page +next_page + +next_state L +prev_state H + +fit_to_page_width S +fit_to_page_width_smart s +fit_to_page_height a +fit_to_page_height_smart A + +embed_annotations + +toggle_statusbar + +keyboard_select;add_highlight_with_current_type V + +regex_search / +copy y +rotate_clockwise R diff --git a/writing/.config/sioyek/prefs_user.config b/writing/.config/sioyek/prefs_user.config new file mode 100644 index 0000000..c4ba01a --- /dev/null +++ b/writing/.config/sioyek/prefs_user.config @@ -0,0 +1,26 @@ +# START FLAVOURS +# base16-sioyek (https://github.com/loiccoyle/base16-sioyek) +# by Loic Coyle +# Gruvbox dark, soft scheme byDawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) + +custom_background_color #32302f +custom_text_color #ebdbb2 + +page_separator_color #32302f +search_highlight_color #fabd2f +status_bar_color #32302f +status_bar_text_color #ebdbb2 +ui_text_color #ebdbb2 +ui_selected_text_color #ebdbb2 +ui_background_color #3c3836 +ui_selected_background_color #665c54 +background_color #32302f +visual_mark_color 0.40 0.36 0.33 0.2 +text_highlight_color #665c54 +link_highlight_color #83a598 +synctex_highlight_color #fb4934 +# END FLAVOURS + +super_fast_search 1 +startup_commands toggle_custom_color +