1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-09-21 03:01:42 +00:00
dotfiles/scripts/.bin/monitors
J. Fernando Sánchez ea78b16bd9 Multiple changes
2018-09-12 19:04:59 +02:00

15 lines
309 B
Bash
Executable File

#!/bin/sh
if [ "$#" -lt 1 ]; then
ls -1 ~/.screenlayout | rofi -dmenu | xargs -I '{}' sh "$HOME/.screenlayout/{}" || exit
else
sh $HOME/.screenlayout/$1.sh
fi
if pgrep -u $UID -x polybar >/dev/null; then
sh /home/j/.bin/polybar.sh;
fi
if [ `command -v nitrogen` ]; then
nitrogen --restore
fi