#!/bin/bash
# 
# Author: Yaşar Çiv <yasarciv67@gmail.com>

# Kopyalanacak Dosyalar
cp /root/ayarlar/milislogo.png /usr/share/icons/

# Metin Düzenleyici Seçenekleri
/usr/bin/dconf write /org/mate/pluma/display-line-numbers true
echo "Metin düzenleyici ayarlandı"

# Masaustu secenekleri
/usr/bin/dconf write /org/mate/desktop/background/picture-filename "'/usr/share/backgrounds/milis/milis-arkaplan1.png'"
/usr/bin/dconf write /org/mate/desktop/interface/gtk-theme "'BlueMenta'"
/usr/bin/dconf write /org/mate/desktop/interface/icon-theme "'matefaenza'"
/usr/bin/dconf write /org/mate/desktop/peripherals/mouse/cursor-theme "'mate'"
# /usr/bin/dconf write /org/mate/desktop/interface/document-font-name "'FreeSans 10'"
# /usr/bin/dconf write /org/mate/desktop/interface/font-name "'FreeSans 10'"
echo "Masaüstü ayarları yapıldı"

# Pencere Yöneticisi Seçenekleri
/usr/bin/dconf write /org/mate/marco/general/theme "'BlueMenta'"
/usr/bin/dconf write /org/mate/marco/general/num-workspaces "'1'"
echo "Pencere ayarları yapıldı"

# Terminal Seçenekleri
/usr/bin/dconf write /org/mate/terminal/profiles/default/use-theme-colors false
/usr/bin/dconf write /org/mate/terminal/profiles/default/background-color "'#000000000000'"
/usr/bin/dconf write /org/mate/terminal/profiles/default/bold-color "'#000000000000'"
/usr/bin/dconf write /org/mate/terminal/profiles/default/foreground-color "'#FFFFFFFFFFFF'"
/usr/bin/dconf write /org/mate/terminal/profiles/default/palette "'#2E2E34343636:#CCCC00000000:#4E4E9A9A0606:#C4C4A0A00000:#34346565A4A4:#757550507B7B:#060698209A9A:#D3D3D7D7CFCF:#555557575353:#EFEF29292929:#8A8AE2E23434:#FCFCE9E94F4F:#72729F9FCFCF:#ADAD7F7FA8A8:#3434E2E2E2E2:#EEEEEEEEECEC'"
/usr/bin/dconf write /org/mate/terminal/profiles/default/use-system-font true
/usr/bin/dconf write /org/mate/terminal/profiles/default/visible-name "'Varsayılan'"
echo "Terminal görünümü ayarlandı"

# Caja seçenekleri
/usr/bin/dconf write /org/mate/caja/desktop/home-icon-name "'Ev Dizini'"
echo "Ev Dizini ismi değiştirildi"

# Panel Seçenekleri
/usr/bin/dconf write /org/mate/panel/objects/object-0/locked true
/usr/bin/dconf write /org/mate/panel/objects/object-0/object-type "'menu'"
/usr/bin/dconf write /org/mate/panel/objects/object-0/panel-right-stick false
/usr/bin/dconf write /org/mate/panel/objects/object-0/position "0"
/usr/bin/dconf write /org/mate/panel/objects/object-0/tooltip "'Ana Menü'"
/usr/bin/dconf write /org/mate/panel/objects/object-0/toplevel-id "'top'"
/usr/bin/dconf write /org/mate/panel/objects/object-0/use-menu-path false

/usr/bin/dconf write /org/mate/panel/objects/object-1/applet-iid "'WnckletFactory::ShowDesktopApplet'"
/usr/bin/dconf write /org/mate/panel/objects/object-1/locked true
/usr/bin/dconf write /org/mate/panel/objects/object-1/object-type "'applet'"
/usr/bin/dconf write /org/mate/panel/objects/object-1/panel-right-stick false
/usr/bin/dconf write /org/mate/panel/objects/object-1/position "42"
/usr/bin/dconf write /org/mate/panel/objects/object-1/toplevel-id "'top'"

/usr/bin/dconf write /org/mate/panel/objects/object-2/launcher-location "'/usr/share/applications/opera.desktop'"
/usr/bin/dconf write /org/mate/panel/objects/object-2/locked true
/usr/bin/dconf write /org/mate/panel/objects/object-2/object-type "'launcher'"
/usr/bin/dconf write /org/mate/panel/objects/object-2/panel-right-stick false
/usr/bin/dconf write /org/mate/panel/objects/object-2/position "65"
/usr/bin/dconf write /org/mate/panel/objects/object-2/toplevel-id "'top'"

/usr/bin/dconf write /org/mate/panel/objects/object-3/action-type "'search'"
/usr/bin/dconf write /org/mate/panel/objects/object-3/locked true
/usr/bin/dconf write /org/mate/panel/objects/object-3/object-type "'action'"
/usr/bin/dconf write /org/mate/panel/objects/object-3/panel-right-stick false
/usr/bin/dconf write /org/mate/panel/objects/object-3/position "93"
/usr/bin/dconf write /org/mate/panel/objects/object-3/toplevel-id "'top'"

/usr/bin/dconf write /org/mate/panel/objects/object-4/applet-iid "'WnckletFactory::WindowListApplet'"
/usr/bin/dconf write /org/mate/panel/objects/object-4/locked true
/usr/bin/dconf write /org/mate/panel/objects/object-4/object-type "'applet'"
/usr/bin/dconf write /org/mate/panel/objects/object-4/panel-right-stick false
/usr/bin/dconf write /org/mate/panel/objects/object-4/position "121"
/usr/bin/dconf write /org/mate/panel/objects/object-4/toplevel-id "'top'"

/usr/bin/dconf write /org/mate/panel/objects/object-5/applet-iid "'NotificationAreaAppletFactory::NotificationArea'"
/usr/bin/dconf write /org/mate/panel/objects/object-5/locked true
/usr/bin/dconf write /org/mate/panel/objects/object-5/object-type "'applet'"
/usr/bin/dconf write /org/mate/panel/objects/object-5/panel-right-stick true
/usr/bin/dconf write /org/mate/panel/objects/object-5/position "180"
/usr/bin/dconf write /org/mate/panel/objects/object-5/toplevel-id "'top'"

/usr/bin/dconf write /org/mate/panel/objects/object-6/applet-iid "'ClockAppletFactory::ClockApplet'"
/usr/bin/dconf write /org/mate/panel/objects/object-6/locked true
/usr/bin/dconf write /org/mate/panel/objects/object-6/object-type "'applet'"
/usr/bin/dconf write /org/mate/panel/objects/object-6/panel-right-stick true
/usr/bin/dconf write /org/mate/panel/objects/object-6/position "117"
/usr/bin/dconf write /org/mate/panel/objects/object-6/prefs/custom-format "''"
/usr/bin/dconf write /org/mate/panel/objects/object-6/prefs/format "'24-hour'"
/usr/bin/dconf write /org/mate/panel/objects/object-6/toplevel-id "'top'"

/usr/bin/dconf write /org/mate/panel/toplevels/top/background/color "'rgb(255,255,255)'"
/usr/bin/dconf write /org/mate/panel/toplevels/top/background/type "'none'"
/usr/bin/dconf write /org/mate/panel/toplevels/top/enable-buttons false
/usr/bin/dconf write /org/mate/panel/toplevels/top/expand true
/usr/bin/dconf write /org/mate/panel/toplevels/top/orientation "'bottom'"
/usr/bin/dconf write /org/mate/panel/toplevels/top/screen "0"
/usr/bin/dconf write /org/mate/panel/toplevels/top/size "28"
/usr/bin/dconf write /org/mate/panel/toplevels/top/y "740"
/usr/bin/dconf write /org/mate/panel/toplevels/top/y-bottom "0"

/usr/bin/dconf write /org/mate/panel/general/object-id-list "['object-0', 'object-1', 'object-2', 'object-3', 'object-4', 'object-5', 'object-6']"
/usr/bin/dconf write /org/mate/panel/general/toplevel-id-list "['top']"
/usr/bin/dconf write /org/mate/panel/menubar/icon-name "'milislogo'"
echo "Panel ayarları yapıldı"
echo "Mate ayarları yapılandırıldı"

# Bitti
