You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/scripts/.bin/monitors

15 lines
309 B
Bash

#!/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