stuff
This commit is contained in:
parent
96f1792c09
commit
4fc1e20fdd
30 changed files with 1045 additions and 39 deletions
|
|
@ -14,6 +14,10 @@ if status is-interactive
|
|||
fish_clipboard_paste
|
||||
end
|
||||
|
||||
function open --wraps 'open'
|
||||
xdg-open $argv >/dev/null 2>/dev/null & disown
|
||||
end
|
||||
|
||||
function alacritty --description 'Create new Alacritty window'
|
||||
command alacritty msg create-window $argv
|
||||
end
|
||||
|
|
@ -27,44 +31,44 @@ if status is-interactive
|
|||
end
|
||||
|
||||
# Colorscheme
|
||||
set -U fish_color_normal normal
|
||||
set -U fish_color_command brgreen --bold
|
||||
set -U fish_color_keyword brred
|
||||
set -U fish_color_quote green --italics
|
||||
set -U fish_color_redirection yellow
|
||||
set -U fish_color_end cyan
|
||||
set -U fish_color_error red --underline=curly
|
||||
set -U fish_color_param normal
|
||||
set -U fish_color_comment brblack
|
||||
set -U fish_color_selection normal --bold --background brblack
|
||||
set -U fish_color_search_match
|
||||
set -U fish_color_history_current
|
||||
set -U fish_color_operator yellow
|
||||
set -U fish_color_escape white --bold
|
||||
set -U fish_color_cwd green
|
||||
set -U fish_color_cwd_root red
|
||||
set -U fish_color_option brblue
|
||||
set -U fish_color_valid_path --underline
|
||||
set -U fish_color_autosuggestion white
|
||||
set -U fish_color_user brgreen
|
||||
set -U fish_color_host normal
|
||||
set -U fish_color_host_remote yellow
|
||||
set -U fish_color_history_current --bold
|
||||
set -U fish_color_status red
|
||||
set -U fish_color_cancel white --bold
|
||||
set -U fish_pager_color_prefix normal --bold --underline
|
||||
set -U fish_pager_color_progress normal --reverse
|
||||
set -U fish_pager_color_completion normal
|
||||
set -U fish_pager_color_description yellow --italics
|
||||
set -U fish_pager_color_selected_background --background brblue
|
||||
set -U fish_pager_color_secondary_background
|
||||
set -U fish_pager_color_selected_completion black --bold
|
||||
set -U fish_pager_color_background
|
||||
set -U fish_pager_color_selected_description bryellow --bold --italics
|
||||
set -U fish_pager_color_secondary_prefix
|
||||
set -U fish_pager_color_secondary_description
|
||||
set -U fish_pager_color_selected_prefix black --bold --underline
|
||||
set -U fish_pager_color_secondary_completion
|
||||
set fish_color_normal normal
|
||||
set fish_color_command brgreen --bold
|
||||
set fish_color_keyword brred
|
||||
set fish_color_quote green --italics
|
||||
set fish_color_redirection yellow
|
||||
set fish_color_end cyan
|
||||
set fish_color_error red --underline=curly
|
||||
set fish_color_param normal
|
||||
set fish_color_comment brblack
|
||||
set fish_color_selection normal --bold --background brblack
|
||||
set fish_color_search_match
|
||||
set fish_color_history_current
|
||||
set fish_color_operator yellow
|
||||
set fish_color_escape white --bold
|
||||
set fish_color_cwd green
|
||||
set fish_color_cwd_root red
|
||||
set fish_color_option brblue
|
||||
set fish_color_valid_path --underline
|
||||
set fish_color_autosuggestion white
|
||||
set fish_color_user brgreen
|
||||
set fish_color_host normal
|
||||
set fish_color_host_remote yellow
|
||||
set fish_color_history_current --bold
|
||||
set fish_color_status red
|
||||
set fish_color_cancel white --bold
|
||||
set fish_pager_color_prefix normal --bold --underline
|
||||
set fish_pager_color_progress normal --reverse
|
||||
set fish_pager_color_completion normal
|
||||
set fish_pager_color_description yellow --italics
|
||||
set fish_pager_color_selected_background --background brblue
|
||||
set fish_pager_color_secondary_background
|
||||
set fish_pager_color_selected_completion black --bold
|
||||
set fish_pager_color_background
|
||||
set fish_pager_color_selected_description bryellow --bold --italics
|
||||
set fish_pager_color_secondary_prefix
|
||||
set fish_pager_color_secondary_description
|
||||
set fish_pager_color_selected_prefix black --bold --underline
|
||||
set fish_pager_color_secondary_completion
|
||||
end
|
||||
|
||||
if test $XDG_CURRENT_DESKTOP = niri
|
||||
|
|
|
|||
16
.config/nvim/ftplugin/tex.lua
Normal file
16
.config/nvim/ftplugin/tex.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
vim.treesitter.start()
|
||||
|
||||
vim.keymap.set('n', '<leader>tb', ':LspTexlabBuild<CR>',
|
||||
{ desc = 'Build using LuaLaTeX'})
|
||||
vim.keymap.set('n', '<leader>ts', ':LspTexlabForward<CR>',
|
||||
{ desc = 'Forward search'})
|
||||
vim.keymap.set('n', '<leader>tc', ':LspTexlabCancelBuild<CR>',
|
||||
{ desc = 'Cancel build'})
|
||||
vim.keymap.set('n', '<leader>tdr', ':LspTexlabCleanArtifacts<CR>',
|
||||
{ desc = 'Clean artifacts'})
|
||||
vim.keymap.set('n', '<leader>tdx', ':LspTexlabCleanAuxiliary<CR>',
|
||||
{ desc = 'Clean auxiliary'})
|
||||
vim.keymap.set('n', '<leader>tes', ':LspTexlabFindEnvironments<CR>',
|
||||
{ desc = 'Find environments'})
|
||||
vim.keymap.set('n', '<leader>tec', ':LspTexlabChangeEnvironment<CR>',
|
||||
{ desc = 'Change environment'})
|
||||
|
|
@ -4,5 +4,5 @@ After=graphical-session.target
|
|||
Requisite=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/swayidle -w timeout 601 'niri msg action power-off-monitors' timeout 600 'swaylock -f' before-sleep 'swaylock -f'
|
||||
ExecStart=/usr/bin/swayidle -w timeout 600 'niri msg action power-off-monitors' timeout 300 'swaylock -f' before-sleep 'swaylock -f'
|
||||
Restart=on-failure
|
||||
|
|
|
|||
|
|
@ -4,6 +4,17 @@
|
|||
"modules-center": ["niri/window"],
|
||||
"modules-right": ["bluetooth", "network", "wireplumber#source", "wireplumber#sink", "battery", "clock"],
|
||||
|
||||
|
||||
"inhibitor": {
|
||||
"what": "handle-lid-switch",
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
},
|
||||
"tooltip": false
|
||||
},
|
||||
|
||||
"niri/window": {
|
||||
"max-length": 100
|
||||
},
|
||||
|
|
|
|||
13
.local/share/applications/sioyek.desktop
Normal file
13
.local/share/applications/sioyek.desktop
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Desktop Entry]
|
||||
Name=Sioyek
|
||||
Comment=PDF viewer for reading research papers and technical books
|
||||
Keywords=pdf;viewer;reader;research;
|
||||
TryExec=sioyek
|
||||
Exec=sioyek %f
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=sioyek
|
||||
Categories=Development;Viewer;
|
||||
MimeType=application/pdf;
|
||||
StartupWMClass=sioyek
|
||||
BIN
.local/share/icons/sioyek.png
Normal file
BIN
.local/share/icons/sioyek.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
396
.local/sioyek/keys.config
Normal file
396
.local/sioyek/keys.config
Normal file
|
|
@ -0,0 +1,396 @@
|
|||
|
||||
# you can edit this file to change keybindings lines that start with '#' are comments
|
||||
# the syntax is pretty simple. Some examples:
|
||||
#command k (command is executed when k is pressed)
|
||||
#command <C-k> (command is executed when k is pressed while holding control)
|
||||
#command K (command is executed when K is entered, which is shift+k)
|
||||
#command <A-k> (command is executed when k is pressed while holding alt)
|
||||
#command + (command is executed when = is pressed while holding shift)
|
||||
#command <C-K> (command is executed when k is pressed while holding control and shift)
|
||||
#command gg (command is executed when g is pressed twice)
|
||||
#command gt (command is executed when g is pressed and then t is pressed)
|
||||
#command g<C-n>Dt (command is executed when g is pressed and then n is pressed while holding\
|
||||
# control and then d is pressed while holding shift and then t is pressed)
|
||||
# you can execute multiple commands using the following syntax:
|
||||
#command1;command2;command3 <keybinding>
|
||||
# for more information see the documentation at https://sioyek-documentation.readthedocs.io/
|
||||
|
||||
|
||||
# ---------- NAVIGATION AND ZOOM ----------
|
||||
|
||||
# Goto the beginning of document. If prefixed with a number, it will go to that page.
|
||||
# for example 150gg goes to page 150.
|
||||
goto_beginning gg
|
||||
goto_beginning <C-<home>>
|
||||
|
||||
# Goto the end of the document
|
||||
goto_end <end>
|
||||
goto_end G
|
||||
|
||||
# Opens a prompt to enter page number and jump to that page
|
||||
goto_page_with_page_number <home>
|
||||
|
||||
## Goto left/right/bottom/top side of the page
|
||||
#goto_left <unbound>
|
||||
#goto_right <unbound>
|
||||
#goto_top_of_page <unbound>
|
||||
#goto_bottom_of_page <unbound>
|
||||
|
||||
# Goto left/right side of the page ignoring white margins
|
||||
goto_left_smart ^
|
||||
goto_right_smart $
|
||||
|
||||
# Goto the top-right side of page. Useful for two column documents
|
||||
goto_top_of_page;goto_right_smart zz
|
||||
|
||||
# Movement (can be prefixed with a number)
|
||||
# move_down <down>
|
||||
# move_up <up>
|
||||
move_left <right>
|
||||
move_right <left>
|
||||
|
||||
# Goto forward for one page width. (can be prefixed with a number)
|
||||
# (note that going forward for one page width is not usually what you want because if
|
||||
# the page is larger than the screen you will miss some content. What you usually want is screen_down)
|
||||
next_page <C-<pagedown>>
|
||||
previous_page <C-<pageup>>
|
||||
|
||||
# Go down one screen width (can be prefixed with a number which tells how many screen widths should we go down)
|
||||
screen_down <space>
|
||||
screen_up <S-<space>>
|
||||
screen_down <pagedown>
|
||||
screen_up <pageup>
|
||||
|
||||
# Goto the next/prev chapter
|
||||
next_chapter gc
|
||||
prev_chapter gC
|
||||
|
||||
# Goto previous viewing state and delete the current (and future) state(s).
|
||||
# pop_state w
|
||||
|
||||
# Goto the previous history point
|
||||
prev_state <backspace>
|
||||
prev_state <C-<left>>
|
||||
|
||||
# Create a new sioyek window
|
||||
new_window <C-t>
|
||||
|
||||
# Close the current sioyek window
|
||||
close_window <C-w>
|
||||
|
||||
## Search and switch between sioyek windows
|
||||
#goto_window <unbound>
|
||||
|
||||
# If we are not at the end of viewing history, goto the next history point
|
||||
next_state <S-<backspace>>
|
||||
next_state <C-<right>>
|
||||
|
||||
# Open table of contents.
|
||||
goto_toc t
|
||||
|
||||
# Zoom
|
||||
zoom_in +
|
||||
fit_to_page_width =
|
||||
zoom_out -
|
||||
|
||||
## Zoom in/out on the mouse cursor (instead of center of screen)
|
||||
# zoom_in_cursor <unbound>
|
||||
# zoom_out_cursor <unbound>
|
||||
|
||||
# Rotate document
|
||||
rotate_clockwise r
|
||||
rotate_counterclockwise R
|
||||
|
||||
# Automatically set the zoom level and horizontal offset such that the current page is centered horizontally and
|
||||
# it fills the screen width
|
||||
fit_to_page_width <f9>
|
||||
# Same as fit_to_page_with but ignores page margins
|
||||
fit_to_page_width_smart <f10>
|
||||
|
||||
## Similar to fit_to_page_width, but for height
|
||||
#fit_to_page_height <unbound>
|
||||
|
||||
## Similar to fit_to_page_width_smart but for height
|
||||
#fit_to_page_height_smart <unbound>
|
||||
|
||||
## Same as fit_to_page_width, but instead of filling the screen width, it fills the ratio of screen that is
|
||||
## configured in `prefs_user.config` using `fit_to_page_width_ratio` config. See https://github.com/ahrm/sioyek/issues/162#issuecomment-1059738730.
|
||||
#fit_to_page_width_ratio <unbound>
|
||||
|
||||
# Open a file dialog to select a document.
|
||||
open_document o
|
||||
# Open an embedded file dialog in sioyek
|
||||
open_document_embedded <C-o>
|
||||
# Open an embedded file dialog in sioyek rooted in the directory of current opened file
|
||||
open_document_embedded_from_current_path <C-O>
|
||||
|
||||
# Open a searchable list of previously opened documents.
|
||||
open_prev_doc O
|
||||
|
||||
## Opens the last document opened is sioyek. It is useful when you want to quickly toggle between two documents
|
||||
#open_last_document <unbound>
|
||||
|
||||
## Keyboard shortcut to enter visual mark mode (instead of right clicking)
|
||||
#enter_visual_mark_mode <unbound>
|
||||
|
||||
# Command the move the visual mark to the next/previous line
|
||||
# these keys only work when a visual mark is set (by right clicking or using `visual_mark_under_cursor` command)
|
||||
move_visual_mark_up k
|
||||
move_visual_mark_down j
|
||||
move_visual_mark_up <up>
|
||||
move_visual_mark_down <down>
|
||||
|
||||
## lock horizontal scroll, useful when using laptop touchpads
|
||||
# toggle_horizontal_scroll_lock <unbound>
|
||||
|
||||
# ---------- SEARCH ----------
|
||||
|
||||
# Search the document.
|
||||
# example: /something (searches the document for 'something')
|
||||
# you can also specify a page range to search:
|
||||
# example: /<110,135>something (searches pages 110 to 135 (inclusive) for 'something')
|
||||
search <C-f>
|
||||
search /
|
||||
|
||||
# Searches the current chapter. This is essentially the same as search but the range prefix is autofilled
|
||||
# with the range of the current lowest level subchapter.
|
||||
chapter_search c<C-f>
|
||||
chapter_search c/
|
||||
|
||||
# Goto the next search item. Can be prefixed with a number which is the same as performing the command n times
|
||||
# for example if we are on the 10th search result and we input 15n, we go to the 25th search result.
|
||||
next_item n
|
||||
# Goto the previous search result. Can be prefixed with a number with similar rules as next_item.
|
||||
previous_item N
|
||||
|
||||
# ---------- BOOKMARKS ----------
|
||||
# Add a bookmark in the current location (opens a text input where you can specify the bookmark text)
|
||||
add_bookmark b
|
||||
delete_bookmark db
|
||||
|
||||
# Open bookmarks menu of the current document.
|
||||
goto_bookmark gb
|
||||
|
||||
# Open bookmarks menu of all documents.
|
||||
goto_bookmark_g gB
|
||||
|
||||
# ---------- HIGHLIGHTS ----------
|
||||
# You can select a piece of text and press the `add_highlight` shortcut followed by a symbol (a character from a-z) to highlight
|
||||
# the text
|
||||
add_highlight h
|
||||
# Goto highlights of current document
|
||||
goto_highlight gh
|
||||
# Goto highlights of all documents
|
||||
goto_highlight_g gH
|
||||
# Left click on a highlight and then press the `delete_highlight` shortcut to delete it.
|
||||
delete_highlight dh
|
||||
|
||||
# Sets the highlight type to be used for other operations (the default highlight type is 'a')
|
||||
#set_select_highlight_type
|
||||
|
||||
## Same as `add_highlight` but uses the current selected highlight type as the type of highlight
|
||||
#add_highlight_with_current_type <unbound>
|
||||
|
||||
## Toggle select highlight mode. In select highlight mode, all text selected using mouse will automatically be highlighted
|
||||
## with highlight type set using `set_select_highlight_type`
|
||||
#toggle_select_highlight <unbound>
|
||||
|
||||
# Goto next/previous highlight in current document
|
||||
goto_next_highlight gnh
|
||||
goto_prev_highlight gNh
|
||||
|
||||
## Goto next/previous highlight of the current selected highlight type
|
||||
#goto_next_highlight_of_type <unbound>
|
||||
#goto_prev_highlight_of_type <unbound>
|
||||
|
||||
# ---------- MARKS ----------
|
||||
|
||||
# Mark the current location. After pressing the mark button, you must enter a symbol (a letter from a-z or A-Z).
|
||||
# this marks the current location in the file with the entered symbol. Afterwards you will be able to return to
|
||||
# the locations of the marks using goto_mark command.
|
||||
# example: mm (marks the current location in the file with a mark named 'm')
|
||||
set_mark m
|
||||
# Goto a previously set mark. After pressing goto_mark you must enter a symbol associated with a previously set mark.
|
||||
# example: `m (goes to the location of the mark named m)
|
||||
goto_mark `
|
||||
|
||||
# ---------- PORTALS ----------
|
||||
# If we are in default state, goto portal state with the current location in document as the portal source
|
||||
# if we are already in the portal state, create the portal with the current location as destination.
|
||||
portal p
|
||||
|
||||
# Delete the portal with the closest source to current location
|
||||
delete_portal dp
|
||||
|
||||
# Goto the position of the portal with the closest source to current location
|
||||
goto_portal gp
|
||||
goto_portal <tab>
|
||||
|
||||
# Similar to goto_portal, except when prev_state is called, the destination of the portal is update to be the state
|
||||
# on which prev_state is called
|
||||
edit_portal P
|
||||
edit_portal <S-<tab>>
|
||||
|
||||
# Open/Close the helper window for portals
|
||||
toggle_window_configuration <f12>
|
||||
|
||||
## open/close helper window
|
||||
#toggle_one_window <unbound>
|
||||
|
||||
# ---------- MISC ----------
|
||||
|
||||
# Copy selected text
|
||||
copy <C-c>
|
||||
|
||||
toggle_fullscreen <f11>
|
||||
|
||||
# Toggles whether we highlight pdf links or not
|
||||
toggle_highlight <f1>
|
||||
|
||||
# open command line
|
||||
command :
|
||||
|
||||
# Search the selected text using one of the search engines defined using search_url_* settings in prefs.config (* can be any letter between 'a' and 'z')
|
||||
# see https://sioyek-documentation.readthedocs.io/en/latest/usage.html#external-search
|
||||
external_search s
|
||||
|
||||
# opens the selected text as a url in the default browser
|
||||
# open_selected_url Q
|
||||
|
||||
# Toggle dark mode (inverted colors)
|
||||
toggle_dark_mode <f8>
|
||||
|
||||
## Toggle custom color mode. You can specify the text background color in your `prefs_user.config` file
|
||||
## see https://sioyek-documentation.readthedocs.io/en/latest/configuration.html#custom-background-color-and-custom-text-color
|
||||
#toggle_custom_color <f8>
|
||||
|
||||
# Toggle synctex mode. When in synctex mode, right clicking on a pdf launches the corresponding latex page.
|
||||
toggle_synctex <f4>
|
||||
|
||||
## Perform a synctex search under the mouse cursor
|
||||
#synctex_under_cursor <unbound>
|
||||
|
||||
# While in mouse drag mode, instead of selecting text you can pan the screen using mouse
|
||||
toggle_mouse_drag_mode <f6>
|
||||
|
||||
# In visual scroll mode, mouse wheel performs `move_visual_mark_up` and `move_visual_mark_down` commands
|
||||
toggle_visual_scroll <f7>
|
||||
|
||||
# In visual scroll mode, create an overview to/go to/portal to the definition in highlighted line
|
||||
overview_definition l
|
||||
goto_definition <C-]>
|
||||
portal_to_definition ]
|
||||
|
||||
# In presentation mode, we fit the pages to screen and movement keys move entire pages
|
||||
toggle_presentation_mode <f5>
|
||||
|
||||
## Quit sioyek
|
||||
quit q
|
||||
|
||||
# Open PDF links using keyboard
|
||||
open_link f
|
||||
|
||||
# Select text using keyboard
|
||||
keyboard_select v
|
||||
|
||||
# Smart jump using keyboard
|
||||
keyboard_smart_jump F
|
||||
|
||||
## Open overview window using keyboard
|
||||
#keyboard_overview <unbound>
|
||||
|
||||
## If the preview is not correct, jump to the next preview
|
||||
#next_preview <C-n>
|
||||
|
||||
## If the preview is not correct, jump to the previous preview
|
||||
#previous_preview <C-N>
|
||||
|
||||
## Jump to the location of the current overview
|
||||
#goto_overview <unbound>
|
||||
|
||||
## Create a portal to the location of the current overview
|
||||
#portal_to_overview <unbound>
|
||||
|
||||
## Center the window on selected text
|
||||
#goto_selected_text <unbound>
|
||||
|
||||
## Focus the visual mark on the text matching the given string (useful when extensions want to focus on a text)
|
||||
#focus_text <unbound>
|
||||
|
||||
## Smart jump to the location under mouse cursor
|
||||
#smart_jump_under_cursor <unbound>
|
||||
## Open overview window to the location under mouse cursor
|
||||
#overview_under_cursor <unbound>
|
||||
## Set a visual mark under mouse cursor
|
||||
#visual_mark_under_cursor <unbound>
|
||||
## Close the overview window
|
||||
#close_overview <unbound>
|
||||
## Exit visual mark mode
|
||||
#close_visual_mark <unbound>
|
||||
|
||||
## Import sioyek data from an exported file
|
||||
#import <unbound>
|
||||
|
||||
## Export sioyek data into a json file
|
||||
#export <unbound>
|
||||
|
||||
## Execute shell commands. For example:
|
||||
## sioyek --new-instance %1
|
||||
## in the command %1 expands to the path of the current file and %2 expand to the file name of the current file
|
||||
#execute <unbound>
|
||||
|
||||
## (deprecated see bottom of the page) Execute a predefined command. these commands are defined in `prefs_user.config` file using the following syntax:
|
||||
## --------prefs_user.config-----------
|
||||
## execute_command_a some_command %1 %2
|
||||
## execute_command_x another_command %2
|
||||
## ------------------------------------
|
||||
## now in order to execute the second command you can first execute `execute_predefined_command` and then press 'x'
|
||||
#execute_predefined_command <unbound>
|
||||
|
||||
## Embed the annotations (highlights and bookmarks) into a new PDF file so they are visible to other PDF readers
|
||||
#embed_annotations <unbound>
|
||||
|
||||
## Copy the current window configuration to clipboard so they can be used in `prefs_user.config`
|
||||
#copy_window_size_config <unbound>
|
||||
|
||||
## Opens the default preference file
|
||||
#prefs <unbound>
|
||||
## Opens the user preference file with highest priority
|
||||
#prefs_user <unbound>
|
||||
## Opens a list of all user preference files
|
||||
#prefs_user_all <unbound>
|
||||
|
||||
## Opens the default kwys file
|
||||
#keys <unbound>
|
||||
## Opens the user keys file with highest priority
|
||||
#keys_user <unbound>
|
||||
## Opens a list of all user keys files
|
||||
#keys_user_all <unbound>
|
||||
|
||||
## Enter password for password protected documents
|
||||
#enter_password <unbound>
|
||||
|
||||
## Toggle fastread mode. this is an experiental feature
|
||||
#toggle_fastread <unbound>
|
||||
|
||||
## Toggle statusbar display
|
||||
#toggle_statusbar <unbound>
|
||||
|
||||
## Reload sioyek window
|
||||
#reload <unbound>
|
||||
|
||||
## Set the status string to be displayed in sioyek's statusbar (it is useful for extensions)
|
||||
#set_status_string <unbound>
|
||||
|
||||
## Clears the status string set by `set_status_string`
|
||||
#clear_status_string <unbound>
|
||||
|
||||
## Toggles the window titlebar
|
||||
#toggle_titlebar <unbound>
|
||||
|
||||
## You can bind custom commands defined in `prefs_user.config` using the same syntax as the built-in commands
|
||||
## --------prefs_user.config-----------
|
||||
## new_command _my_command_name python /path/to/script.py %{file_name} %{paper_name}
|
||||
## ------------------------------------
|
||||
## now you can bind _my_command_name to a keybind here:
|
||||
#_my_command_name <unbound>
|
||||
277
.local/sioyek/prefs.config
Normal file
277
.local/sioyek/prefs.config
Normal file
|
|
@ -0,0 +1,277 @@
|
|||
# For more information see the documentation at https://sioyek-documentation.readthedocs.io/
|
||||
|
||||
# (can be 0 or 1) if set, shows a notification on startup if a new version of sioyek is available
|
||||
check_for_updates_on_startup 0
|
||||
|
||||
# Use old keybind parsing method (only for backwards compatibility)
|
||||
use_legacy_keybinds 0
|
||||
|
||||
# The color with which the screen is cleared before rendering the pdf (this is the background color of the application and not the PDF file)
|
||||
background_color 0.97 0.97 0.97
|
||||
dark_mode_background_color 0.0 0.0 0.0
|
||||
|
||||
# Showing full white text on black background can be irritating for the eye, we can dim the whites a little bit using the contrast option
|
||||
dark_mode_contrast 0.8
|
||||
|
||||
# Highlight color when text is selected using mouse
|
||||
text_highlight_color 1.0 1.0 0.0
|
||||
|
||||
# The color of highlight ruler which is displayed when right click is pressed
|
||||
visual_mark_color 0.0 0.0 0.0 0.1
|
||||
|
||||
# Highlight color when text is a search match
|
||||
search_highlight_color 0.0 1.0 0.0
|
||||
|
||||
# Hihglight color for PDF links (note that highlight is off by default
|
||||
# and can only be seen by performing a toggle_highlight command. See keys.config for more details)
|
||||
link_highlight_color 0.0 0.0 1.0
|
||||
|
||||
# Hihglight color for synctex forward search highlights
|
||||
synctex_highlight_color 1.0 0.0 1.0
|
||||
|
||||
# Urls to use when executing external_search commands
|
||||
search_url_s https://scholar.google.com/scholar?q=
|
||||
search_url_g https://www.google.com/search?q=
|
||||
|
||||
# Which search url to choose when middle clicking or shift middle clicking on text (the values are the letters of corresponding search_url_* )
|
||||
# for example if i set `middle_click_search_engine s`, then we use the url associated with `search_url_s` to handle middle click searches
|
||||
middle_click_search_engine s
|
||||
shift_middle_click_search_engine l
|
||||
|
||||
# The factor by which we increase/decrease zoom when performing zoom_in or zoom_out
|
||||
zoom_inc_factor 1.2
|
||||
|
||||
# How many inches we move vertically/horizontally when performing move_* commands
|
||||
vertical_move_amount 1.0
|
||||
horizontal_move_amount 1.0
|
||||
|
||||
# When performing screen_down/screen_up we usually don't move a full screen because it causes the user to lose context
|
||||
# Here we specify the fraction of the screen width by which we move when performing these commands
|
||||
move_screen_ratio 0.5
|
||||
|
||||
# If 0, Table of Contents is shown in a hierarchial tree, otherwise it is a flat list (can improve performance for extremely large table of contents)
|
||||
flat_toc 0
|
||||
|
||||
# If it is 1, when launching the application if we detect multiple monitors, we automatically launch the helper window in second monitor
|
||||
should_use_multiple_monitors 0
|
||||
|
||||
# If the last opened document is empty, load the tutorial pdf instead
|
||||
should_load_tutorial_when_no_other_file 1
|
||||
|
||||
# (deprecated, use `should_launch_new_window` instead) If it is 0, then we use the previous instance of sioyek when launching a new file.
|
||||
# otherwise a new instance is launched every time we open a new file.
|
||||
should_launch_new_instance 0
|
||||
|
||||
# If set, we open a new sioyek window when a new file is opened, otherwise we open the file in the previous window
|
||||
should_launch_new_window 0
|
||||
|
||||
# The command to use when trying to do inverse search into a LaTeX document. Uncomment and provide your own command.
|
||||
# %1 expands to the name of the file and %2 expans to the line number.
|
||||
#inverse_search_command "C:\path\to\vscode\Code.exe" -r -g %1:%2
|
||||
|
||||
# you can specify the exact highlight color for each of 26 different highlight types
|
||||
|
||||
# When moving to the next line using visual marker, this setting specifies the distance of the market to the top of the screen in fractions of screen size (center of the screen is zero, top of the screen is one)
|
||||
visual_mark_next_page_fraction 0.75
|
||||
|
||||
# When moving to the next line using visual marker, this setting determines at which point we move the screen (center of the screen is one, bottom of the screen is zero)
|
||||
visual_mark_next_page_threshold 0.25
|
||||
|
||||
# If set, we display a checkerboard pattern for unrendered pages (by default we display nothing)
|
||||
should_draw_unrendered_pages 0
|
||||
|
||||
# If 0, we use the previous renders for overview window which may cause it to be blurry
|
||||
# if it is 1, we rerender with the proper resolution for overview window which looks better
|
||||
# but may increase power consumption
|
||||
rerender_overview 1
|
||||
|
||||
## Size of the overview window (1 being as large as the window, valid range is [0, 1])
|
||||
# overview_size 0.5 0.5
|
||||
|
||||
## Offset of the center of the overview window ((0,0) being the center of the screen and valid raneg is [-1, 1])
|
||||
# overview_offset 0.5 0.5
|
||||
|
||||
# Use linear texture filtering instead of nearest-neighbor
|
||||
# Can improve appearance in very high-resolution screens
|
||||
# linear_filter 0
|
||||
|
||||
# Use dark mode by default (deprecated, better add `toggle_dark_mode` to `startup_commands` )
|
||||
default_dark_mode 0
|
||||
|
||||
# If set, we sort the bookmarks by their location instead of their creation time
|
||||
sort_bookmarks_by_location 1
|
||||
|
||||
## Path to shared.db database file. If not set, we use the default path.
|
||||
## you can set this to be a file in a synced folder (e.g. dropbox folder) to automatically sync
|
||||
## sioyek across multiple computers
|
||||
#shared_database_path /some/path/shared.db
|
||||
|
||||
## Name of the font to use for UI text
|
||||
#ui_font Some Font Name
|
||||
## Size of the UI font
|
||||
#font_size 20
|
||||
|
||||
## Semicolon-separated list of command to execute upon sioyek startup
|
||||
#startup_commands toggle_visual_scroll;toggle_dark_mode
|
||||
|
||||
## Background color to use when executing `toggle_custom_color`
|
||||
custom_background_color 0.180 0.204 0.251
|
||||
## Text color to use when executing `toggle_custom_color`
|
||||
custom_text_color 0.847 0.871 0.914
|
||||
|
||||
# Normally mouse wheel zooms in on the middle of the screen, but if this is set to 1, we zoom in on the cursor
|
||||
wheel_zoom_on_cursor 0
|
||||
|
||||
## Color of status bar background
|
||||
#status_bar_color 0 0 0
|
||||
## Color of status bar text
|
||||
#status_bar_text_color 1 1 1
|
||||
## Font size of the status bar text
|
||||
#status_bar_font_size 20
|
||||
|
||||
## The default size of main window when helper window is closed
|
||||
#single_main_window_size 800 600
|
||||
#single_main_window_move 100 100
|
||||
|
||||
## The default size/offset of main/helper window when helper window is opened. You can copy the value of this config using `copy_window_size_config` command
|
||||
#main_window_size 800 600
|
||||
#main_window_move 100 100
|
||||
#helper_window_size 800 600
|
||||
#helper_window_move 100 100
|
||||
|
||||
## Touchpad/scrollwhell sensitivity
|
||||
#touchpad_sensitivity 1.0
|
||||
|
||||
## Configure the appearance of page separator
|
||||
#page_separator_width 2
|
||||
#page_separator_color 0.9 0.9 0.9
|
||||
|
||||
# Ratio of page width to use for `fit_to_page_width_ratio` command
|
||||
fit_to_page_width_ratio 0.75
|
||||
|
||||
# If set, we initially collapse table of content entries
|
||||
collapsed_toc 0
|
||||
|
||||
# If set, we highlight the current line in visual_scroll_mode by masking above and below the current line
|
||||
# if not set, we only mask below the line
|
||||
ruler_mode 1
|
||||
|
||||
# Additional ruler padding
|
||||
ruler_padding 1.0
|
||||
ruler_x_padding 5.0
|
||||
|
||||
## We use mupdf to determine lines for visual mark. However, we do have a custom algorithm for image documents
|
||||
## if `force_custom_line_algorithm` is 1, then we use our custom algorithm instead of mupdf even for documents
|
||||
## that have lines.
|
||||
#force_custom_line_algorithm 0
|
||||
|
||||
# A directory which sioyek watches for new papers. If a new paper added to this directory
|
||||
# while we are creating a portal from another document, this new document will automatically
|
||||
# be used as the destination of the portal.
|
||||
#paper_folder_path /some/path
|
||||
|
||||
# Enable some experimental features, might not be stable
|
||||
#enable_experimental_features 0
|
||||
|
||||
# Automatically create a table of contents for the document if it doesn't already have one
|
||||
create_table_of_contents_if_not_exists 1
|
||||
|
||||
# Limits the maximum size of created table of contents
|
||||
max_created_toc_size 5000
|
||||
|
||||
# Warn the user on the command line only when redefining keys inside
|
||||
# the same file. When set to 1, sioyek will warn when redefining keys
|
||||
# from other files also
|
||||
should_warn_about_user_key_override 1
|
||||
|
||||
# Use double clicks to select entire words and single clicks for character-based selection
|
||||
single_click_selects_words 0
|
||||
|
||||
# A prefix to prepend to items in lists (e.g. bookmark lists)
|
||||
#item_list_prefix >
|
||||
|
||||
## In presentation mode, ignore whitespace when trying to determine the size of a page
|
||||
#ignore_whitespace_in_presentation_mode 0
|
||||
|
||||
## In list of recent documents, show the entire document path rather than just the name
|
||||
#show_doc_path 0
|
||||
|
||||
# Show long menu items in multiple lines instead of truncating the string, can reduce performance for
|
||||
#very large lists
|
||||
multiline_menus 1
|
||||
|
||||
# While in present mode, prerender the next page to avoid flickering
|
||||
prerender_next_page_presentation 1
|
||||
|
||||
## Custom commands to run when clicking or right clicking when modifier keys are pressed
|
||||
## the command can be any built-in sioyek command (e.g. overview_under_cursor) or user-defined
|
||||
## commands defined using `new_command`
|
||||
# shift_click_command some_command
|
||||
# control_click_command some_command
|
||||
# alt_click_command some_command
|
||||
# shift_right_click_command some_command
|
||||
# control_right_click_command some_command
|
||||
# alt_right_click_command some_command
|
||||
|
||||
# Highlight on middle clicks when text is selected and no preview is open
|
||||
#highlight_middle_click 1
|
||||
|
||||
# Use a super fast index for search instead of the mupdf's implementation
|
||||
#super_fast_search 1
|
||||
|
||||
# Use case-insensitive search
|
||||
#case_sensitive_search 0
|
||||
|
||||
#Amethyst
|
||||
highlight_color_a 0.94 0.64 1.00
|
||||
#Blue
|
||||
highlight_color_b 0.00 0.46 0.86
|
||||
#Caramel
|
||||
highlight_color_c 0.60 0.25 0.00
|
||||
#Damson
|
||||
highlight_color_d 0.30 0.00 0.36
|
||||
#Ebony
|
||||
highlight_color_e 0.10 0.10 0.10
|
||||
#Forest
|
||||
highlight_color_f 0.00 0.36 0.19
|
||||
#Green
|
||||
highlight_color_g 0.17 0.81 0.28
|
||||
#Honeydew
|
||||
highlight_color_h 1.00 0.80 0.60
|
||||
#Iron
|
||||
highlight_color_i 0.50 0.50 0.50
|
||||
#Jade
|
||||
highlight_color_j 0.58 1.00 0.71
|
||||
#Khaki
|
||||
highlight_color_k 0.56 0.49 0.00
|
||||
#Lime
|
||||
highlight_color_l 0.62 0.80 0.00
|
||||
#Mallow
|
||||
highlight_color_m 0.76 0.00 0.53
|
||||
#Navy
|
||||
highlight_color_n 0.00 0.20 0.50
|
||||
#Orpiment
|
||||
highlight_color_o 1.00 0.64 0.02
|
||||
#Pink
|
||||
highlight_color_p 1.00 0.66 0.73
|
||||
#Quagmire
|
||||
highlight_color_q 0.26 0.40 0.00
|
||||
#Red
|
||||
highlight_color_r 1.00 0.00 0.06
|
||||
#Sky
|
||||
highlight_color_s 0.37 0.95 0.95
|
||||
#Turquoise
|
||||
highlight_color_t 0.00 0.60 0.56
|
||||
#Uranium
|
||||
highlight_color_u 0.88 1.00 0.40
|
||||
#Violet
|
||||
highlight_color_v 0.45 0.04 1.00
|
||||
#Wine
|
||||
highlight_color_w 0.60 0.00 0.00
|
||||
#Xanthin
|
||||
highlight_color_x 1.00 1.00 0.50
|
||||
#Yellow
|
||||
highlight_color_y 1.00 1.00 0.00
|
||||
#Zinnia
|
||||
highlight_color_z 1.00 0.31 0.02
|
||||
|
||||
16
.local/sioyek/shaders/compiled_drawing.vertex
Normal file
16
.local/sioyek/shaders/compiled_drawing.vertex
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
layout (location=0) in vec2 vertex_pos;
|
||||
layout (location=1) in int type_index;
|
||||
|
||||
uniform vec2 offset;
|
||||
uniform vec2 scale;
|
||||
uniform vec3 type_colors[26];
|
||||
|
||||
out vec3 type_color;
|
||||
|
||||
void main(){
|
||||
vec2 pos = vertex_pos * scale;
|
||||
pos.y = -pos.y;
|
||||
pos = pos + offset;
|
||||
type_color = type_colors[type_index];
|
||||
gl_Position = vec4(pos, 0.0, 1.0);
|
||||
}
|
||||
8
.local/sioyek/shaders/compiled_line.fragment
Normal file
8
.local/sioyek/shaders/compiled_line.fragment
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec3 type_color;
|
||||
|
||||
void main(){
|
||||
color = vec4(type_color, 1);
|
||||
}
|
||||
16
.local/sioyek/shaders/custom_colors.fragment
Normal file
16
.local/sioyek/shaders/custom_colors.fragment
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
|
||||
uniform mat4 transform_matrix;
|
||||
|
||||
uniform sampler2D pdf_texture;
|
||||
|
||||
|
||||
void main(){
|
||||
vec4 pdf_color = vec4(texture(pdf_texture, uvs).rgb, 1);
|
||||
vec3 resulting_unclamped_color = (transform_matrix * pdf_color).rgb;
|
||||
color = vec4(clamp(resulting_unclamped_color, vec3(0.0, 0.0, 0.0), vec3(1.0, 1.0, 1.0)), 1.0);
|
||||
}
|
||||
37
.local/sioyek/shaders/dark_mode.fragment
Normal file
37
.local/sioyek/shaders/dark_mode.fragment
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
uniform sampler2D pdf_texture;
|
||||
|
||||
uniform float contrast;
|
||||
|
||||
//http://gamedev.stackexchange.com/questions/59797/glsl-shader-change-hue-saturation-brightness
|
||||
vec3 rgb2hsv(vec3 c)
|
||||
{
|
||||
vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
|
||||
vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g));
|
||||
vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r));
|
||||
|
||||
float d = q.x - min(q.w, q.y);
|
||||
float e = 1.0e-10;
|
||||
return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);
|
||||
}
|
||||
|
||||
vec3 hsv2rgb(vec3 c)
|
||||
{
|
||||
vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
|
||||
vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
|
||||
return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
|
||||
}
|
||||
|
||||
|
||||
void main(){
|
||||
vec3 tempcolor = texture(pdf_texture, uvs).rgb;
|
||||
vec3 inv = (0.5-tempcolor)*contrast+0.5; //Invert colors and shift colors from range 0.0 - 1.0 to -0.5 - 0.5, apply contrast and shift back to 0.0 - 1.0. This way contrast applies on both whites and blacks
|
||||
vec3 hsvcolor = rgb2hsv(inv); //transform to hsv
|
||||
float new_hue = mod(hsvcolor.r + 0.5, 1.0); // shift hue 180 degrees to compensate hue shift from inverting colors
|
||||
vec3 newcolor = hsv2rgb(vec3(new_hue,hsvcolor.gb));
|
||||
color = vec4(newcolor, 1.0);
|
||||
}
|
||||
9
.local/sioyek/shaders/debug.fragment
Normal file
9
.local/sioyek/shaders/debug.fragment
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
|
||||
void main(){
|
||||
color = vec4(1.0, 1.0, 0.0, 0.3);
|
||||
}
|
||||
27
.local/sioyek/shaders/dot.fragment
Normal file
27
.local/sioyek/shaders/dot.fragment
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#extension GL_OES_standard_derivatives : enable
|
||||
|
||||
precision mediump float;
|
||||
|
||||
in vec2 uv;
|
||||
in vec4 type_color;
|
||||
out vec4 color;
|
||||
|
||||
void main(){
|
||||
float x = (uv.x - 0.5) * 2.0;
|
||||
float y = (uv.y - 0.5) * 2.0;
|
||||
float r_squared = x * x + y * y;
|
||||
float alpha = 1.0;
|
||||
|
||||
#ifdef GL_OES_standard_derivatives
|
||||
float delta = fwidth(r_squared);
|
||||
alpha = 1.0 - smoothstep(1.0 - delta, 1.0 + delta, r_squared);
|
||||
color = vec4(type_color.rgb, alpha);
|
||||
#else
|
||||
if (r_squared <= 1.0){
|
||||
color = type_color;
|
||||
}
|
||||
else{
|
||||
color = vec4(0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
20
.local/sioyek/shaders/dot.vertex
Normal file
20
.local/sioyek/shaders/dot.vertex
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
layout (location=0) in vec2 vertex_pos;
|
||||
layout (location=1) in vec2 vertex_uv;
|
||||
layout (location=2) in int type_index;
|
||||
|
||||
uniform vec2 offset;
|
||||
uniform vec2 scale;
|
||||
uniform vec3 type_colors[26];
|
||||
|
||||
out vec2 uv;
|
||||
out vec4 type_color;
|
||||
|
||||
void main(){
|
||||
uv = vertex_uv;
|
||||
|
||||
type_color = vec4(type_colors[type_index], 1.0);
|
||||
vec2 pos = vertex_pos * scale;
|
||||
pos.y = -pos.y;
|
||||
pos = pos + offset;
|
||||
gl_Position = vec4(pos, 0.0, 1.0);
|
||||
}
|
||||
12
.local/sioyek/shaders/highlight.fragment
Normal file
12
.local/sioyek/shaders/highlight.fragment
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
|
||||
uniform vec3 highlight_color;
|
||||
uniform float opacity;
|
||||
|
||||
void main(){
|
||||
color = vec4(highlight_color, opacity);
|
||||
}
|
||||
8
.local/sioyek/shaders/line.fragment
Normal file
8
.local/sioyek/shaders/line.fragment
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
uniform vec4 line_color;
|
||||
|
||||
void main(){
|
||||
color = line_color;
|
||||
}
|
||||
5
.local/sioyek/shaders/line.vertex
Normal file
5
.local/sioyek/shaders/line.vertex
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
layout (location=0) in vec2 vertex_pos;
|
||||
|
||||
void main(){
|
||||
gl_Position = vec4(vertex_pos, 0.0, 1.0);
|
||||
}
|
||||
11
.local/sioyek/shaders/separator.fragment
Normal file
11
.local/sioyek/shaders/separator.fragment
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
|
||||
uniform vec3 background_color;
|
||||
|
||||
void main(){
|
||||
color = vec4(background_color, 1.0);
|
||||
}
|
||||
10
.local/sioyek/shaders/simple.fragment
Normal file
10
.local/sioyek/shaders/simple.fragment
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
uniform sampler2D pdf_texture;
|
||||
|
||||
void main(){
|
||||
color = vec4(texture(pdf_texture, uvs).rgb, 1.0);
|
||||
}
|
||||
10
.local/sioyek/shaders/simple.vertex
Normal file
10
.local/sioyek/shaders/simple.vertex
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
out vec2 screen_pos;
|
||||
out vec2 uvs;
|
||||
layout (location=0) in vec2 vertex_pos;
|
||||
layout (location=1) in vec2 vertex_uvs;
|
||||
|
||||
void main(){
|
||||
screen_pos = vertex_pos;
|
||||
uvs = vertex_uvs;
|
||||
gl_Position = vec4(vertex_pos, 0.0, 1.0);
|
||||
}
|
||||
10
.local/sioyek/shaders/simple_transparent.fragment
Normal file
10
.local/sioyek/shaders/simple_transparent.fragment
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
uniform sampler2D pdf_texture;
|
||||
|
||||
void main(){
|
||||
color = texture(pdf_texture, uvs);
|
||||
}
|
||||
8
.local/sioyek/shaders/stencil.fragment
Normal file
8
.local/sioyek/shaders/stencil.fragment
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
|
||||
void main(){
|
||||
color = vec4(0, 0, 0, 0);
|
||||
}
|
||||
7
.local/sioyek/shaders/stencil.vertex
Normal file
7
.local/sioyek/shaders/stencil.vertex
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
out vec2 screen_pos;
|
||||
layout (location=0) in vec2 vertex_pos;
|
||||
|
||||
void main(){
|
||||
screen_pos = vertex_pos;
|
||||
gl_Position = vec4(vertex_pos, 0.0, 1.0);
|
||||
}
|
||||
16
.local/sioyek/shaders/undendered_page.fragment
Normal file
16
.local/sioyek/shaders/undendered_page.fragment
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
|
||||
void main(){
|
||||
int x = (int)(uvs.x / 0.1);
|
||||
int y = (int)(uvs.y / 0.1);
|
||||
if ((x+y)% 2 == 0){
|
||||
color = vec4(1.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
else{
|
||||
color = vec4(0.0, 0.0, 1.0, 1.0);
|
||||
}
|
||||
}
|
||||
16
.local/sioyek/shaders/unrendered_page.fragment
Normal file
16
.local/sioyek/shaders/unrendered_page.fragment
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
|
||||
void main(){
|
||||
int x = int(uvs.x / 0.1);
|
||||
int y = int(uvs.y / 0.1);
|
||||
if ((x+y)% 2 == 0){
|
||||
color = vec4(1.0, 1.0, 1.0, 1.0);
|
||||
}
|
||||
else{
|
||||
color = vec4(0.1, 0.1, 0.1, 1.0);
|
||||
}
|
||||
}
|
||||
31
.local/sioyek/shaders/vertical_bar.fragment
Normal file
31
.local/sioyek/shaders/vertical_bar.fragment
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
|
||||
uniform vec4 line_color;
|
||||
uniform float time;
|
||||
|
||||
void main(){
|
||||
color = line_color;
|
||||
//color = vec4(0, 0, 0, 0.1);
|
||||
//int x = int(gl_FragCoord.y / 1);
|
||||
//int y = int(gl_FragCoord.x / 1);
|
||||
//if ((x+y) % 2 == 0){
|
||||
// color = vec4(0, 0, 0, 0.2);
|
||||
//}
|
||||
//else{
|
||||
// color = vec4(0, 0, 0, 0.1);
|
||||
//}
|
||||
//color = vec4(0, 0, 0, abs(sin(gl_FragCoord.y / 10 + gl_FragCoord.x / 10)));
|
||||
//if (abs(uvs.x - fract(time * freq)) < 0.05){
|
||||
//color = vec4(line_color, 0.1);
|
||||
//}
|
||||
//else{
|
||||
//color = vec4(0, 0, 0, 0.1);
|
||||
//}
|
||||
//color = vec4(line_color * pow(abs(sin(uvs.x - time * freq)), 128), 0.3);
|
||||
//color = vec4(line_color * abs(sin(time)), 0.3);
|
||||
//color = vec4(line_color, 0.3);
|
||||
}
|
||||
12
.local/sioyek/shaders/vertical_bar_dark.fragment
Normal file
12
.local/sioyek/shaders/vertical_bar_dark.fragment
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
precision mediump float;
|
||||
|
||||
out vec4 color;
|
||||
in vec2 screen_pos;
|
||||
in vec2 uvs;
|
||||
|
||||
uniform vec4 line_color;
|
||||
uniform float time;
|
||||
|
||||
void main(){
|
||||
color = vec4((1-line_color.rgb), line_color.a);
|
||||
}
|
||||
BIN
.local/sioyek/sioyek
Executable file
BIN
.local/sioyek/sioyek
Executable file
Binary file not shown.
BIN
.local/sioyek/tutorial.pdf
Normal file
BIN
.local/sioyek/tutorial.pdf
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue