Compare commits

..

No commits in common. "3a8558479b20dd9be19e4731b58d0f25ce081dac" and "cc2f1665c86eebc5d7b620bf2f8e466d25ae3f72" have entirely different histories.

3 changed files with 30 additions and 48 deletions

View file

View file

@ -23,6 +23,7 @@ input {
} }
trackpoint { trackpoint {
accel-speed -0.1 accel-speed -0.1
//accel-speed -0.1
} }
//warp-mouse-to-focus //warp-mouse-to-focus
focus-follows-mouse max-scroll-amount="20%" focus-follows-mouse max-scroll-amount="20%"
@ -63,22 +64,15 @@ environment {
//<yolk> position x=0 y=1440 //<yolk> position x=0 y=1440
//<yolk> } //<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 %} // {% end %}
//output "DP-4" {
//mode "2560x1440"
//scale 1
//position x=0 y=0
//off
//}
layout { layout {
@ -102,11 +96,8 @@ 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 "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 %}
spawn-at-startup "bash" "-c" "eww -c ~/.config/eww-bar open-many bar_1 niri_scroller" spawn-at-startup "bash" "-c" "eww -c ~/.config/eww-bar open-many bar_1 niri_scroller"
spawn-at-startup "xwayland-satellite" spawn-at-startup "xwayland-satellite"
spawn-at-startup "bash" "-c" "1password --silent" spawn-at-startup "bash" "-c" "1password --silent"
@ -117,6 +108,7 @@ spawn-at-startup "wl-clip-persist" "--clipboard" "regular"
spawn-at-startup "kdeconnect-indicator" spawn-at-startup "kdeconnect-indicator"
// //
spawn-at-startup "bash" "-c" "swaybg -m fill -i ~/wallpapers/green_leaves.jpg" spawn-at-startup "bash" "-c" "swaybg -m fill -i ~/wallpapers/green_leaves.jpg"
spawn-at-startup "waybar"
spawn-at-startup "~/.config/niri/clipsync watch with-notifications" spawn-at-startup "~/.config/niri/clipsync watch with-notifications"
spawn-at-startup spawn-at-startup
// //
@ -125,41 +117,35 @@ prefer-no-csd
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
animations { animations {
window-movement {
// duration-ms 200
// curve "ease-out-quad"
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
horizontal-view-movement {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
}
window-open { window-open {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001 duration-ms 200
// duration-ms 200 curve "ease-out-quad"
// curve "ease-out-quad"
custom-shader r" custom-shader r"
float map(float value, float min1, float max1, float min2, float max2) { float map(float value, float min1, float max1, float min2, float max2) {
return min2 + (value - min1) * (max2 - min2) / (max1 - min1); return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
} }
vec4 open_color(vec3 coords_geo, vec3 size_geo) { vec4 open_color(vec3 coords_geo, vec3 size_geo) {
float cur = niri_clamped_progress; float cur = niri_clamped_progress;
if (coords_geo.x > cur) { return vec4(0.0); } if (coords_geo.x > cur) {
return vec4(0.0);
}
vec3 coord = vec3(map(coords_geo.x,0.0, cur, 0.0, 1.0 ), coords_geo.y, coords_geo.z); vec3 coord = vec3(map(coords_geo.x,0.0, cur, 0.0, 1.0 ), coords_geo.y, coords_geo.z);
return texture2D(niri_tex, (niri_geo_to_tex * coord).st); return texture2D(niri_tex, (niri_geo_to_tex * coord).st);
} }
" "
} }
window-close { window-close {
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001 duration-ms 200
// duration-ms 200 curve "ease-out-quad"
// curve "ease-out-quad"
custom-shader r" custom-shader r"
float map(float value, float min1, float max1, float min2, float max2) { float map(float value, float min1, float max1, float min2, float max2) {
return min2 + (value - min1) * (max2 - min2) / (max1 - min1); return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
} }
vec4 close_color(vec3 coords_geo, vec3 size_geo) { vec4 close_color(vec3 coords_geo, vec3 size_geo) {
float cur = 1.0-niri_clamped_progress; float cur = 1.0-niri_clamped_progress;
if (coords_geo.x > cur) { return vec4(0.0); } if (coords_geo.x > cur) {
return vec4(0.0);
}
vec3 coord = vec3(map(coords_geo.x,0.0, cur, 0.0, 1.0), coords_geo.y, coords_geo.z); vec3 coord = vec3(map(coords_geo.x,0.0, cur, 0.0, 1.0), coords_geo.y, coords_geo.z);
return texture2D(niri_tex, (niri_geo_to_tex * coord).st); return texture2D(niri_tex, (niri_geo_to_tex * coord).st);
} }
@ -172,22 +158,21 @@ window-rule {
default-column-width { proportion 0.3333; } default-column-width { proportion 0.3333; }
} }
layer-rule { //layer-rule {
match namespace="^notifications$" //match namespace="^notifications$"
block-out-from "screen-capture" //block-out-from "screen-capture"
} //}
// Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.)
window-rule { window-rule {
match app-id=r#"1Password"# match app-id=r#"1Password"#
match title=r#"[gG]mail"# match title=r#"[gG]mail"#
match title=r#".*[Ww]hats[aA]pp.*$"# match title=r#".*[Ww]hats[aA]pp.*$"#
// opacity 0.5
block-out-from "screen-capture" block-out-from "screen-capture"
} }
window-rule {
match app-id=r#"^1Password$"#
open-floating true
}
window-rule { window-rule {
match app-id=r#"^[gG]edit$"#; match app-id=r#"^[gG]edit$"#;

View file

@ -5,9 +5,6 @@ device = {
thinkix = function() thinkix = function()
return SYSTEM.hostname == "thinkix" return SYSTEM.hostname == "thinkix"
end, end,
desktop = function()
return SYSTEM.hostname == "fedora.fritz.box"
end,
laptop = function() laptop = function()
return SYSTEM.hostname == "thinkix" or SYSTEM.hostname == "frissnix" return SYSTEM.hostname == "thinkix" or SYSTEM.hostname == "frissnix"
end, end,