From 11c454e13fea28d117464fdce9f86fc8bfd1347b Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 6 Jan 2022 18:31:42 +0100 Subject: Update xprofile with pipewire --- .config/x11/xprofile | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/.config/x11/xprofile b/.config/x11/xprofile index d3b9205..4f86b18 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -3,23 +3,18 @@ # This file runs when a DM logs you into a graphical session. # If you use startx/xinit like a Chad, this file will also be sourced. -setbg & # Set the background with the `setbg` script -# xcompmgr & # xcompmgr for transparency -xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & -xset r rate 300 50 & # Speed xrate up -unclutter & # Remove mouse when idle -xbanish & # Remove mouse when typing +setbg & # Set the background with the `setbg` script +xset r rate 300 50 & # Speed xrate up +unclutter & # Remove mouse when idle +xbanish & # Remove mouse when typing dwmblocks & # Status bar -echo $PATH > /tmp/path.dbg +xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! -# pipewire -/usr/bin/pipewire & -/usr/bin/pipewire-pulse & -/usr/bin/pipewire-media-session & +autostart="xcompmgr dunst unclutter pipewire pipewire-pulse pipewire-media-session" -# This line autostart an instance of Pulseaudio that does not exit on idle. -# This is "necessary" on Artix due to a current bug between PA and -# Chromium-based browsers where they fail to start PA and use dummy output. -pidof -s runit && - ! pidof -s pulseaudio >/dev/null 2>&11 && - setid -f pulseaudio --start --exit-idle-time=-1 >/dev/null 2>&1 +for program in $autostart; do + pidof -s "$program" || setsid -f "$program" +done >/dev/null 2>&1 + +# Ensure that xrdb has finished running before moving on to start the WM/DE. +[ -n "$xrdbpid" ] && wait "$xrdbpid" -- cgit v1.2.3-70-g09d2