From 8c45e11ca4963df099e98ed41c8fd88478cd2161 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Mon, 3 Aug 2026 21:04:57 +0100 Subject: This is a WIP so will change quite a bit and other stuff like scripts external to CoW will be added later. --- .config/cow/after-start.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 .config/cow/after-start.sh (limited to '.config/cow/after-start.sh') diff --git a/.config/cow/after-start.sh b/.config/cow/after-start.sh new file mode 100755 index 0000000..025027b --- /dev/null +++ b/.config/cow/after-start.sh @@ -0,0 +1,40 @@ +#!/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 +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 dunst +dunst & + +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" + -- cgit v1.3