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:
parent
3a812a7268
commit
62d6e2d268
7 changed files with 70 additions and 61 deletions
|
|
@ -378,5 +378,5 @@
|
||||||
"maximizeDetection": true
|
"maximizeDetection": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"configVersion": 2
|
"configVersion": 3
|
||||||
}
|
}
|
||||||
|
|
@ -16,7 +16,7 @@ environment {
|
||||||
|
|
||||||
// https://yalter.github.io/niri/Configuration:-Layout
|
// https://yalter.github.io/niri/Configuration:-Layout
|
||||||
layout {
|
layout {
|
||||||
gaps 5
|
gaps 2
|
||||||
center-focused-column "never"
|
center-focused-column "never"
|
||||||
always-center-single-column
|
always-center-single-column
|
||||||
preset-column-widths {
|
preset-column-widths {
|
||||||
|
|
@ -42,13 +42,13 @@ layout {
|
||||||
shadow {
|
shadow {
|
||||||
on
|
on
|
||||||
draw-behind-window false
|
draw-behind-window false
|
||||||
softness 3
|
softness 2
|
||||||
spread 1
|
spread 2
|
||||||
offset x=3 y=3
|
offset x=3 y=3
|
||||||
}
|
}
|
||||||
struts {
|
struts {
|
||||||
left 16
|
left 3
|
||||||
right 16
|
right 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
// ! DO NOT EDIT !
|
||||||
|
// ! AUTO-GENERATED BY DMS !
|
||||||
|
// ! CHANGES WILL BE OVERWRITTEN !
|
||||||
|
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
|
||||||
|
|
||||||
recent-windows {
|
recent-windows {
|
||||||
highlight {
|
highlight {
|
||||||
corner-radius 0
|
corner-radius 0
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
// ! DO NOT EDIT !
|
||||||
|
// ! AUTO-GENERATED BY DMS !
|
||||||
|
// ! CHANGES WILL BE OVERWRITTEN !
|
||||||
|
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
|
||||||
|
|
||||||
layout {
|
layout {
|
||||||
gaps 5
|
gaps 5
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
// ! DO NOT EDIT !
|
||||||
|
// ! AUTO-GENERATED BY DMS !
|
||||||
|
// ! CHANGES WILL BE OVERWRITTEN !
|
||||||
|
// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE !
|
||||||
|
|
||||||
layer-rule {
|
layer-rule {
|
||||||
match namespace="dms:blurwallpaper"
|
match namespace="dms:blurwallpaper"
|
||||||
place-within-backdrop true
|
place-within-backdrop true
|
||||||
|
|
|
||||||
|
|
@ -1,51 +1,46 @@
|
||||||
|
// ##############
|
||||||
|
// # DEFAULTS #
|
||||||
|
// ##############
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
open-maximized false
|
open-maximized false
|
||||||
}
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match is-focused=false
|
match is-focused=false
|
||||||
opacity 0.86
|
opacity 0.94
|
||||||
}
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
match is-focused=true
|
match is-focused=true
|
||||||
opacity 0.95
|
opacity 0.98
|
||||||
}
|
}
|
||||||
|
|
||||||
window-rule {
|
// #############
|
||||||
match title="Chromium"
|
// # OVERRIDES #
|
||||||
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 {}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// Always opaque.
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"org.quickshell$"#
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
THRESHOLD=15
|
THRESHOLD=15
|
||||||
EXPIRY_MS=120000 # 2 minutes
|
|
||||||
|
|
||||||
# Find the battery device (first one found)
|
# Find the battery device (first one found)
|
||||||
BATTERY=$(upower -e | grep battery | head -n1)
|
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
|
# Only notify if discharging and below threshold
|
||||||
if [ "$STATE" = "discharging" ] && [ "$PERCENT" -lt "$THRESHOLD" ]; then
|
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."
|
echo "$(date '+%Y-%m-%d %H:%M:%S') Notification sent: Battery at ${PERCENT}% and discharging."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue