From dadf791001ee988a8553b8723ff939c865e96348 Mon Sep 17 00:00:00 2001 From: Akash6222 Date: Wed, 14 Feb 2024 03:05:01 +0530 Subject: [PATCH] Added gnome set once desktop to autostart on starup and script to load --- .../.config/autostart/gnome_set_once.desktop | 17 +++++++++++++++++ etc/skel/gnome_set_once.sh | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100755 etc/skel/.config/autostart/gnome_set_once.desktop create mode 100755 etc/skel/gnome_set_once.sh diff --git a/etc/skel/.config/autostart/gnome_set_once.desktop b/etc/skel/.config/autostart/gnome_set_once.desktop new file mode 100755 index 0000000..04b3bbd --- /dev/null +++ b/etc/skel/.config/autostart/gnome_set_once.desktop @@ -0,0 +1,17 @@ +[Desktop Entry] +Comment[en_US]=Loads GNOME settings at first start +Comment=Loads GNOME settings at first start +Exec=sh -c ~/gnome_set_once.sh +GenericName[en_US]= +GenericName= +Icon=variety +MimeType= +Name[en_US]=Dconf Loader +Name=Dconf Loader +Path= +StartupNotify=true +Terminal=false +TerminalOptions= +Type=Application +X-KDE-SubstituteUID=false +X-KDE-Username= diff --git a/etc/skel/gnome_set_once.sh b/etc/skel/gnome_set_once.sh new file mode 100755 index 0000000..590fcd6 --- /dev/null +++ b/etc/skel/gnome_set_once.sh @@ -0,0 +1,9 @@ +#!/bin/sh +gsettings set org.gnome.desktop.interface color-scheme prefer-dark +gsettings set org.gnome.Console use-system-font false +gsettings set org.gnome.Console custom-font 'JetBrainsMonoNL Nerd Font 12' +gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ use-system-font false +gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/ font 'JetBrainsMono Nerd Font 12' + +# Removing script and gnome_set_once.desktop +rm ~/.config/autostart/gnome_set_once.desktop ~/gnome_set_once.sh