From 563ce9f013a9aaf078952f8ec14c7c7cd1293897 Mon Sep 17 00:00:00 2001 From: pika Date: Fri, 21 Mar 2025 19:31:38 +0100 Subject: [PATCH] fixed installation script. like.. hopefully.. --- install.sh | 142 ++++++++++++++++++++++++++++------------------------- 1 file changed, 74 insertions(+), 68 deletions(-) diff --git a/install.sh b/install.sh index cd76ee0..167c227 100755 --- a/install.sh +++ b/install.sh @@ -1,9 +1,4 @@ -#!/bin/sh - -# defaults -menu="tofi" -ls="eza" -files="nautilus" +#!/usr/bin/env bash # ANSI color codes RED='\033[0;31m' @@ -29,10 +24,6 @@ echo_note() { printf "${BOLD}${LIGHT_GREEN}NOTE: ${NC}${LIGHT_GREEN}%s${NC}\n" "$1" } -command_exists() { - command -v "$1" >/dev/null 2>&1 -} - # ─< Check if the given command exists silently >───────────────────────────────────────── command_exists() { command -v "$@" >/dev/null 2>&1 @@ -96,12 +87,11 @@ silentexec() { "$@" >/dev/null 2>&1 } -pre_stow() { - echo_note "pre_stow" +__pre_stow__() { + echo_note "__pre_stow__" conf="$HOME/.config" bak_dir="$HOME/.bak" dirs=" - alacritty btop zsh gBar @@ -133,14 +123,12 @@ pre_stow() { done h_files=" - .bashrc .zshrc .tmux.conf .wezterm.lua " h_dirs=" - .qfc .tmux .zsh .icons @@ -165,52 +153,80 @@ pre_stow() { } askThings() { - menu="" - ls="" - files="" - echo_info "Choose a menu - [r]ofi || [t]ofi" read -r askMenu "$HOME/.monitors.conf" + echo "monitor = eDP-1, ${res}, 0x0, 1" >"$HOME/.monitors.conf" fi } -_optional() { - echo_info "Do you also want to install optional packages? (y/n)" - read -r optional_