From 2cdb0043e2462a549600436978413559e4d696af Mon Sep 17 00:00:00 2001 From: = Date: Sat, 11 Apr 2020 17:28:12 +0100 Subject: [PATCH] open firefox devtools on specific monitor --- external.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/external.sh b/external.sh index 60f4977..ec79f8b 100755 --- a/external.sh +++ b/external.sh @@ -6,6 +6,9 @@ instance=$3 consequences=$4 title=$(xtitle "$wid") +hostname=$(hostname) + +# notify-send "$title" "$1 | $2 | $3 | $4" case "$title" in WM_FORCE_FLOATING) @@ -15,3 +18,13 @@ case "$title" in echo "state=fullscreen" ;; esac + +case "$class" in + firefoxdeveloperedition) + if [ "$instance" = Devtools ] && [ "$hostname" = Pamela ] ; then + eval "$consequences" + echo "monitor=VGA-1-1" + fi + ;; +esac +