mirror of
https://github.com/correl/dotfiles.git
synced 2025-01-06 19:08:52 +00:00
[provisioning] Add polybar
This commit is contained in:
parent
3ef223fe48
commit
40462fef14
3 changed files with 23 additions and 0 deletions
|
@ -4,6 +4,7 @@ set -e
|
|||
|
||||
_recipe _apt
|
||||
_recipe emacs
|
||||
_recipe polybar
|
||||
|
||||
_apt brightnessctl
|
||||
_apt fonts-font-awesome
|
||||
|
|
6
recipes/polybar
Normal file
6
recipes/polybar
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
# Description: A customizeable desktop environment status bar
|
||||
set -e
|
||||
|
||||
_recipe snap
|
||||
_snap polybar-git --edge --devmode
|
16
recipes/snap
Normal file
16
recipes/snap
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue