diff --git a/private_dot_config/DankMaterialShell/settings.json b/private_dot_config/DankMaterialShell/settings.json index a28de1f..9209511 100644 --- a/private_dot_config/DankMaterialShell/settings.json +++ b/private_dot_config/DankMaterialShell/settings.json @@ -378,5 +378,5 @@ "maximizeDetection": true } ], - "configVersion": 2 + "configVersion": 3 } \ No newline at end of file diff --git a/private_dot_config/niri/config.kdl b/private_dot_config/niri/config.kdl index 8625631..b55852e 100644 --- a/private_dot_config/niri/config.kdl +++ b/private_dot_config/niri/config.kdl @@ -16,7 +16,7 @@ environment { // https://yalter.github.io/niri/Configuration:-Layout layout { - gaps 5 + gaps 2 center-focused-column "never" always-center-single-column preset-column-widths { @@ -42,13 +42,13 @@ layout { shadow { on draw-behind-window false - softness 3 - spread 1 + softness 2 + spread 2 offset x=3 y=3 } struts { - left 16 - right 16 + left 3 + right 3 } } diff --git a/private_dot_config/niri/dms/alttab.kdl b/private_dot_config/niri/dms/alttab.kdl index fef9cd8..3b7763a 100644 --- a/private_dot_config/niri/dms/alttab.kdl +++ b/private_dot_config/niri/dms/alttab.kdl @@ -1,5 +1,10 @@ -recent-windows { - highlight { +// ! DO NOT EDIT ! + // ! AUTO-GENERATED BY DMS ! + // ! CHANGES WILL BE OVERWRITTEN ! + // ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE ! + + recent-windows { + highlight { corner-radius 0 - } -} + } + } diff --git a/private_dot_config/niri/dms/layout.kdl b/private_dot_config/niri/dms/layout.kdl index a99e339..dc4a761 100644 --- a/private_dot_config/niri/dms/layout.kdl +++ b/private_dot_config/niri/dms/layout.kdl @@ -1,17 +1,22 @@ -layout { - gaps 5 +// ! DO NOT EDIT ! + // ! AUTO-GENERATED BY DMS ! + // ! CHANGES WILL BE OVERWRITTEN ! + // ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE ! - border { - width 2 - } + layout { + gaps 5 - focus-ring { + border { width 2 - } -} -window-rule { - geometry-corner-radius 0 - clip-to-geometry true - tiled-state true - draw-border-with-background false -} + } + + focus-ring { + width 2 + } + } + window-rule { + geometry-corner-radius 0 + clip-to-geometry true + tiled-state true + draw-border-with-background false + } diff --git a/private_dot_config/niri/dms/wpblur.kdl b/private_dot_config/niri/dms/wpblur.kdl index 667042f..3d58802 100644 --- a/private_dot_config/niri/dms/wpblur.kdl +++ b/private_dot_config/niri/dms/wpblur.kdl @@ -1,3 +1,8 @@ +// ! DO NOT EDIT ! +// ! AUTO-GENERATED BY DMS ! +// ! CHANGES WILL BE OVERWRITTEN ! +// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE ! + layer-rule { match namespace="dms:blurwallpaper" place-within-backdrop true diff --git a/private_dot_config/niri/windowrules.kdl b/private_dot_config/niri/windowrules.kdl index b5a6e63..29b5c04 100644 --- a/private_dot_config/niri/windowrules.kdl +++ b/private_dot_config/niri/windowrules.kdl @@ -1,51 +1,46 @@ +// ############## +// # DEFAULTS # +// ############## + window-rule { open-maximized false } window-rule { match is-focused=false - opacity 0.86 + opacity 0.94 } window-rule { match is-focused=true - opacity 0.95 + opacity 0.98 } -window-rule { - match title="Chromium" - match is-focused=true - opacity 1.0 -} - -window-rule { - match title="Chromium" - match is-focused=false - opacity 0.97 -} - -window-rule { - match title="youtube" - match title="netflix" - opacity 1.0 -} - -window-rule { - match title="^launcher$" - open-floating true - open-focused true -} - -window-rule { - match title="RuneLite" - match title="Bolt Launcher" - match title="Proton Authenticator" - open-floating true - default-column-width {} - default-window-height {} -} +// ############# +// # OVERRIDES # +// ############# +// Always opaque. window-rule { match app-id=r#"org.quickshell$"# - open-floating true + match title="[Yy]ou[Tt]ube" + match title="[Nn]et[Ff]lix" + match title="[Rr]une[Ll]ite" + match title="[Bb]olt [Ll]auncher" + match title="[Pp]roton [Aa]uthenticator" + exclude title="YouTube Music" + opacity 1.0 } + +// Always floating. +window-rule { + match app-id=r#"org.quickshell$"# + match title="[Rr]une[Ll]ite" + match title="[Bb]olt [Ll]auncher" + match title="[Pp]roton [Aa]uthenticator" + match title="[Pp]icture[- ][Ii]n[- ][Pp]icture" + open-floating true + min-width 240 + min-height 180 +} + diff --git a/private_dot_local/bin/executable_low-battery-warn b/private_dot_local/bin/executable_low-battery-warn index 958f0a2..2b35e23 100644 --- a/private_dot_local/bin/executable_low-battery-warn +++ b/private_dot_local/bin/executable_low-battery-warn @@ -1,7 +1,6 @@ #!/usr/bin/env bash THRESHOLD=15 -EXPIRY_MS=120000 # 2 minutes # Find the battery device (first one found) BATTERY=$(upower -e | grep battery | head -n1) @@ -22,6 +21,6 @@ echo "$(date '+%Y-%m-%d %H:%M:%S') Battery state: $STATE, percentage: $PERCENT" # Only notify if discharging and below threshold if [ "$STATE" = "discharging" ] && [ "$PERCENT" -lt "$THRESHOLD" ]; then - notify-send -u critical -t "$EXPIRY_MS" "Battery low" "Battery at ${PERCENT}% and discharging." + notify-send "Battery low" "Battery at ${PERCENT}% and discharging." echo "$(date '+%Y-%m-%d %H:%M:%S') Notification sent: Battery at ${PERCENT}% and discharging." fi