From 5fb52b0e7229f2e512db3e7cce3d6603b0cbd0c7 Mon Sep 17 00:00:00 2001 From: Harri Lahtinen Date: Wed, 19 Dec 2018 23:17:31 +0200 Subject: [PATCH] xprofile to xsession --- .config/polybar/launch.sh | 15 +++++---------- .xprofile => .xsession | 2 -- 2 files changed, 5 insertions(+), 12 deletions(-) rename .xprofile => .xsession (84%) mode change 100755 => 100644 diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index a54e75c..67cfd3e 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -1,18 +1,13 @@ #!/usr/bin/env sh +# Terminate already running bar instances killall -q polybar -polybar_proc=$(pgrep -u $UID -x polybar) +# Wait until the processes have been shut down +while pgrep -x polybar >/dev/null; do sleep 1; done -# Terminate already running bar instances -for i in ${polybar_proc} ; do - kill -9 $i -done - -while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done - -# Launch bar top & bottom +# Launch polybar top & polybar bottom & -echo "Bars launched..." +echo "Bar launched..." diff --git a/.xprofile b/.xsession old mode 100755 new mode 100644 similarity index 84% rename from .xprofile rename to .xsession index 0456460..b3d5130 --- a/.xprofile +++ b/.xsession @@ -1,5 +1,3 @@ -#!/bin/sh - wal -R & xset +fp ~/.local/share/fonts & xset fp rehash &