Compare commits

...

3 commits

67 changed files with 69 additions and 40 deletions

View file

@ -14,7 +14,7 @@
# {% if device.laptop %} # {% if device.laptop %}
#<yolk> font=Terminus:size=12 #<yolk> font=Terminus:size=12
# {% else %} # {% else %}
#font=Fira Code Nerd Font:size=12 font=Fira Code Nerd Font:size=12
# {% end %} # {% end %}
# font-bold=<bold variant of regular font> # font-bold=<bold variant of regular font>

View file

@ -331,36 +331,36 @@ binds {
Mod+R { switch-preset-column-width; } Mod+R { switch-preset-column-width; }
Mod+Ctrl+R { spawn "sh" "-c" r#" Mod+Ctrl+R { spawn "sh" "-c" r#"
niri msg action focus-column-right \ niri msg action focus-column-right
&& niri msg action set-column-width 33% \ niri msg action set-column-width 33%
&& niri msg action focus-column-left \ niri msg action focus-column-left
&& niri msg action set-column-width 67% niri msg action set-column-width 67%
"#; "#;
} }
Mod+Ctrl+Shift+R { spawn "sh" "-c" r#" Mod+Ctrl+Shift+R { spawn "sh" "-c" r#"
niri msg action set-column-width 33% \ niri msg action set-column-width 33%
&& niri msg action focus-column-right \ niri msg action focus-column-right
&& niri msg action set-column-width 67% \ niri msg action set-column-width 67%
&& niri msg action focus-column-left niri msg action focus-column-left
"#; "#;
} }
Mod+Ctrl+T { spawn "sh" "-c" r#" Mod+Ctrl+T { spawn "sh" "-c" r#"
niri msg action set-column-width 50% \ niri msg action set-column-width 50%
&& niri msg action focus-column-right \ niri msg action focus-column-right
&& niri msg action set-column-width 50% \ niri msg action set-column-width 50%
&& niri msg action focus-column-left \ niri msg action focus-column-left
&& niri msg action focus-column-right \ niri msg action focus-column-right
&& niri msg action focus-column-left niri msg action focus-column-left
"#; "#;
} }
Mod+Ctrl+Shift+T { spawn "sh" "-c" r#" Mod+Ctrl+Shift+T { spawn "sh" "-c" r#"
niri msg action set-column-width 34% \ niri msg action set-column-width 34%
&& niri msg action focus-column-right \ niri msg action focus-column-right
&& niri msg action set-column-width 33% \ niri msg action set-column-width 33%
&& niri msg action focus-column-right \ niri msg action focus-column-right
&& niri msg action set-column-width 33% \ niri msg action set-column-width 33%
&& niri msg action focus-column-left \ niri msg action focus-column-left
&& niri msg action focus-column-left niri msg action focus-column-left
"#; "#;
} }
Mod+Shift+R { reset-window-height; } Mod+Shift+R { reset-window-height; }

View file

@ -1,5 +1,6 @@
{ {
"auto_signature_help": false, "auto_signature_help": false,
"unnecessary_code_fade": 0.5,
// "use_autoclose": true, // "use_autoclose": true,
// "always_treat_brackets_as_autoclosed": false, // "always_treat_brackets_as_autoclosed": false,
// "unstable.ui_density": "compact", // "unstable.ui_density": "compact",
@ -30,8 +31,26 @@
"line_numbers": false, "line_numbers": false,
"folds": false "folds": false
}, },
"toolbar": {
"quick_actions": false
// "selections_menu": false
},
"vertical_scroll_margin": 5, "vertical_scroll_margin": 5,
"tabs": { "git_status": true }, "tabs": {
"git_status": true,
"file_icons": true,
"show_diagnostics": "errors"
},
"use_smartcase_search": true,
"preview_tabs": {
"enabled": true,
"enable_preview_from_file_finder": true,
"enable_preview_from_code_navigation": true
},
"message_editor": {
"auto_replace_emoji_shortcode": true
},
"terminal": { "terminal": {
"font_family": "JetBrainsMono Nerd Font", "font_family": "JetBrainsMono Nerd Font",
@ -48,17 +67,6 @@
} }
}, },
"lsp": { "lsp": {
"luau-lsp": {
"sourcemap": {
"enabled": false
},
"initializationOptions": {
"definitions": "/home/elk/.config/yolk/globalTypes.d.luau"
},
"types": {
"definitionFiles": ["/home/elk/.config/yolk/globalTypes.d.luau"]
}
},
"rust-analyzer": { "rust-analyzer": {
"initialization_options": { "initialization_options": {
"typing": { "typing": {
@ -67,5 +75,19 @@
} }
} }
} }
},
"drop_target_size": 0.3,
"indent_guides": {
"coloring": "fixed"
},
"experimental.theme_overrides": {
"editor.indent_guide": "#ffffff08",
"panel.indent_guide": "#ffffff08",
"panel.indent_guide_active": "#ffffff11",
"panel.indent_guide_hover": "#ffffff13",
"panel.background": "#282828",
"tab_bar.background": "#282828",
"border": "#3c3836"
} }
} }

3
foo.rhai Normal file
View file

@ -0,0 +1,3 @@
fn stuff() {
// re "hi"
}

View file

@ -1,7 +1,10 @@
import "foo" as stuff;
// stuff::stuff();
export const device = #{ export const device = #{
thinkix: SYSTEM.hostname == "thinkix", thinkix: SYSTEM.hostname == "thinkix",
desktop: SYSTEM.hostname == "fedora.fritz.box", desktop: SYSTEM.hostname == "fedora.fritz.box" ||SYSTEM.hostname == "fedora",
laptop: SYSTEM.hostname == "thinkix" || SYSTEM.hostname == "frissnix", laptop: SYSTEM.hostname == "thinkix" || SYSTEM.hostname == "frissnix",
macbook: false, macbook: false,
}; };
@ -15,14 +18,15 @@ export let eggs = #{
"alacritty": #{ targets: "~/.config/alacritty" }, "alacritty": #{ targets: "~/.config/alacritty" },
"eww": merge_into_home(device.desktop, []), "eww": merge_into_home(device.desktop, []),
"eww-bar": merge_into_home(device.desktop, []), "eww-bar": merge_into_home(device.desktop, []),
"foot": #{ strategy: "merge", targets: "~", templates: [".config/foot/foot.ini"] }, "foot": #{ targets: "~/.config/foot", templates: ["foot.ini"] },
"git": merge_into_home(true, [".gitconfig"]), "git": merge_into_home(true, [".gitconfig"]),
"niri": #{ targets: "~/.config/niri", templates: ["**/*.kdl"] }, "niri": #{ targets: "~/.config/niri", templates: ["**/*.kdl"] },
"nvim": #{ strategy: "merge", targets: "~", main_file: ".config/nvim/fnl/main.fnl" }, "nvim": #{ strategy: "put", targets: "~/.config/nvim", main_file: "fnl/main.fnl" },
"profile": merge_into_home(true, []), "profile": #{ strategy: "merge", targets: "~" },
"starship": merge_into_home(true, []), "starship": merge_into_home(true, []),
"sway": merge_into_home(device.desktop, []), "sway": merge_into_home(device.desktop, []),
"zed": merge_into_home(true, []), "zed": #{ strategy: "put", targets: "~/.config/zed" },
"zsh": merge_into_home(true, []), "zsh": merge_into_home(true, []),
"rofi": merge_into_home(true, []), "rofi": merge_into_home(true, []),
"gtk": merge_into_home(true, []), "gtk": merge_into_home(true, []),