xprofile to xsession

This commit is contained in:
Harri Lahtinen 2018-12-19 23:17:31 +02:00
parent 8e74afce6d
commit 5fb52b0e72
2 changed files with 5 additions and 12 deletions

View File

@ -1,18 +1,13 @@
#!/usr/bin/env sh #!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar 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 # Launch
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
polybar top & polybar top &
polybar bottom & polybar bottom &
echo "Bars launched..." echo "Bar launched..."

2
.xprofile → .xsession Executable file → Normal file
View File

@ -1,5 +1,3 @@
#!/bin/sh
wal -R & wal -R &
xset +fp ~/.local/share/fonts & xset +fp ~/.local/share/fonts &
xset fp rehash & xset fp rehash &