diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-06 18:31:42 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-06 18:31:42 +0100 |
commit | 11c454e13fea28d117464fdce9f86fc8bfd1347b (patch) | |
tree | 08f1378313ff7c8438a49533f63782ff7a44d402 /.config/x11 | |
parent | 233b3b0dd0ef99d799ca0fe8212d74087ee9029c (diff) |
Update xprofile with pipewire
Diffstat (limited to '.config/x11')
-rwxr-xr-x | .config/x11/xprofile | 29 |
1 files 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" |