Update .config/DankMaterialShell/settings.json

Update .config/niri/config.kdl
Update .config/niri/dms/alttab.kdl
Update .config/niri/dms/layout.kdl
Update .config/niri/dms/wpblur.kdl
Update .config/niri/windowrules.kdl
Update .local/bin/low-battery-warn
This commit is contained in:
Lewis Wynne 2025-12-18 11:16:53 +00:00
parent 3a812a7268
commit 62d6e2d268
7 changed files with 70 additions and 61 deletions

View file

@ -378,5 +378,5 @@
"maximizeDetection": true
}
],
"configVersion": 2
"configVersion": 3
}

View file

@ -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
}
}

View file

@ -1,5 +1,10 @@
recent-windows {
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
recent-windows {
highlight {
corner-radius 0
}
}
}

View file

@ -1,4 +1,9 @@
layout {
// ! DO NOT EDIT !
// ! AUTO-GENERATED BY DMS !
// ! CHANGES WILL BE OVERWRITTEN !
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
layout {
gaps 5
border {
@ -8,10 +13,10 @@ layout {
focus-ring {
width 2
}
}
window-rule {
}
window-rule {
geometry-corner-radius 0
clip-to-geometry true
tiled-state true
draw-border-with-background false
}
}

View file

@ -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

View file

@ -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
}

View file

@ -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