mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
Compare commits
2 commits
cc2f1665c8
...
3a8558479b
Author | SHA1 | Date | |
---|---|---|---|
3a8558479b | |||
838319207a |
3 changed files with 48 additions and 30 deletions
|
@ -23,7 +23,6 @@ input {
|
|||
}
|
||||
trackpoint {
|
||||
accel-speed -0.1
|
||||
//accel-speed -0.1
|
||||
}
|
||||
//warp-mouse-to-focus
|
||||
focus-follows-mouse max-scroll-amount="20%"
|
||||
|
@ -64,14 +63,21 @@ environment {
|
|||
//<yolk> position x=0 y=1440
|
||||
//<yolk> }
|
||||
|
||||
// {% end %}
|
||||
// {% 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> }
|
||||
|
||||
//output "DP-4" {
|
||||
//mode "2560x1440"
|
||||
//scale 1
|
||||
//position x=0 y=0
|
||||
//off
|
||||
//}
|
||||
//<yolk> output "HDMI-A-1" {
|
||||
//<yolk> mode "2560x1440"
|
||||
//<yolk> scale 1
|
||||
//<yolk> position x=0 y=0
|
||||
//<yolk> }
|
||||
// {% end %}
|
||||
|
||||
|
||||
|
||||
|
@ -96,8 +102,11 @@ 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"
|
||||
|
@ -108,7 +117,6 @@ 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
|
||||
//
|
||||
|
@ -117,35 +125,41 @@ 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 {
|
||||
duration-ms 200
|
||||
curve "ease-out-quad"
|
||||
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
|
||||
// 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 {
|
||||
duration-ms 200
|
||||
curve "ease-out-quad"
|
||||
spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
|
||||
// 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);
|
||||
}
|
||||
|
@ -158,21 +172,22 @@ 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,6 +5,9 @@ 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