From 5c861865577771e17d657cadfde6d1b5dd2f240b Mon Sep 17 00:00:00 2001 From: 0xAtharv Date: Sun, 1 Oct 2023 19:43:09 +0530 Subject: [PATCH 1/5] [ADD] added a readme --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9f43a38 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# TCET Linux Set Once + +TCET Linux Set Once is a package in the [tcet-linux-repo](https://github.com/tcet-opensource/tcet-linux-repo) which is used to set certain configurations in [*TCET Linux*](https://github.com/tcet-opensource/tcet-linux). + + +## Working + +When the package is installed it will copy the [*set_once_xfce4.desktop*](https://github.com/tcet-opensource/tcet-linux-set-once/blob/main/etc/skel/.config/autostart/set_once_xfce4.desktop) to the ~/.config/autostart folder which will execute the [*set_once_xfce4.sh*](https://github.com/tcet-opensource/tcet-linux-set-once/blob/main/etc/skel/set_once_xfce4.sh) + + +**set_once_xfce4.sh** +```bash +#!/bin/sh + +# For xed line count +dbus-launch dconf load / < ~/xed.dconf + +# For setting calamares.desktop as trusted +for f in ~/Desktop/calamares.desktop; do chmod +x "$f"; gio set -t string "$f" metadata::xfce-exe-checksum "$(sha256sum "$f" | awk '{print $1}')"; done + +# Removing script and set_once_xfce4.desktop +rm ~/xed.dconf ~/.config/autostart/set_once_xfce4.desktop ~/set_once_xfce4.sh +``` + +## Credits + +We would like to give our sincere thanks to the [*EOS Project*](https://github.com/endeavouros-team) . This package was inspired by a package similar to one made by Endeavour OS. \ No newline at end of file From cb1f2f8925055157e77886f55c2855831949dc16 Mon Sep 17 00:00:00 2001 From: 0xAtharv Date: Sun, 1 Oct 2023 19:44:27 +0530 Subject: [PATCH 2/5] [UPDATE] added consistency. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f43a38..cd1d518 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # TCET Linux Set Once -TCET Linux Set Once is a package in the [tcet-linux-repo](https://github.com/tcet-opensource/tcet-linux-repo) which is used to set certain configurations in [*TCET Linux*](https://github.com/tcet-opensource/tcet-linux). +TCET Linux Set Once is a package in the [*tcet-linux-repo*](https://github.com/tcet-opensource/tcet-linux-repo) which is used to set certain configurations in [*TCET Linux*](https://github.com/tcet-opensource/tcet-linux). ## Working From 2fa1f22080686b0ab3cad9a1b29a9f33604ef192 Mon Sep 17 00:00:00 2001 From: 0xAtharv Date: Sun, 1 Oct 2023 20:32:58 +0530 Subject: [PATCH 3/5] [ADD] explained working in detail. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index cd1d518..1d252c8 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,22 @@ for f in ~/Desktop/calamares.desktop; do chmod +x "$f"; gio set -t string "$f" m rm ~/xed.dconf ~/.config/autostart/set_once_xfce4.desktop ~/set_once_xfce4.sh ``` +**xed.dconf** +```bash +[org/x/editor/preferences/editor] +bracket-matching=false +display-line-numbers=true +prefer-dark-theme=true +scheme='cobalt' +wrap-mode='none' +``` + +- This script when executed will load the xed text editor's configuration from [*xed.dconf*](https://github.com/tcet-opensource/tcet-linux-set-once/blob/main/etc/skel/xed.dconf).These configurations include things like line count , theme , etc. + +- It will mark *calamares.desktop* as a trusted file by adding its sha256sum to the *calamares.desktop's* metadata. + +- And finally it will remove the dconf file and .desktop from their locations. + ## Credits We would like to give our sincere thanks to the [*EOS Project*](https://github.com/endeavouros-team) . This package was inspired by a package similar to one made by Endeavour OS. \ No newline at end of file From 6a7116f2dd843aef7300531d0152aa3dfd18d14a Mon Sep 17 00:00:00 2001 From: 0xAtharv Date: Sun, 1 Oct 2023 20:34:41 +0530 Subject: [PATCH 4/5] [add] added spaces --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d252c8..ef95482 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ scheme='cobalt' wrap-mode='none' ``` -- This script when executed will load the xed text editor's configuration from [*xed.dconf*](https://github.com/tcet-opensource/tcet-linux-set-once/blob/main/etc/skel/xed.dconf).These configurations include things like line count , theme , etc. +- This script when executed will load the xed text editor's configuration from [*xed.dconf*](https://github.com/tcet-opensource/tcet-linux-set-once/blob/main/etc/skel/xed.dconf) . These configurations include things like line count , theme , etc. - It will mark *calamares.desktop* as a trusted file by adding its sha256sum to the *calamares.desktop's* metadata. From 7969a9cfcedf2bc6d4105af77fe482cd0874c5d1 Mon Sep 17 00:00:00 2001 From: 0xAtharv Date: Sun, 1 Oct 2023 20:40:19 +0530 Subject: [PATCH 5/5] [ADD] added file names --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef95482..341f69b 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ wrap-mode='none' - It will mark *calamares.desktop* as a trusted file by adding its sha256sum to the *calamares.desktop's* metadata. -- And finally it will remove the dconf file and .desktop from their locations. +- And finally it will remove the xed.dconf , set_once_xfce4.sh and set_once_xfce4.desktop from their respective locations. ## Credits