Update to latest yolk

This commit is contained in:
elkowar 2024-12-15 23:05:35 +01:00
parent 3a8558479b
commit 62600f1851
Signed by: ElKowar
GPG key ID: 862BA3D7D7760F13
6 changed files with 86 additions and 27 deletions

1
eggs.rhai Normal file
View file

@ -0,0 +1 @@

View file

@ -8,7 +8,7 @@
[core]
autocrlf = input
; {# if command_available("delta") #}
; {# if io::command_available("delta") #}
;<yolk> pager = delta
[pull]

View file

@ -31,7 +31,7 @@ input {
}
cursor {
xcursor-size 32 // {< rnum(if device.laptop() then 12 else 32) >}
xcursor-size 32 // {< rnum(if device.laptop { 12 } else { 32 }) >}
xcursor-theme "phinger-cursors-light"
hide-when-typing
}
@ -41,14 +41,24 @@ environment {
// GDK_BACKEND "x11"
}
// {% if device.thinkix() %}
//<yolk> output "Philips Consumer Electronics Company PHL 345B1C 0x00008E7C" {
//<yolk> mode "3440x1440@60"
output "Philips Consumer Electronics Company PHL 345B1C 0x00008E7C" {
mode "3440x1440@60"
scale 1
transform "normal"
// {% if device.desktop %}
//<yolk> position x=2560 y=0
// {% else %}
position x=0 y=0
// {% end %}
}
// {% if device.desktop %}
//<yolk> output "HDMI-A-1" {
//<yolk> mode "2560x1440"
//<yolk> scale 1
//<yolk> transform "normal"
//<yolk> position x=0 y=0
//<yolk> }
// {% elif device.thinkix %}
//<yolk> output "HDMI-A-1" {
//<yolk> mode "1920x1080"
//<yolk> scale 1
@ -62,25 +72,11 @@ environment {
//<yolk> transform "normal"
//<yolk> position x=0 y=1440
//<yolk> }
// {% elif device.desktop() %}
//<yolk> output "Philips Consumer Electronics Company PHL 345B1C 0x00008E7C" {
//<yolk> mode "3440x1440@99.982"
//<yolk> scale 1
//<yolk> transform "normal"
//<yolk> variable-refresh-rate on-demand=true
//<yolk> position x=2560 y=0
//<yolk> }
//<yolk> output "HDMI-A-1" {
//<yolk> mode "2560x1440"
//<yolk> scale 1
//<yolk> position x=0 y=0
//<yolk> }
// {% end %}
layout {
gaps 16
// center-focused-column "always" // - "never", "always" "on-overflow"
@ -94,7 +90,7 @@ layout {
default-column-width { proportion 0.33333; }
focus-ring {
width 2 // {< rnum(if device.laptop() then 1 else 2)>}
width 2 // {< rnum(if device.laptop {1} else {2})>}
active-color "#8ec07c"
inactive-color "#1d2021"
}
@ -102,7 +98,7 @@ layout {
}
// {% if device.laptop() %}
// {% if device.laptop %}
//<yolk> spawn-at-startup "bash" "-c" "swayidle -w timeout 601 'niri msg action power-off-monitors' timeout 600 'hyprlock' before-sleep 'hyprlock' timeout 3600 'systemctl suspend' timeout 60000 'systemctl hibernate'"
//<yolk> spawn-at-startup "waybar"
// {% end %}

View file

@ -46,5 +46,26 @@
"JSON": {
"format_on_save": "off"
}
},
"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": {
"initialization_options": {
"typing": {
// Temporary workaround around round rust-analzyer wrongly inserting `|` twice
"excludeChars": "|<"
}
}
}
}
}

View file

@ -1,6 +1,3 @@
data = {
}
device = {
thinkix = function()
return SYSTEM.hostname == "thinkix"

44
yolk.rhai Normal file
View file

@ -0,0 +1,44 @@
const themes = #{
gruv: "a",
nord: "b",
};
export const device = #{
thinkix: SYSTEM.hostname == "thinkix",
desktop: SYSTEM.hostname == "fedora.fritz.box",
laptop: SYSTEM.hostname == "thinkix" || SYSTEM.hostname == "frissnix",
gruv: if LOCAL { themes.gruv } else { themes.nord }
};
export let eggs = #{};
eggs["alacritty"] = #{ enabled: true, targets: "~" };
eggs["eww"] = #{ enabled: true, targets: "~" };
eggs["eww-bar"] = #{ enabled: true, targets: "~" };
eggs["foot"] = #{ enabled: true, targets: "~", templates: [".config/foot/foot.ini"] };
eggs["git"] = #{ enabled: true, targets: "~", templates: [".gitconfig"] };
eggs["niri"] = #{ enabled: true, targets: "~", templates: [".config/niri/*"] };
eggs["nvim"] = #{ enabled: true, targets: "~" };
eggs["other-dotfiles-stuff"] = #{ enabled: true, targets: "~" };
eggs["profile"] = #{ enabled: true, targets: "~" };
eggs["starship"] = #{ enabled: true, targets: "~" };
eggs["sway"] = #{ enabled: true, targets: "~" };
eggs["tmux"] = #{ enabled: true, targets: "~" };
eggs["zed"] = #{ enabled: true, targets: "~" };
eggs["zsh"] = #{ enabled: true, targets: "~" };
eggs["rofi"] = #{ enabled: true, targets: "~" };
eggs["gtk"] = #{ enabled: true, targets: "~" };
eggs["powershell"] = #{ enabled: false, targets: "~" };
eggs["scripts"] = #{ enabled: true, targets: "~" };
eggs["sioyek"] = #{ enabled: false, targets: "~" };
eggs["waybar"] = #{ enabled: false, targets: "~" };
eggs["zathura"] = #{ enabled: false, targets: "~" };
eggs["eww-laptop"] = #{ enabled: false, targets: "~" };
eggs["hyprland"] = #{ enabled: false, targets: "~" };
eggs["hyprlock"] = #{ enabled: false, targets: "~" };
eggs["kakoune"] = #{ enabled: false, targets: "~" };
eggs["kanata"] = #{ enabled: false, targets: "~" };
eggs["karabiner"] = #{ enabled: false, targets: "~" };