sioyek: nixify and use qwerty

This commit is contained in:
js0ny 2025-12-05 08:10:58 +00:00
parent 00c2b721dd
commit 44faec0e2a
8 changed files with 93 additions and 19 deletions

View file

@ -78,6 +78,7 @@ vim:ft=gotmpl
.config/dunst
.config/kitty
.config/hypr
.config/sioyek
.local/share/kio/**
.local/share/fonts/**
{{ end }}

View file

@ -1,26 +1,23 @@
#vim:ft=conf
### Movement
# move_left h
move_down n
move_up e
# move_right i
move_visual_mark_up e
move_visual_mark_down n
screen_down J
screen_up K
screen_down N
screen_up E
move_up_smooth k
move_down_smooth j
move_left_smooth h
move_right_smooth l
## Zoom
zoom_in =
### Search
next_item k
previous_item K
zoom_in =
## Highlight
add_highlight H
### Toggles
toggle_dark_mode i
toggle_fullscreen ,f
toggle_custom_color ,d
# toggle_dark_mode D
@ -38,3 +35,12 @@ quit Q
copy y
goto_toc <tab>
## Smart Jump, Portals
overview_link <C-p>
## Muscle Memory Bindings
command <A-x>
search <C-f>

View file

@ -1,10 +1,11 @@
#vim:ft=conf
default_dark_mode 1
font_size 14
ui_font "PingFang SC"
case_sensitive_search 0
super_fast_search 1
### Colorscheme: CATPPUCCIN MOCHA
### Colorscheme: CATPPUCCIN MOCHA
### Trigger with D
background_color #1e1e2e
@ -30,5 +31,8 @@ custom_text_color #cdd6f4
ui_text_color #cdd6f4
ui_background_color #313244
ui_selected_text_color #cdd6f4
ui_selected_text_color #181825
ui_selected_background_color #f5c2e7
# Searches
search_url_d https://duckduckgo.com/?q=

View file

@ -26,7 +26,7 @@
# desktop environment and display manager
../../modules/nixos/desktop/dm/sddm.nix
../../modules/nixos/desktop/de/niri.nix
../../modules/nixos/desktop/de/kde.nix
../../modules/nixos/desktop/de/gnome.nix
# desktop programs
../../modules/nixos/programs/zsh.nix

View file

@ -84,6 +84,7 @@ in {
{
# Patch for Hyprland (scale XWayland by hand)
"flatpak/exports/bin/com.qq.QQ" = {
force = true;
text = ''
#!/bin/sh

View file

@ -22,6 +22,7 @@ in {
zed.enable = false;
zsh-syntax-highlighting.enable = false;
nvim.enable = false; # Defined in lua config
sioyek.enable = true; # Stylix does not support sioyek yet, use ctpn as fallback
};
stylix = {
enable = true;

View file

@ -0,0 +1,56 @@
{...}: {
programs.sioyek = {
enable = true;
# prefs_user.config
config = {
default_dark_mode = "1";
font_size = "14";
case_sensitive_search = "0";
super_fast_search = "1";
search_url_d = "https://duckduckgo.com/?q=";
};
bindings = {
## Movement
"screen_down" = "J";
"screen_up" = "K";
"move_up_smooth" = "k";
"move_down_smooth" = "j";
"move_left_smooth" = "h";
"move_right_smooth" = "l";
## Zoom
"zoom_in" = "=";
## Highlight
"add_highlight" = "H";
### Toggles
"toggle_dark_mode" = ["i" ",D"];
"toggle_fullscreen" = ",f";
"toggle_custom_color" = ",d";
# toggle_dark_mode D
## SyncTeX for LaTeX
"toggle_synctex" = ",s";
# Mark
"goto_mark" = "'";
### Misc
"quit" = "Q";
"copy" = "y";
"goto_toc" = "<tab>";
## Smart Jump, Portals
"overview_link" = "<C-p>";
## Muscle Memory Bindings
"command" = "<A-x>";
"search" = "<C-f>";
};
};
}

View file

@ -66,9 +66,10 @@
./programs/block-desktop-entries.nix
./programs/pwa.nix
./programs/walker.nix
./programs/sioyek.nix
# Desktop Linux
./programs/desktop/plasma
./programs/desktop/gnome
./programs/desktop/wayland-wm/niri
../../modules/home/do-not-track.nix
@ -112,7 +113,11 @@
};
};
home.sessionVariables.TERMINAL = config.my.desktop.preferredApps.terminal.package;
home.sessionVariables = {
TERMINAL = config.my.desktop.preferredApps.terminal.package;
EDITOR = "nvim";
VISUAL = "nvim";
};
home.stateVersion = "25.05";
}