diff options
author | Justine Smithies <justine@smithies.me.uk> | 2025-06-15 12:38:28 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2025-06-15 12:38:28 +0100 |
commit | d029adec94282882510be0d4398709a818b880ad (patch) | |
tree | 03fb83ea178242c472a8d03a3d715f4d3203fbed /.config/maomao/autostart.sh | |
parent | 458aa6f36860997f8df1ae476647c2535d8646d0 (diff) |
Initial commit for MaomaoWM - Still a WIP
Diffstat (limited to '.config/maomao/autostart.sh')
-rwxr-xr-x | .config/maomao/autostart.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.config/maomao/autostart.sh b/.config/maomao/autostart.sh new file mode 100755 index 0000000..c0a48a1 --- /dev/null +++ b/.config/maomao/autostart.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +# Authentication dialog + +pkill -f /usr/local/libexec/polkit-gnome-authentication-agent-1 +/usr/local/libexec/polkit-gnome-authentication-agent-1 & + +# Start xdg-desktop-portal-wlr + +pkill -f /usr/local/libexec/xdg-desktop-portal-wlr +/usr/local/libexec/xdg-desktop-portal-wlr & + +# Start Waybar +pkill -f waybar +waybar & + +# Start Kanshi which also starts Yambar +pkill -f kanshi +kanshi & + +# $wallpaper is set in your shells config file like below. +read -r wallpaper<"$HOME/.cache/wallpaper" +pkill -f swaybg +swaybg -m fill -i "$wallpaper" & + +pkill -f mako +mako & + +pkill -f wlsunset +wlsunset -l 57.4 -L -1.9 & + +# Restore previous brightness +backlight "$(grep 'brightness:' ~/.cache/brightness | awk '{print $2}')" + +# Restore audio volume +mixer vol.volume="$(grep 'vol.volume=' ~/.cache/audio-volume | awk -F ':' '{print $2}')" +mixer vol.mute="$(grep 'vol.mute=' ~/.cache/audio-volume | awk -F '=' '{print $2}')" + +sh "$HOME/.config/waybar/scripts/swayidle-update.sh" |