mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 12:48:01 +00:00
Add autoload to install.sh for dconf config files
This commit is contained in:
parent
9f98ffc84d
commit
f86b8bb1b8
37
dconf/dash-to-panel.ini
Normal file
37
dconf/dash-to-panel.ini
Normal 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'
|
@ -1,5 +1,4 @@
|
|||||||
# dconf dump /com/gexperts/Tilix/ > tilix.ini
|
# dconf-path=/com/gexperts/Tilix/
|
||||||
# dconf load /com/gexperts/Tilix/ < tilix.ini
|
|
||||||
|
|
||||||
[/]
|
[/]
|
||||||
enable-wide-handle=false
|
enable-wide-handle=false
|
||||||
|
58
install.sh
58
install.sh
@ -1,26 +1,50 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd $(dirname $0)
|
set -e
|
||||||
|
|
||||||
echo "Installing dot files..."
|
function dotfiles()
|
||||||
|
{
|
||||||
|
echo "[INFO] Installing dot files..."
|
||||||
|
|
||||||
rsync --exclude "dconf/" \
|
rsync --exclude "dconf/" \
|
||||||
--exclude ".vscode/" \
|
--exclude ".vscode/" \
|
||||||
--exclude "install.sh" \
|
--exclude "install.sh" \
|
||||||
--exclude "LICENSE" \
|
--exclude "LICENSE" \
|
||||||
--exclude "README.md" \
|
--exclude "README.md" \
|
||||||
-hla --no-perms . ~
|
-hla --no-perms . ~
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
}
|
||||||
|
|
||||||
if which dconf >/dev/null 2>&1; then
|
function dconf_loader()
|
||||||
echo -e "[INFO] Loading tilix config..."
|
{
|
||||||
dconf load /com/gexperts/Tilix/ < dconf/tilix.ini
|
local file
|
||||||
else
|
local dconf_path
|
||||||
echo "[WARNING] dconf command not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user