mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 21:52:23 +00:00
Compare commits
No commits in common. "3a8558479b20dd9be19e4731b58d0f25ce081dac" and "cc2f1665c86eebc5d7b620bf2f8e466d25ae3f72" have entirely different histories.
3a8558479b
...
cc2f1665c8
3 changed files with 30 additions and 48 deletions
0
eggs/niri/.config/niri/.zed/tasks.json
Normal file
0
eggs/niri/.config/niri/.zed/tasks.json
Normal file
|
@ -15,7 +15,7 @@ input {
|
|||
tap
|
||||
natural-scroll
|
||||
// accel-speed 0.2
|
||||
|
||||
|
||||
scroll-factor 0.7
|
||||
}
|
||||
mouse {
|
||||
|
@ -23,6 +23,7 @@ input {
|
|||
}
|
||||
trackpoint {
|
||||
accel-speed -0.1
|
||||
//accel-speed -0.1
|
||||
}
|
||||
//warp-mouse-to-focus
|
||||
focus-follows-mouse max-scroll-amount="20%"
|
||||
|
@ -63,22 +64,15 @@ environment {
|
|||
//<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 %}
|
||||
|
||||
//output "DP-4" {
|
||||
//mode "2560x1440"
|
||||
//scale 1
|
||||
//position x=0 y=0
|
||||
//off
|
||||
//}
|
||||
|
||||
|
||||
|
||||
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 "waybar"
|
||||
// {% end %}
|
||||
|
||||
spawn-at-startup "bash" "-c" "eww -c ~/.config/eww-bar open-many bar_1 niri_scroller"
|
||||
spawn-at-startup "xwayland-satellite"
|
||||
spawn-at-startup "bash" "-c" "1password --silent"
|
||||
|
@ -117,49 +108,44 @@ spawn-at-startup "wl-clip-persist" "--clipboard" "regular"
|
|||
spawn-at-startup "kdeconnect-indicator"
|
||||
//
|
||||
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
|
||||
spawn-at-startup
|
||||
//
|
||||
prefer-no-csd
|
||||
|
||||
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||
|
||||
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 {
|
||||
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
|
||||
// duration-ms 200
|
||||
// curve "ease-out-quad"
|
||||
duration-ms 200
|
||||
curve "ease-out-quad"
|
||||
custom-shader r"
|
||||
float map(float value, float min1, float max1, float min2, float max2) {
|
||||
return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
|
||||
}
|
||||
vec4 open_color(vec3 coords_geo, vec3 size_geo) {
|
||||
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);
|
||||
return texture2D(niri_tex, (niri_geo_to_tex * coord).st);
|
||||
}
|
||||
"
|
||||
}
|
||||
window-close {
|
||||
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
|
||||
// duration-ms 200
|
||||
// curve "ease-out-quad"
|
||||
duration-ms 200
|
||||
curve "ease-out-quad"
|
||||
custom-shader r"
|
||||
float map(float value, float min1, float max1, float min2, float max2) {
|
||||
return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
|
||||
}
|
||||
vec4 close_color(vec3 coords_geo, vec3 size_geo) {
|
||||
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);
|
||||
return texture2D(niri_tex, (niri_geo_to_tex * coord).st);
|
||||
}
|
||||
|
@ -172,22 +158,21 @@ window-rule {
|
|||
default-column-width { proportion 0.3333; }
|
||||
}
|
||||
|
||||
layer-rule {
|
||||
match namespace="^notifications$"
|
||||
block-out-from "screen-capture"
|
||||
}
|
||||
//layer-rule {
|
||||
//match namespace="^notifications$"
|
||||
//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 {
|
||||
match app-id=r#"1Password"#
|
||||
match title=r#"[gG]mail"#
|
||||
match title=r#".*[Ww]hats[aA]pp.*$"#
|
||||
// opacity 0.5
|
||||
|
||||
block-out-from "screen-capture"
|
||||
}
|
||||
window-rule {
|
||||
match app-id=r#"^1Password$"#
|
||||
open-floating true
|
||||
}
|
||||
|
||||
|
||||
window-rule {
|
||||
match app-id=r#"^[gG]edit$"#;
|
||||
|
|
|
@ -5,9 +5,6 @@ device = {
|
|||
thinkix = function()
|
||||
return SYSTEM.hostname == "thinkix"
|
||||
end,
|
||||
desktop = function()
|
||||
return SYSTEM.hostname == "fedora.fritz.box"
|
||||
end,
|
||||
laptop = function()
|
||||
return SYSTEM.hostname == "thinkix" or SYSTEM.hostname == "frissnix"
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue