Skip to content

Instantly share code, notes, and snippets.

@zerwes
Created November 29, 2017 08:52
Show Gist options
  • Save zerwes/59100f8c1f3823c49987cff53a21aea9 to your computer and use it in GitHub Desktop.
Save zerwes/59100f8c1f3823c49987cff53a21aea9 to your computer and use it in GitHub Desktop.
#! /bin/bash
#
# starts a new gnome terminal with a random profile selected
#
eval "PROFILES=( $(for p in $(dconf list /org/gnome/terminal/legacy/profiles:/ | sed '/^:/!d'); do dconf read /org/gnome/terminal/legacy/profiles:/${p}visible-name; done | grep -vi transparent) )"
gnome-terminal --window-with-profile "${PROFILES[$((RANDOM%${#PROFILES[@]}))]}" &
@zerwes
Copy link
Author

zerwes commented Oct 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment