From 40462fef14678fdb4472e0ce14cfde41c9d95352 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sat, 9 Jan 2021 23:58:51 -0500 Subject: [PATCH] [provisioning] Add polybar --- recipes/exwm | 1 + recipes/polybar | 6 ++++++ recipes/snap | 16 ++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 recipes/polybar create mode 100644 recipes/snap diff --git a/recipes/exwm b/recipes/exwm index 6a8ffea..c29c23d 100644 --- a/recipes/exwm +++ b/recipes/exwm @@ -4,6 +4,7 @@ set -e _recipe _apt _recipe emacs +_recipe polybar _apt brightnessctl _apt fonts-font-awesome diff --git a/recipes/polybar b/recipes/polybar new file mode 100644 index 0000000..1e0ed5b --- /dev/null +++ b/recipes/polybar @@ -0,0 +1,6 @@ +#!/bin/bash +# Description: A customizeable desktop environment status bar +set -e + +_recipe snap +_snap polybar-git --edge --devmode diff --git a/recipes/snap b/recipes/snap new file mode 100644 index 0000000..d97b736 --- /dev/null +++ b/recipes/snap @@ -0,0 +1,16 @@ +#!/bin/bash +# Description: Ubuntu Snaps +set -e + +_recipe _apt + +_apt snapd + +function _snap { + local package=$1 + if ! snap info $package | grep ^installed: >/dev/null; then + _run "[snap] Install $package" sudo snap install $@ + else + echo "[snap] $package is already installed, skipping." + fi +}