Skip to content

Conversation

guruswarupa
Copy link
Contributor

@guruswarupa guruswarupa commented Sep 18, 2024

Pull Request

Changes Made

  • brightness control added into Monitor control util
  • auto-login feature for display managers added. Fixes [Feature request] Add Enable/Disable auto login option #182
  • added {Create Bootable Pendrive} (using dd command by selecting iso) into utils
  • the pendrive maker downloads iso from https://archive.archlinux.org/iso/ for arch and official debian website through curl
  • sorted the older iso to not show up too old iso's which have different naming convention for the iso file. starts from (2017.04.01)
  • auto power profiling using auto-cpufreq for desktops and laptops (Feature Request from youtube comments).
  • Timeshift backup util added.
  • samba-ssh server setup script (Feature Request from youtube comments).

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no errors/warnings/merge conflicts.

if [ "$SKIP_GRUB" = "yes" ]; then
$ESCALATION_TOOL timeshift --restore --snapshot "$SNAPSHOT" --target-device "$TARGET_DEVICE" --skip-grub --yes
else
read -p "Enter GRUB device (e.g., /dev/sda): " GRUB_DEVICE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bashism: read with option other than -r

delete_snapshot() {
list_snapshots

read -p "Enter the snapshot name you want to delete: " SNAPSHOT
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bashism: read with option other than -r

# Function to delete all snapshots
delete_all_snapshots() {
echo "WARNING: This will delete all snapshots!"
read -p "Are you sure? (yes/no): " CONFIRMATION
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bashism: read with option other than -r

main_menu() {
while true; do
display_menu
read -p "Select an option (1-7): " OPTION
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bashism: read with option other than -r

*) echo "Invalid option. Please try again." ;;
esac

read -p "Press Enter to continue..."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bashism: read with option other than -r

guruswarupa and others added 14 commits September 18, 2024 21:54
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>
Co-authored-by: Adam Perkowski <adas1per@protonmail.com>

setup_ssh_samba(){
echo "Samba and SSH Setup Script"
echo "----------------------------"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "----------------------------"
printf "\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\n"

display_menu() {
clear
echo "Timeshift CLI Automation"
echo "-------------------------"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "-------------------------"
printf "\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\n"


setup_ssh_samba(){
echo "Samba and SSH Setup Script"
echo "----------------------------"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo "----------------------------"
printf "\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\n"

@ChrisTitusTech ChrisTitusTech merged commit 62093df into ChrisTitusTech:main Sep 18, 2024
2 checks passed
@ChrisTitusTech ChrisTitusTech added the bug Something isn't working label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] Add Enable/Disable auto login option
3 participants