1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 08:08:00 +00:00

Add autoload to install.sh for dconf config files

This commit is contained in:
Daniel Carrillo 2019-07-18 19:42:05 +02:00
parent 9f98ffc84d
commit f86b8bb1b8
3 changed files with 79 additions and 19 deletions

37
dconf/dash-to-panel.ini Normal file
View File

@ -0,0 +1,37 @@
# dconf-path=/org/gnome/shell/extensions/dash-to-panel/
[/]
appicon-margin=1
appicon-padding=1
dot-color-1='#5294e2'
dot-color-2='#5294e2'
dot-color-3='#5294e2'
dot-color-4='#5294e2'
dot-color-override=false
dot-color-unfocused-1='#5294e2'
dot-color-unfocused-2='#5294e2'
dot-color-unfocused-3='#5294e2'
dot-color-unfocused-4='#5294e2'
dot-size=0
dot-style-focused='METRO'
dot-style-unfocused='METRO'
focus-highlight-color='#12e2d1'
group-apps=false
group-apps-label-font-color='#dddddd'
group-apps-label-font-size=14
group-apps-label-font-weight='inherit'
group-apps-label-max-width=0
hotkeys-overlay-combo='TEMPORARILY'
location-clock='BUTTONSRIGHT'
middle-click-action='QUIT'
panel-position='TOP'
panel-size=22
shift-click-action='MINIMIZE'
shift-middle-click-action='LAUNCH'
show-activities-button=true
show-appmenu=false
show-favorites=false
show-show-apps-button=false
show-showdesktop-button=false
stockgs-keep-dash=true
taskbar-position='LEFTPANEL_FIXEDCENTER'

View File

@ -1,5 +1,4 @@
# dconf dump /com/gexperts/Tilix/ > tilix.ini
# dconf load /com/gexperts/Tilix/ < tilix.ini
# dconf-path=/com/gexperts/Tilix/
[/]
enable-wide-handle=false

View File

@ -1,26 +1,50 @@
#!/usr/bin/env bash
cd $(dirname $0)
set -e
echo "Installing dot files..."
function dotfiles()
{
echo "[INFO] Installing dot files..."
rsync --exclude "dconf/" \
--exclude ".vscode/" \
--exclude "install.sh" \
--exclude "LICENSE" \
--exclude "README.md" \
-hla --no-perms . ~
rsync --exclude "dconf/" \
--exclude ".vscode/" \
--exclude "install.sh" \
--exclude "LICENSE" \
--exclude "README.md" \
-hla --no-perms . ~
echo ""
echo ""
}
if which dconf >/dev/null 2>&1; then
echo -e "[INFO] Loading tilix config..."
dconf load /com/gexperts/Tilix/ < dconf/tilix.ini
else
echo "[WARNING] dconf command not found"
fi
function dconf_loader()
{
local file
local dconf_path
echo ""
if ! which dconf > /dev/null 2>&1; then
echo "[WARNING] dconf command not found"
echo ""
return 1
else
for file in dconf/*; do
echo -e "[INFO] Loading $(basename $file) config..."
dconf_path=$(egrep -m1 '^#.+dconf-path=.+$' $file | cut -f2 -d "=")
dconf load $dconf_path < $file
done
fi
cd - > /dev/null
echo ""
}
function main()
{
cd $(dirname $0)
dotfiles
dconf_loader
cd - > /dev/null
}
main