mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2025-10-27 15:55:15 +01:00
streaming hell
This commit is contained in:
parent
2ff7374798
commit
c3e08a9df4
4 changed files with 55 additions and 6 deletions
|
|
@ -9,9 +9,10 @@ def "main find" [
|
|||
| lines
|
||||
| enumerate
|
||||
| update item {|it| $it.item | parse '{current}# :{name}:-{template}-:#' }
|
||||
| filter {|it| $it.item | is-not-empty}
|
||||
| where {|it| $it.item | is-not-empty }
|
||||
| flatten -a
|
||||
| rename -c { index: line }
|
||||
| to json
|
||||
}
|
||||
|
||||
# TODO: support mroe then single template
|
||||
|
|
@ -22,6 +23,7 @@ def "main edit" [
|
|||
--preview
|
||||
] {
|
||||
let template = main find $file
|
||||
| from json
|
||||
| where name == $name
|
||||
| first;
|
||||
let new = $template.template
|
||||
|
|
|
|||
17
justfile
17
justfile
|
|
@ -12,6 +12,23 @@ tbuild:
|
|||
update:
|
||||
nix flake update --commit-lock-file --log-format multiline
|
||||
|
||||
toggle-gaps: replace-gaps test
|
||||
|
||||
replace-gaps:
|
||||
#!/usr/bin/env nu
|
||||
let style_file = './modules/desktop/home/niri/style.nix';
|
||||
let gap_state = ./build-utils/templ-edit.nu find $style_file
|
||||
| from json
|
||||
| get 0.current
|
||||
| parse " gaps = {v}; "
|
||||
| get v.0;
|
||||
print $gap_state;
|
||||
if $gap_state == "0" {
|
||||
./build-utils/templ-edit.nu edit $style_file GAPS 15
|
||||
} else {
|
||||
./build-utils/templ-edit.nu edit $style_file GAPS 0
|
||||
}
|
||||
|
||||
update-typst-configs:
|
||||
#!/usr/bin/env nu
|
||||
let file = './modules/media/typst.nix';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
(include "topBar/topBar.yuck")
|
||||
(include "bottomBar/bottomBar.yuck")
|
||||
|
||||
(include "topBar/time.yuck")
|
||||
|
||||
(defwindow streamUi
|
||||
:monitor 0
|
||||
:stacking "fg"
|
||||
|
|
@ -10,6 +12,25 @@
|
|||
:width "640px"
|
||||
:height "100%"
|
||||
:anchor "center right")
|
||||
(box
|
||||
(centerbox
|
||||
:style "padding: 0 3px"
|
||||
:orientation "vertical"
|
||||
(label :text "hi")
|
||||
))
|
||||
(label :text "hi")
|
||||
(centerbox
|
||||
:valign "end"
|
||||
(box
|
||||
:halign "start"
|
||||
(systray
|
||||
:icon-size 18
|
||||
:spacing 3
|
||||
)
|
||||
)
|
||||
(box)
|
||||
(box
|
||||
:halign "end"
|
||||
(time)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
animations.shaders.window-open = builtins.readFile ./shaders/glitch-open.frag;
|
||||
|
||||
layout = {
|
||||
gaps = 15;
|
||||
gaps = 15; # :GAPS:- gaps = %GAPS%;-:#
|
||||
focus-ring.enable = false;
|
||||
border = {
|
||||
enable = true;
|
||||
|
|
@ -58,6 +58,9 @@
|
|||
is-floating = true;
|
||||
}
|
||||
];
|
||||
excludes = [
|
||||
{ app-id = "steam_app_[0-9]+"; }
|
||||
];
|
||||
baba-is-float = true;
|
||||
shadow = {
|
||||
offset.y = 0;
|
||||
|
|
@ -68,6 +71,12 @@
|
|||
enable = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{ app-id = "(steam_app_[0-9]+|[Mm]inecraft.*|gamescope)"; }
|
||||
];
|
||||
border.enable = false;
|
||||
}
|
||||
{
|
||||
geometry-corner-radius =
|
||||
let
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue