29 lines
792 B
Bash
Executable File
29 lines
792 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#-----------------------------------
|
|
# Name: dmenu
|
|
# Version: 1.0.0
|
|
# Author: Solomon Laing
|
|
# Description:
|
|
# Installs my customisation of dmenu
|
|
#-----------------------------------
|
|
|
|
if command -v dmenu &>/dev/null; then
|
|
echo "dmenu is already installed on the system."
|
|
exit 0
|
|
fi
|
|
|
|
echo "This script is going to install my fork of dmenu with my custom styling. As such it will ask for root privilages."
|
|
|
|
git clone https://gitlab.inkletblot.com/inkletblot/dmenu-inkletblot "$HOME/repos/gitlab.inkletblot.com/inkletblot/dmenu-inkletblot"
|
|
cd "$HOME/repos/gitlab.inkletblot.com/inkletblot/dmenu-inkletblot" || exit 1
|
|
git checkout config
|
|
sudo -S make clean install
|
|
|
|
if ! command -v dmenu &>/dev/null; then
|
|
echo "dmenu failed to install"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|