More config

This commit is contained in:
2026-03-06 23:42:56 +00:00
parent 3740b69b53
commit 6a444b9de5
6 changed files with 90 additions and 56 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/bash
# Returns the battery percentage remaining as an integer.
# Used by the battery monitor and the Ctrl + Shift + Super + B hotkey.
upower -i $(upower -e | grep BAT) | awk '/percentage/ {
print int($2)
exit
}'

View File

@@ -9,4 +9,6 @@ google-chrome* | brave-browser* | microsoft-edge* | opera* | vivaldi* | helium*)
*) browser="chromium.desktop" ;;
esac
echo $browser
exec setsid uwsm-app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$1" "${@:2}"

12
.local/bin/station-lock-screen Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Locks the system using hyprlock, but not before ensuring the screensaver stopped.
# Lock the screen
pidof hyprlock || hyprlock &
# Set keyboard layout to default (first layout)
hyprctl switchxkblayout all 0 > /dev/null 2>&1
# Avoid running screensaver when locked
pkill -f org.station.screensaver

View File

@@ -0,0 +1,11 @@
#!/bin/bash
makoctl mode -t do-not-disturb
if makoctl mode | grep -q 'do-not-disturb'; then
notify-send "󰂛 Silenced notifications"
else
notify-send "󰂚 Enabled notifications"
fi
pkill -RTMIN+10 waybar