Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .scripts/set_permissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@ set_permissions() {
"/mnt" | "/opt" | "/proc" | "/root" | "/sbin" | "/srv" | "/sys" | "/tmp" | "/unix") ;&
"/usr" | "/usr/include" | "/usr/lib" | "/usr/libexec" | "/usr/local" | "/usr/share") ;&
"/var" | "/var/log" | "/var/mail" | "/var/spool" | "/var/tmp")
error "Skipping permissions on '${C["Folder"]}${CH_PATH}${NC}' because it is a system path."
error "Skipping permissions on '{{|Folder|}}${CH_PATH}{{[-]}}' because it is a system path."
return
;;
${DETECTED_HOMEDIR}/*)
info "Setting permissions for '${C["Folder"]}${CH_PATH}${NC}'"
info "Setting permissions for '{{|Folder|}}${CH_PATH}{{[-]}}'"
;;
*)
# TODO: Consider adding a prompt to confirm setting permissions
warn "Setting permissions for '${C["Folder"]}${CH_PATH}${NC}' outside of '${C["Folder"]}${DETECTED_HOMEDIR}${NC}' may be unsafe."
warn "Setting permissions for '{{|Folder|}}${CH_PATH}{{[-]}}' outside of '{{|Folder|}}${DETECTED_HOMEDIR}{{[-]}}' may be unsafe."
;;
esac
local CH_PUID=${2:-$DETECTED_PUID}
local CH_PGID=${3:-$DETECTED_PGID}
if [[ ${CH_PUID} -ne 0 ]] && [[ ${CH_PGID} -ne 0 ]]; then
info "Taking ownership of '${C["Folder"]}${CH_PATH}${NC}' for user '${C["User"]}${CH_PUID}${NC}' and group '${C["User"]}${CH_PGID}${NC}'"
info "Taking ownership of '{{|Folder|}}${CH_PATH}{{[-]}}' for user '{{|User|}}${CH_PUID}{{[-]}}' and group '{{|User|}}${CH_PGID}{{[-]}}'"
sudo chown -R "${CH_PUID}":"${CH_PGID}" "${CH_PATH}" &> /dev/null || true
info "Setting file and folder permissions in '${C["Folder"]}${CH_PATH}${NC}'"
info "Setting file and folder permissions in '{{|Folder|}}${CH_PATH}{{[-]}}'"
sudo chmod -R a=,a+rX,u+w,g+w "${CH_PATH}" &> /dev/null || true
fi
info "Setting executable permission on '${C["File"]}${SCRIPTNAME}${NC}'"
info "Setting executable permission on '{{|File|}}${SCRIPTNAME}{{[-]}}'"
sudo chmod +x "${SCRIPTNAME}" &> /dev/null ||
fatal \
"'${C["UserCommand"]}${APPLICATION_COMMAND}${NC}' must be executable." \
"Failing command: ${C["FailingCommand"]}sudo chmod +x \"${SCRIPTNAME}\""
"'{{|UserCommand|}}${APPLICATION_COMMAND}{{[-]}}' must be executable." \
"Failing command: {{|FailingCommand|}}sudo chmod +x \"${SCRIPTNAME}\""
}

test_set_permissions() {
Expand Down
126 changes: 67 additions & 59 deletions assets/themes/BlackandWhite.dstheme
Original file line number Diff line number Diff line change
@@ -1,67 +1,75 @@
<==> theme.ini
<==> theme.toml
#
# DockSTARTer theme file
# theme.ini
# theme.toml
#
# Color List:
#
# ${_B_} Blue
# ${_C_} Cyan
# ${_G_} Green
# ${_K_} Black
# ${_M_} Magenta
# ${_R_} Red
# ${_W_} White
# ${_Y_} Yellow
# ${_RV_} Reverse
# ${_NRV_} No Reverse
# ${_BD_} Bold
# ${_NBD_} No Bold
# ${_U_} Underline
# ${_NU_} No Underline
# ${_NC_} No Color

ThemeName='BlackandWhite'
ThemeDescription='The pure Black and White theme'
ThemeAuthor='Westlin'

ApplicationName="${_NC_}${_RV_}"
ApplicationVersion="${_NC_}${_RV_}"
ApplicationVersionBrackets="${_NC_}${_RV_}"
ApplicationVersionSpace="${_NC_}"
ApplicationVersionBrackets="${_NC_}${_RV_}"
ApplicationVersionSpace="${_NC_}"
ApplicationFlags="${_NC_}${_NBD_}"
ApplicationFlagsBrackets="${_NC_}${_RV_}"
ApplicationFlagsSpace="${_NC_}${_RV_}"
ApplicationUpdate="${_NC_}"
ApplicationUpdateBrackets="${_NC_}"
Hostname="${_NC_}${_RV_}"
Title="${_NC_}${_U_}"
Subtitle="${_NC_}${_RV_}"
TitleSuccess="${_NC_}${_RV_}"
TitleError="${_NC_}${_BD_}${_RV_}"
TitleWarning="${_NC_}${_RV_}"
TitleQuestion="${_NC_}${_RV_}"
Heading="${_NC_}${_RV_}"
HeadingTag="${_NC_}${_BD_}"
HeadingValue="${_NC_}${_BD_}${_U_}"
HeadingAppDescription="${_NC_}"
Highlight="${_NC_}${_BD_}"
LineHeading="${_NC_}${_U_}"
LineComment="${_NC_}${_BD_}"
LineOther="${_NC_}"
LineVar="${_NC_}"
LineModifiedVar="${_NC_}${_RV_}"
LineAddVariable="${_NC_}${_RV_}"
ListDefault=""
ListApp=""
ListAppUserDefined="${_RV_}"
CommandLine="${_NC_}"
KeyCap="${_NC_}${_RV_}"
ProgressWaiting="${_NC_}"
ProgressInProgress="${_NC_}${_BD_}"
ProgressCompleted="${_NC_}${_RV_}"
# {{[blue]}} Blue
# {{[cyan]}} Cyan
# {{[green]}} Green
# {{[black]}} Black
# {{[magenta]}} Magenta
# {{[red]}} Red
# {{[white]}} White
# {{[yellow]}} Yellow
# {{[::R]}} Reverse
# {{[::r]}} No Reverse
# {{[::B]}} Bold
# {{[::b]}} No Bold
# {{[::U]}} Underline
# {{[::u]}} No Underline
# {{[-]}} No Color

[metadata]
name = "BlackandWhite"
description = "The pure Black and White theme"
author = "Westlin"


[syntax]
semantic_prefix = "{{|"
semantic_suffix = "|}}"
direct_prefix = "{{["
direct_suffix = "]}}"

[colors]
ApplicationName = "{{[-]}}{{[::R]}}"
ApplicationVersion = "{{|ApplicationName|}}"
ApplicationVersionBrackets = "{{|ApplicationName|}}"
ApplicationVersionSpace = "{{[-]}}"
ApplicationFlags = "{{[-]}}{{[::b]}}"
ApplicationFlagsBrackets = "{{[-]}}{{[::R]}}"
ApplicationFlagsSpace = "{{[-]}}{{[::R]}}"
ApplicationUpdate = "{{[-]}}"
ApplicationUpdateBrackets = "{{[-]}}"
Hostname = "{{|ApplicationName|}}"
Title = "{{[-]}}{{[::U]}}"
Subtitle = "{{[-]}}{{[::R]}}"
TitleSuccess = "{{[-]}}{{[::R]}}"
TitleError = "{{[-]}}{{[::RB]}}"
TitleWarning = "{{[-]}}{{[::R]}}"
TitleQuestion = "{{[-]}}{{[::R]}}"
Heading = "{{[-]}}{{[::R]}}"
HeadingTag = "{{[-]}}{{[::B]}}"
HeadingValue = "{{[-]}}{{[::BU]}}"
HeadingAppDescription = "{{[-]}}"
Highlight = "{{[-]}}{{[::B]}}"
LineHeading = "{{[-]}}{{[::U]}}"
LineComment = "{{[-]}}{{[::B]}}"
LineOther = "{{[-]}}"
LineVar = "{{[-]}}"
ModifiedText = "{{[-]}}{{[::R]}}"
LineAddVariable = "{{[-]}}{{[::R]}}"
ListDefault = ""
ListApp = ""
ListAppUserDefined = "{{[-]}}{{[::R]}}"
CommandLine = "{{[-]}}"
KeyCap = "{{[-]}}{{[::R]}}"
ProgressWaiting = "{{[-]}}"
ProgressInProgress = "{{[-]}}{{[::B]}}"
ProgressCompleted = "{{[-]}}{{[::R]}}"


<==> .dialogrc
# $Id: debian.rc,v 1.7 2011/10/15 01:00:09 tom Exp $
Expand Down
124 changes: 67 additions & 57 deletions assets/themes/Debian.dstheme
Original file line number Diff line number Diff line change
@@ -1,65 +1,75 @@
<==> theme.ini
<==> theme.toml
#
# DockSTARTer theme file
# theme.ini
# theme.toml
#
# Color List:
#
# ${_B_} Blue
# ${_C_} Cyan
# ${_G_} Green
# ${_K_} Black
# ${_M_} Magenta
# ${_R_} Red
# ${_W_} White
# ${_Y_} Yellow
# ${_RV_} Reverse
# ${_NRV_} No Reverse
# ${_BD_} Bold
# ${_NBD_} No Bold
# ${_U_} Underline
# ${_NU_} No Underline
# ${_NC_} No Color

ThemeName='Debian'
ThemeDescription='Debian colors'
ThemeAuthor='CLHatch'

ApplicationName="${_NC_}${_RV_}"
ApplicationVersion="${_NC_}${_RV_}"
ApplicationVersionBrackets="${_NC_}${_RV_}"
ApplicationVersionSpace="${_NC_}"
ApplicationFlags="${_NC_}${_NBD_}"
ApplicationFlagsBrackets="${_NC_}${_RV_}"
ApplicationFlagsSpace="${_NC_}${_RV_}"
ApplicationUpdate="${_NC_}"
ApplicationUpdateBrackets="${_NC_}"
Hostname="${_NC_}${_RV_}"
Title="${_NC_}${_NBD_}${_U_}"
Subtitle="${_NC_}${_RV_}"
TitleSuccess="${_NC_}${_G_}${_U_}${_RV_}"
TitleError="${_NC_}${_R_}${_U_}${_RV_}"
TitleWarning="${_NC_}${_Y_}${_U_}"
TitleQuestion="${_NC_}${_Y_}${_U_}"
Heading="${_NC_}${_RV_}"
HeadingTag="${_NC_}${_BD_}"
HeadingValue="${_NC_}${_BD_}${_U_}"
HeadingAppDescription="${_NC_}"
Highlight="${_NC_}${_BD_}"
LineHeading="${_NC_}${_U_}"
LineComment="${_NC_}${_BD_}"
LineOther="${_NC_}"
LineVar="${_NC_}"
LineModifiedVar="${_NC_}${_RV_}"
LineAddVariable="${_NC_}${_RV_}"
ListDefault=""
ListApp=""
ListAppUserDefined="${_RV_}"
CommandLine="${_NC_}"
KeyCap="${_NC_}${_RV_}"
ProgressWaiting="${_NC_}"
ProgressInProgress="${_NC_}${_BD_}"
ProgressCompleted="${_NC_}${_RV_}"
# {{[blue]}} Blue
# {{[cyan]}} Cyan
# {{[green]}} Green
# {{[black]}} Black
# {{[magenta]}} Magenta
# {{[red]}} Red
# {{[white]}} White
# {{[yellow]}} Yellow
# {{[::R]}} Reverse
# {{[::r]}} No Reverse
# {{[::B]}} Bold
# {{[::b]}} No Bold
# {{[::U]}} Underline
# {{[::u]}} No Underline
# {{[-]}} No Color

[metadata]
name = "Debian"
description = "Debian colors"
author = "CLHatch"


[syntax]
semantic_prefix = "{{|"
semantic_suffix = "|}}"
direct_prefix = "{{["
direct_suffix = "]}}"

[colors]
ApplicationName = "{{[-]}}{{[::R]}}"
ApplicationVersion = "{{|ApplicationName|}}"
ApplicationVersionBrackets = "{{|ApplicationName|}}"
ApplicationVersionSpace = "{{[-]}}"
ApplicationFlags = "{{[-]}}{{[::b]}}"
ApplicationFlagsBrackets = "{{[-]}}{{[::R]}}"
ApplicationFlagsSpace = "{{[-]}}{{[::R]}}"
ApplicationUpdate = "{{[-]}}"
ApplicationUpdateBrackets = "{{[-]}}"
Hostname = "{{|ApplicationName|}}"
Title = "{{[-]}}{{[::bU]}}"
Subtitle = "{{[-]}}{{[::R]}}"
TitleSuccess = "{{[-]}}{{[green::UR]}}"
TitleError = "{{[-]}}{{[red::UR]}}"
TitleWarning = "{{[-]}}{{[yellow::U]}}"
TitleQuestion = "{{[-]}}{{[yellow::U]}}"
Heading = "{{[-]}}{{[::R]}}"
HeadingTag = "{{[-]}}{{[::B]}}"
HeadingValue = "{{[-]}}{{[::BU]}}"
HeadingAppDescription = "{{[-]}}"
Highlight = "{{[-]}}{{[::B]}}"
LineHeading = "{{[-]}}{{[::U]}}"
LineComment = "{{[-]}}{{[::B]}}"
LineOther = "{{[-]}}"
LineVar = "{{[-]}}"
ModifiedText = "{{[-]}}{{[::R]}}"
LineAddVariable = "{{[-]}}{{[::R]}}"
ListDefault = ""
ListApp = ""
ListAppUserDefined = "{{[-]}}{{[::R]}}"
CommandLine = "{{[-]}}"
KeyCap = "{{[-]}}{{[::R]}}"
ProgressWaiting = "{{[-]}}"
ProgressInProgress = "{{[-]}}{{[::B]}}"
ProgressCompleted = "{{[-]}}{{[::R]}}"


<==> .dialogrc
# $Id: debian.rc,v 1.7 2011/10/15 01:00:09 tom Exp $
Expand Down
Loading
Loading