More config
This commit is contained in:
9
.local/bin/station-battery-remaining
Executable file
9
.local/bin/station-battery-remaining
Executable 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
|
||||
}'
|
||||
@@ -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
12
.local/bin/station-lock-screen
Executable 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
|
||||
11
.local/bin/station-toggle-notification-silencing
Executable file
11
.local/bin/station-toggle-notification-silencing
Executable 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
|
||||
Reference in New Issue
Block a user