blob: c6b34947ebcbb6aefb7f643669bb53aab776517b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh
# Authentication dialog
pkill -9 /usr/local/libexec/polkit-gnome-authentication-agent-1
/usr/local/libexec/polkit-gnome-authentication-agent-1 &
# Start xdg-desktop-portal-wlr
pkill -9 /usr/local/libexec/xdg-desktop-portal-wlr
/usr/local/libexec/xdg-desktop-portal-wlr &
# Start Waybar
#pkill -9 waybar
#waybar &
# Start Kanshi
pkill -9 kanshi
kanshi &
# $wallpaper is set in your shells config file like below.
read -r wallpaper<"$HOME/.cache/wallpaper"
pkill -9 swaybg
swaybg -m fill -i "$wallpaper" &
pkill -9 dunst
dunst &
pkill -9 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}')"
pkill -9 swayidle
sh "$HOME/.config/waybar/scripts/swayidle-update.sh"
|