diff --git a/README.md b/README.md index ca07d5d..fa5305d 100755 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ We already have so many mods and styles for our desktops, but I usually need to - Arch Linux (And based systems) ### ScreenShots -![default_screenshot](resources/img/default_screenshot.png "Visualização de tela cheia") -![default_screenshot2](resources/img/default_screenshot2.png "Visualização de aplicações") +![default_screenshot](https://qxdc.herokuapp.com/img/default_screenshot.png "Visualização de tela cheia") +![default_screenshot2](https://qxdc.herokuapp.com/img/default_screenshot2.png "Visualização de aplicações") ##### Added itens @@ -26,9 +26,7 @@ In resources/include/systemTools.sh and resources/include/installBaseApplication ##### View Install logs - If you wanna see the install logs report, just: - - tail -f /tmp/QXDCinstall.log + If you wanna see the install logs report, just look into /tmp/qxdc/ ###### Wordlists 1 - Refisefuquis -> In portuguese "Release de Fim de Semana e Fundo de Quintal", on a literal translation "Release from Weekend and Backyard", in simple words, releases with no suport, no inovations and no proposits, just a homemade adventure for a develover with time and a computer available. diff --git a/install.sh b/install.sh index 7ba4147..a5e3150 100755 --- a/install.sh +++ b/install.sh @@ -3,21 +3,30 @@ # since: 0.0.1 # version: 0.0.2 # created: ____-__-__ -# modified: 2021-09-11 +# modified: 2022-07-28 # -ROOTDIR=$(pwd) + source ./resources/include/load.sh -# Removendo aplicações indesejadas -# adicione o nome do novo pacote à lista para desinstalar -load systemPurge + +#define variaveis do sistema +ROOTDIR=$(pwd) +DISTRO= load checkDistro + + +load logger + + # Instalando aplicações básica # adicione o nome do novo pacote à lista para instalar load installBaseApplications +# Removendo aplicações indesejadas +# adicione o nome do novo pacote à lista para desinstalar +load systemPurge #instalando editor -#load installVSCode +load installVSCode #instalando o Google Chrome -#load installGoogleChrome +load installGoogleChrome # Instalando tema GTK e ícones load installThemes cd $ROOTDIR diff --git a/resources/dotfiles/.bashrc b/resources/dotfiles/.bashrc deleted file mode 100644 index 29af812..0000000 --- a/resources/dotfiles/.bashrc +++ /dev/null @@ -1,114 +0,0 @@ -# ~/.bashrc: executed by bash(1) for non-login shells. -# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) -# for examples - -# If not running interactively, don't do anything -case $- in - *i*) ;; - *) return;; -esac - -# don't put duplicate lines or lines starting with space in the history. -# See bash(1) for more options -HISTCONTROL=ignoreboth - -# append to the history file, don't overwrite it -shopt -s histappend - -# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) -HISTSIZE=1000 -HISTFILESIZE=2000 - -# check the window size after each command and, if necessary, -# update the values of LINES and COLUMNS. -shopt -s checkwinsize - -# If set, the pattern "**" used in a pathname expansion context will -# match all files and zero or more directories and subdirectories. -#shopt -s globstar - -# make less more friendly for non-text input files, see lesspipe(1) -#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" - -# set variable identifying the chroot you work in (used in the prompt below) -if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then - debian_chroot=$(cat /etc/debian_chroot) -fi - -# set a fancy prompt (non-color, unless we know we "want" color) -case "$TERM" in - xterm-color|*-256color) color_prompt=yes;; -esac - -# uncomment for a colored prompt, if the terminal has the capability; turned -# off by default to not distract the user: the focus in a terminal window -# should be on the output of commands, not on the prompt -#force_color_prompt=yes - -if [ -n "$force_color_prompt" ]; then - if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then - # We have color support; assume it's compliant with Ecma-48 - # (ISO/IEC-6429). (Lack of such support is extremely rare, and such - # a case would tend to support setf rather than setaf.) - color_prompt=yes - else - color_prompt= - fi -fi - -if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' -else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' -fi -unset color_prompt force_color_prompt - -# If this is an xterm set the title to user@host:dir -case "$TERM" in -xterm*|rxvt*) - PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" - ;; -*) - ;; -esac - -# enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - #alias dir='dir --color=auto' - #alias vdir='vdir --color=auto' - - #alias grep='grep --color=auto' - #alias fgrep='fgrep --color=auto' - #alias egrep='egrep --color=auto' -fi - -# colored GCC warnings and errors -#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' - -# some more ls aliases -#alias ll='ls -l' -#alias la='ls -A' -#alias l='ls -CF' - -# Alias definitions. -# You may want to put all your additions into a separate file like -# ~/.bash_aliases, instead of adding them here directly. -# See /usr/share/doc/bash-doc/examples in the bash-doc package. - -if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases -fi - -# enable programmable completion features (you don't need to enable -# this, if it's already enabled in /etc/bash.bashrc and /etc/profile -# sources /etc/bash.bashrc). -if ! shopt -oq posix; then - if [ -f /usr/share/bash-completion/bash_completion ]; then - . /usr/share/bash-completion/bash_completion - elif [ -f /etc/bash_completion ]; then - . /etc/bash_completion - fi -fi -neofetch diff --git a/resources/dotfiles/.config/Thunar/accels.scm b/resources/dotfiles/.config/Thunar/accels.scm deleted file mode 100644 index e129612..0000000 --- a/resources/dotfiles/.config/Thunar/accels.scm +++ /dev/null @@ -1,80 +0,0 @@ -; Thunar GtkAccelMap rc-file -*- scheme -*- -; this file is an automated accelerator map dump -; -; (gtk_accel_path "/ThunarLauncher/sendto-desktop" "") -; (gtk_accel_path "/ThunarStandardView/create-folder" "n") -; (gtk_accel_path "/ThunarWindow/zoom-reset" "0") -; (gtk_accel_path "/ThunarWindow/view-side-pane-menu" "") -; (gtk_accel_path "/ThunarLauncher/open" "o") -; (gtk_accel_path "/ThunarWindow/open-home" "Home") -; (gtk_accel_path "/ThunarWindow/view-menu" "") -; (gtk_accel_path "/ThunarWindow/open-file-system" "") -; (gtk_accel_path "/ThunarShortcutsPane/sendto-shortcuts" "") -; (gtk_accel_path "/ThunarLocationButtons/location-buttons-down-folder" "Down") -; (gtk_accel_path "/ThunarWindow/switch-next-tab" "Page_Down") -; (gtk_accel_path "/ThunarWindow/go-menu" "") -; (gtk_accel_path "/ThunarWindow/zoom-out" "minus") -; (gtk_accel_path "/ThunarStandardView/paste" "v") -; (gtk_accel_path "/ThunarLauncher/open-with-menu" "") -; (gtk_accel_path "/ThunarWindow/help-menu" "") -; (gtk_accel_path "/ThunarWindow/file-menu" "") -; (gtk_accel_path "/ThunarLauncher/open-with-other-in-menu" "") -; (gtk_accel_path "/ThunarWindow/detach-tab" "") -; (gtk_accel_path "/ThunarLauncher/open-in-new-tab" "p") -; (gtk_accel_path "/ThunarStandardView/sort-by-name" "") -; (gtk_accel_path "/ThunarWindow/view-menubar" "m") -; (gtk_accel_path "/ThunarStandardView/back" "Left") -; (gtk_accel_path "/ThunarWindow/close-tab" "w") -; (gtk_accel_path "/ThunarWindow/view-as-compact-list" "3") -; (gtk_accel_path "/ThunarWindow/view-side-pane-tree" "e") -; (gtk_accel_path "/ThunarStandardView/restore" "") -; (gtk_accel_path "/ThunarWindow/open-network" "") -; (gtk_accel_path "/ThunarWindow/new-tab" "t") -; (gtk_accel_path "/ThunarWindow/preferences" "") -; (gtk_accel_path "/ThunarStandardView/rename" "F2") -; (gtk_accel_path "/ThunarStandardView/sort-by-size" "") -; (gtk_accel_path "/ThunarWindow/sendto-menu" "") -; (gtk_accel_path "/ThunarWindow/edit-menu" "") -; (gtk_accel_path "/ThunarLauncher/open-with-other" "") -; (gtk_accel_path "/ThunarWindow/view-location-selector-toolbar" "") -; (gtk_accel_path "/ThunarStandardView/invert-selection" "") -; (gtk_accel_path "/ThunarStandardView/make-link" "") -; (gtk_accel_path "/ThunarWindow/view-as-icons" "1") -; (gtk_accel_path "/ThunarStandardView/forward" "Right") -; (gtk_accel_path "/ThunarWindow/new-window" "n") -; (gtk_accel_path "/ThunarStandardView/move-to-trash" "") -; (gtk_accel_path "/ThunarStandardView/select-by-pattern" "s") -; (gtk_accel_path "/ThunarStandardView/duplicate" "") -; (gtk_accel_path "/ThunarActions/uca-action-1554820358111773-1" "") -; (gtk_accel_path "/ThunarWindow/about" "") -; (gtk_accel_path "/ThunarWindow/contents" "F1") -; (gtk_accel_path "/ThunarWindow/open-desktop" "") -; (gtk_accel_path "/ThunarWindow/close-all-windows" "w") -; (gtk_accel_path "/ThunarWindow/zoom-in" "plus") -; (gtk_accel_path "/ThunarWindow/switch-previous-tab" "Page_Up") -; (gtk_accel_path "/ThunarWindow/open-parent" "Up") -; (gtk_accel_path "/ThunarWindow/view-side-pane-shortcuts" "b") -; (gtk_accel_path "/ThunarWindow/reload" "r") -; (gtk_accel_path "/ThunarWindow/open-templates" "") -; (gtk_accel_path "/ThunarStandardView/copy" "c") -; (gtk_accel_path "/ThunarWindow/view-location-selector-pathbar" "") -; (gtk_accel_path "/ThunarWindow/open-trash" "") -; (gtk_accel_path "/ThunarStandardView/sort-descending" "") -; (gtk_accel_path "/ThunarStandardView/properties" "Return") -; (gtk_accel_path "/ThunarStandardView/sort-by-type" "") -; (gtk_accel_path "/ThunarStandardView/paste-into-folder" "") -; (gtk_accel_path "/ThunarStandardView/delete" "") -; (gtk_accel_path "/ThunarWindow/empty-trash" "") -; (gtk_accel_path "/ThunarWindow/view-location-selector-menu" "") -; (gtk_accel_path "/ThunarLauncher/open-in-new-window" "o") -; (gtk_accel_path "/ThunarStandardView/arrange-items-menu" "") -; (gtk_accel_path "/ThunarStandardView/cut" "x") -; (gtk_accel_path "/ThunarWindow/close-window" "q") -; (gtk_accel_path "/ThunarStandardView/select-all-files" "") -; (gtk_accel_path "/ThunarStandardView/sort-ascending" "") -; (gtk_accel_path "/ThunarStandardView/sort-by-mtime" "") -; (gtk_accel_path "/ThunarWindow/open-location" "l") -; (gtk_accel_path "/ThunarWindow/zoom-in-alt" "equal") -; (gtk_accel_path "/ThunarWindow/view-statusbar" "") -; (gtk_accel_path "/ThunarWindow/show-hidden" "h") -; (gtk_accel_path "/ThunarWindow/view-as-detailed-list" "2") diff --git a/resources/dotfiles/.config/Thunar/uca.xml b/resources/dotfiles/.config/Thunar/uca.xml deleted file mode 100644 index e8aebcb..0000000 --- a/resources/dotfiles/.config/Thunar/uca.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - utilities-terminal - Abrir terminal aqui - 1554820358111773-1 - exo-open --working-directory %f --launch TerminalEmulator - Exemplo de uma ação personalizada - * - - - - diff --git a/resources/dotfiles/.config/neofetch/config.conf b/resources/dotfiles/.config/neofetch/config.conf deleted file mode 100644 index 10e436b..0000000 --- a/resources/dotfiles/.config/neofetch/config.conf +++ /dev/null @@ -1,761 +0,0 @@ -# See this wiki page for more info: -# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info -print_info() { - info title - info underline - - info "OS" distro - info "Host" model - info "Kernel" kernel - info "Uptime" uptime - info "Packages" packages - info "Shell" shell - info "Resolution" resolution - info "DE" de - info "WM" wm - info "WM Theme" wm_theme - info "Theme" theme - info "Icons" icons - info "Terminal" term - info "Terminal Font" term_font - info "CPU" cpu - info "GPU" gpu - info "Memory" memory - - # info "GPU Driver" gpu_driver # Linux/macOS only - # info "CPU Usage" cpu_usage - # info "Disk" disk - # info "Battery" battery - # info "Font" font - # info "Song" song - # [[ $player ]] && prin "Music Player" "$player" - # info "Local IP" local_ip - # info "Public IP" public_ip - # info "Users" users - # info "Locale" locale # This only works on glibc systems. - - info cols -} - - -# Kernel - - -# Shorten the output of the kernel function. -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --kernel_shorthand -# Supports: Everything except *BSDs (except PacBSD and PC-BSD) -# -# Example: -# on: '4.8.9-1-ARCH' -# off: 'Linux 4.8.9-1-ARCH' -kernel_shorthand="on" - - -# Distro - - -# Shorten the output of the distro function -# -# Default: 'off' -# Values: 'on', 'off', 'tiny' -# Flag: --distro_shorthand -# Supports: Everything except Windows and Haiku -distro_shorthand="off" - -# Show/Hide OS Architecture. -# Show 'x86_64', 'x86' and etc in 'Distro:' output. -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --os_arch -# -# Example: -# on: 'Arch Linux x86_64' -# off: 'Arch Linux' -os_arch="on" - - -# Uptime - - -# Shorten the output of the uptime function -# -# Default: 'on' -# Values: 'on', 'off', 'tiny' -# Flag: --uptime_shorthand -# -# Example: -# on: '2 days, 10 hours, 3 mins' -# off: '2 days, 10 hours, 3 minutes' -# tiny: '2d 10h 3m' -uptime_shorthand="on" - - -# Memory - - -# Show memory pecentage in output. -# -# Default: 'off' -# Values: 'on', 'off' -# Flag: --memory_percent -# -# Example: -# on: '1801MiB / 7881MiB (22%)' -# off: '1801MiB / 7881MiB' -memory_percent="off" - - -# Packages - - -# Show/Hide Package Manager names. -# -# Default: 'tiny' -# Values: 'on', 'tiny' 'off' -# Flag: --package_managers -# -# Example: -# on: '998 (pacman), 8 (flatpak), 4 (snap)' -# tiny: '908 (pacman, flatpak, snap)' -# off: '908' -package_managers="on" - - -# Shell - - -# Show the path to $SHELL -# -# Default: 'off' -# Values: 'on', 'off' -# Flag: --shell_path -# -# Example: -# on: '/bin/bash' -# off: 'bash' -shell_path="off" - -# Show $SHELL version -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --shell_version -# -# Example: -# on: 'bash 4.4.5' -# off: 'bash' -shell_version="on" - - -# CPU - - -# CPU speed type -# -# Default: 'bios_limit' -# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'. -# Flag: --speed_type -# Supports: Linux with 'cpufreq' -# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. -speed_type="bios_limit" - -# CPU speed shorthand -# -# Default: 'off' -# Values: 'on', 'off'. -# Flag: --speed_shorthand -# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz -# -# Example: -# on: 'i7-6500U (4) @ 3.1GHz' -# off: 'i7-6500U (4) @ 3.100GHz' -speed_shorthand="off" - -# Enable/Disable CPU brand in output. -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --cpu_brand -# -# Example: -# on: 'Intel i7-6500U' -# off: 'i7-6500U (4)' -cpu_brand="on" - -# CPU Speed -# Hide/Show CPU speed. -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --cpu_speed -# -# Example: -# on: 'Intel i7-6500U (4) @ 3.1GHz' -# off: 'Intel i7-6500U (4)' -cpu_speed="on" - -# CPU Cores -# Display CPU cores in output -# -# Default: 'logical' -# Values: 'logical', 'physical', 'off' -# Flag: --cpu_cores -# Support: 'physical' doesn't work on BSD. -# -# Example: -# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores) -# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores) -# off: 'Intel i7-6500U @ 3.1GHz' -cpu_cores="logical" - -# CPU Temperature -# Hide/Show CPU temperature. -# Note the temperature is added to the regular CPU function. -# -# Default: 'off' -# Values: 'C', 'F', 'off' -# Flag: --cpu_temp -# Supports: Linux, BSD -# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable -# coretemp kernel module. This only supports newer Intel processors. -# -# Example: -# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' -# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' -# off: 'Intel i7-6500U (4) @ 3.1GHz' -cpu_temp="off" - - -# GPU - - -# Enable/Disable GPU Brand -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --gpu_brand -# -# Example: -# on: 'AMD HD 7950' -# off: 'HD 7950' -gpu_brand="on" - -# Which GPU to display -# -# Default: 'all' -# Values: 'all', 'dedicated', 'integrated' -# Flag: --gpu_type -# Supports: Linux -# -# Example: -# all: -# GPU1: AMD HD 7950 -# GPU2: Intel Integrated Graphics -# -# dedicated: -# GPU1: AMD HD 7950 -# -# integrated: -# GPU1: Intel Integrated Graphics -gpu_type="all" - - -# Resolution - - -# Display refresh rate next to each monitor -# Default: 'off' -# Values: 'on', 'off' -# Flag: --refresh_rate -# Supports: Doesn't work on Windows. -# -# Example: -# on: '1920x1080 @ 60Hz' -# off: '1920x1080' -refresh_rate="off" - - -# Gtk Theme / Icons / Font - - -# Shorten output of GTK Theme / Icons / Font -# -# Default: 'off' -# Values: 'on', 'off' -# Flag: --gtk_shorthand -# -# Example: -# on: 'Numix, Adwaita' -# off: 'Numix [GTK2], Adwaita [GTK3]' -gtk_shorthand="off" - - -# Enable/Disable gtk2 Theme / Icons / Font -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --gtk2 -# -# Example: -# on: 'Numix [GTK2], Adwaita [GTK3]' -# off: 'Adwaita [GTK3]' -gtk2="on" - -# Enable/Disable gtk3 Theme / Icons / Font -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --gtk3 -# -# Example: -# on: 'Numix [GTK2], Adwaita [GTK3]' -# off: 'Numix [GTK2]' -gtk3="on" - - -# IP Address - - -# Website to ping for the public IP -# -# Default: 'http://ident.me' -# Values: 'url' -# Flag: --ip_host -public_ip_host="http://ident.me" - -# Public IP timeout. -# -# Default: '2' -# Values: 'int' -# Flag: --ip_timeout -public_ip_timeout=2 - - -# Disk - - -# Which disks to display. -# The values can be any /dev/sdXX, mount point or directory. -# NOTE: By default we only show the disk info for '/'. -# -# Default: '/' -# Values: '/', '/dev/sdXX', '/path/to/drive'. -# Flag: --disk_show -# -# Example: -# disk_show=('/' '/dev/sdb1'): -# 'Disk (/): 74G / 118G (66%)' -# 'Disk (/mnt/Videos): 823G / 893G (93%)' -# -# disk_show=('/'): -# 'Disk (/): 74G / 118G (66%)' -# -disk_show=('/') - -# Disk subtitle. -# What to append to the Disk subtitle. -# -# Default: 'mount' -# Values: 'mount', 'name', 'dir' -# Flag: --disk_subtitle -# -# Example: -# name: 'Disk (/dev/sda1): 74G / 118G (66%)' -# 'Disk (/dev/sdb2): 74G / 118G (66%)' -# -# mount: 'Disk (/): 74G / 118G (66%)' -# 'Disk (/mnt/Local Disk): 74G / 118G (66%)' -# 'Disk (/mnt/Videos): 74G / 118G (66%)' -# -# dir: 'Disk (/): 74G / 118G (66%)' -# 'Disk (Local Disk): 74G / 118G (66%)' -# 'Disk (Videos): 74G / 118G (66%)' -disk_subtitle="mount" - - -# Song - - -# Manually specify a music player. -# -# Default: 'auto' -# Values: 'auto', 'player-name' -# Flag: --music_player -# -# Available values for 'player-name': -# -# amarok -# audacious -# banshee -# bluemindo -# clementine -# cmus -# deadbeef -# deepin-music -# dragon -# elisa -# exaile -# gnome-music -# gmusicbrowser -# guayadeque -# iTunes -# juk -# lollypop -# mocp -# mopidy -# mpd -# netease-cloud-music -# pogo -# pragha -# qmmp -# quodlibet -# rhythmbox -# sayonara -# smplayer -# spotify -# tomahawk -# vlc -# xmms2d -# yarock -music_player="auto" - -# Format to display song information. -# -# Default: '%artist% - %album% - %title%' -# Values: '%artist%', '%album%', '%title%' -# Flag: --song_format -# -# Example: -# default: 'Song: Jet - Get Born - Sgt Major' -song_format="%artist% - %album% - %title%" - -# Print the Artist, Album and Title on separate lines -# -# Default: 'off' -# Values: 'on', 'off' -# Flag: --song_shorthand -# -# Example: -# on: 'Artist: The Fratellis' -# 'Album: Costello Music' -# 'Song: Chelsea Dagger' -# -# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger' -song_shorthand="off" - -# 'mpc' arguments (specify a host, password etc). -# -# Default: '' -# Example: mpc_args=(-h HOST -P PASSWORD) -mpc_args=() - - -# Text Colors - - -# Text Colors -# -# Default: 'distro' -# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' -# Flag: --colors -# -# Each number represents a different part of the text in -# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info' -# -# Example: -# colors=(distro) - Text is colored based on Distro colors. -# colors=(4 6 1 8 8 6) - Text is colored in the order above. -colors=(distro) - - -# Text Options - - -# Toggle bold text -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --bold -bold="on" - -# Enable/Disable Underline -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --underline -underline_enabled="on" - -# Underline character -# -# Default: '-' -# Values: 'string' -# Flag: --underline_char -underline_char="-" - - -# Info Separator -# Replace the default separator with the specified string. -# -# Default: ':' -# Flag: --separator -# -# Example: -# separator="->": 'Shell-> bash' -# separator=" =": 'WM = dwm' -separator=":" - - -# Color Blocks - - -# Color block range -# The range of colors to print. -# -# Default: '0', '7' -# Values: 'num' -# Flag: --block_range -# -# Example: -# -# Display colors 0-7 in the blocks. (8 colors) -# neofetch --block_range 0 7 -# -# Display colors 0-15 in the blocks. (16 colors) -# neofetch --block_range 0 15 -block_range=(0 7) - -# Toggle color blocks -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --color_blocks -color_blocks="on" - -# Color block width in spaces -# -# Default: '3' -# Values: 'num' -# Flag: --block_width -block_width=3 - -# Color block height in lines -# -# Default: '1' -# Values: 'num' -# Flag: --block_height -block_height=1 - - -# Progress Bars - - -# Bar characters -# -# Default: '-', '=' -# Values: 'string', 'string' -# Flag: --bar_char -# -# Example: -# neofetch --bar_char 'elapsed' 'total' -# neofetch --bar_char '-' '=' -bar_char_elapsed="-" -bar_char_total="=" - -# Toggle Bar border -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --bar_border -bar_border="on" - -# Progress bar length in spaces -# Number of chars long to make the progress bars. -# -# Default: '15' -# Values: 'num' -# Flag: --bar_length -bar_length=15 - -# Progress bar colors -# When set to distro, uses your distro's logo colors. -# -# Default: 'distro', 'distro' -# Values: 'distro', 'num' -# Flag: --bar_colors -# -# Example: -# neofetch --bar_colors 3 4 -# neofetch --bar_colors distro 5 -bar_color_elapsed="distro" -bar_color_total="distro" - - -# Info display -# Display a bar with the info. -# -# Default: 'off' -# Values: 'bar', 'infobar', 'barinfo', 'off' -# Flags: --cpu_display -# --memory_display -# --battery_display -# --disk_display -# -# Example: -# bar: '[---=======]' -# infobar: 'info [---=======]' -# barinfo: '[---=======] info' -# off: 'info' -cpu_display="off" -memory_display="off" -battery_display="off" -disk_display="off" - - -# Backend Settings - - -# Image backend. -# -# Default: 'ascii' -# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off', -# 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty' -# Flag: --backend -image_backend="ascii" - -# Image Source -# -# Which image or ascii file to display. -# -# Default: 'auto' -# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' -# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")' -# Flag: --source -# -# NOTE: 'auto' will pick the best image source for whatever image backend is used. -# In ascii mode, distro ascii art will be used and in an image mode, your -# wallpaper will be used. -#image_source="auto" -image_source="/home/BASE_USERNAME/.config/neofetch/img" - -# Ascii Options - - -# Ascii distro -# Which distro's ascii art to display. -# -# Default: 'auto' -# Values: 'auto', 'distro_name' -# Flag: --ascii_distro -# -# NOTE: Arch and Ubuntu have 'old' logo variants. -# Change this to 'arch_old' or 'ubuntu_old' to use the old logos. -# NOTE: Ubuntu has flavor variants. -# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors. -# NOTE: Arch, Crux and Gentoo have a smaller logo variant. -# Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos. -ascii_distro="auto" - -# Ascii Colors -# -# Default: 'distro' -# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' -# Flag: --ascii_colors -# -# Example: -# ascii_colors=(distro) - Ascii is colored based on Distro colors. -# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors. -ascii_colors=(distro) - -# Bold ascii logo -# Whether or not to bold the ascii logo. -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --ascii_bold -ascii_bold="on" - - -# Image Options - - -# Image loop -# Setting this to on will make neofetch redraw the image constantly until -# Ctrl+C is pressed. This fixes display issues in some terminal emulators. -# -# Default: 'off' -# Values: 'on', 'off' -# Flag: --loop -image_loop="off" - -# Thumbnail directory -# -# Default: '~/.cache/thumbnails/neofetch' -# Values: 'dir' -thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" - -# Crop mode -# -# Default: 'normal' -# Values: 'normal', 'fit', 'fill' -# Flag: --crop_mode -# -# See this wiki page to learn about the fit and fill options. -# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F -crop_mode="normal" - -# Crop offset -# Note: Only affects 'normal' crop mode. -# -# Default: 'center' -# Values: 'northwest', 'north', 'northeast', 'west', 'center' -# 'east', 'southwest', 'south', 'southeast' -# Flag: --crop_offset -crop_offset="center" - -# Image size -# The image is half the terminal width by default. -# -# Default: 'auto' -# Values: 'auto', '00px', '00%', 'none' -# Flags: --image_size -# --size -image_size="auto" - -# Gap between image and text -# -# Default: '3' -# Values: 'num', '-num' -# Flag: --gap -gap=3 - -# Image offsets -# Only works with the w3m backend. -# -# Default: '0' -# Values: 'px' -# Flags: --xoffset -# --yoffset -yoffset=0 -xoffset=0 - -# Image background color -# Only works with the w3m backend. -# -# Default: '' -# Values: 'color', 'blue' -# Flag: --bg_color -background_color= - - -# Misc Options - -# Stdout mode -# Turn off all colors and disables image backend (ASCII/Image). -# Useful for piping into another command. -# Default: 'off' -# Values: 'on', 'off' -stdout="off" diff --git a/resources/dotfiles/.config/neofetch/img b/resources/dotfiles/.config/neofetch/img deleted file mode 100644 index 2459737..0000000 --- a/resources/dotfiles/.config/neofetch/img +++ /dev/null @@ -1,22 +0,0 @@ - `` ` - `.` ``` ```.-:---::-. - `--/:..--++////hyysys-` - `.-::/s+:/o+ooyhhhsoo/. - `.`.:+/++ssoooooo++syy+. - `-:::+++ossosysoo+++sds-` - `:+o-s++::-/+o/+:/-/oy+-.` - ..` `..` `` `./oos/` `.++`.` - `-::.// :-o+so :h. ` - `./yo-` `::./-:/.```.../y/` - -yss+:+oo+:`. :soo/++/hmo/.-` - `------:/:-``` -smyy://+os/-::` - `.... :+/-././smssoo+-:/-:. ` - `- .ys/+yhdddhys` - `..:. - `` /o/:yss+hos+/ `: - ``-:o:s/ysyos//:o- - ` ` ``.`.`--+soyhd+.. - ` `/-/:/--+yhhh+:` .` - `.+ohmh++yhdd---` - /shdhmmdyo/``..`. - `.-::-.` - ... diff --git a/resources/dotfiles/Imagens/Wallpapers/119970.jpg b/resources/dotfiles/Imagens/Wallpapers/119970.jpg deleted file mode 100644 index ece793d..0000000 Binary files a/resources/dotfiles/Imagens/Wallpapers/119970.jpg and /dev/null differ diff --git a/resources/img/default_screenshot.png b/resources/img/default_screenshot.png deleted file mode 100755 index de4f1ca..0000000 Binary files a/resources/img/default_screenshot.png and /dev/null differ diff --git a/resources/img/default_screenshot2.png b/resources/img/default_screenshot2.png deleted file mode 100755 index 239b5ea..0000000 Binary files a/resources/img/default_screenshot2.png and /dev/null differ diff --git a/resources/include/checkDistro.sh b/resources/include/checkDistro.sh old mode 100644 new mode 100755 index c11a7bb..ea2c23c --- a/resources/include/checkDistro.sh +++ b/resources/include/checkDistro.sh @@ -3,13 +3,13 @@ # since: v0.0.1 # version: v0.0.1 # created: 2021-09-11 -# modified: 2021-09-11 +# modified: 2022-07-28 checkDistro() { -OS=$(lsb_release -i) -OS="${OS:16}" -ARCH=$(uname -m | sed 's/x86_//;s/i[3-6]86/32/') -VERSION=$(lsb_release -c) -VERSION="${VERSION:9}" -echo $OS + OS=$(lsb_release -i) + OS="${OS:16}" + ARCH=$(uname -m | sed 's/x86_//;s/i[3-6]86/32/') + VERSION=$(lsb_release -c) + VERSION="${VERSION:9}" + echo $OS } \ No newline at end of file diff --git a/resources/include/configureUI.sh b/resources/include/configureUI.sh index 4d88d94..8eba1ee 100755 --- a/resources/include/configureUI.sh +++ b/resources/include/configureUI.sh @@ -5,6 +5,12 @@ # created: ____-__-__ # modified: 2021-09-11 # + + +WALLPAPER=$(xdg-user-dir PICTURES)/Wallpapers +SCREENSHOT=$(xdg-user-dir PICTURES)/Screenshots + + configureUI() { clear read -p "Tecle S para aplicar as configurações de ambiente para o usuario atual ou qualquer outra tecla para não aplicar para nenhum... " -n 1 -r @@ -13,9 +19,12 @@ configureUI() { case "$REPLY" in s|S ) echo "Configurando XFCE para o usuario atual..." - - mkdir $(xdg-user-dir PICTURES)/Wallpapers - mkdir $(xdg-user-dir PICTURES)/Screenshots + + + # Create forders if not exists + [ ! -d $WALLPAPER ] && mkdir $WALLPAPER + [ ! -d $SCREENSHOT ] && mkdir $SCREENSHOT + # @todo create menu to select wallpaper @@ -24,11 +33,12 @@ configureUI() { xfconf-query -c xsettings -p /Net/ThemeName -s "Arc-Dark" xfconf-query -c xsettings -p /Net/IconThemeName -s "Arc" xfconf-query -c xfwm4 -p /general/theme -s "Arc-Dark" - xfconf-query -c xfce4-desktop \ + xfconf-query -c xfce4-desktop --create \ -p /backdrop/screen0/monitor0/workspace0/last-image \ -s $(xdg-user-dir PICTURES)/Wallpapers/main.jpg - xfce4-panel --quit - pkill xfconfd + + #xfce4-panel --quit + #pkill xfconfd #tar -zxvf ./resources/dotfiles.tar.gz -C ~ #VERSION=$(xfce4-about --version | grep 4.1) #if [[ $VERSION == *"4.14"* ]]; then @@ -48,7 +58,7 @@ configureUI() { #@deprecated rpl -R BASE_USERNAME $USER ~/.config #find ~/.config -type f -exec sed -i "s/BASE_USERNAME/$USER/g" {} + - xfce4-panel & + xfce4-panel --restart ;; * ) echo "Ignorando etapa..." ;; esac diff --git a/resources/include/installBaseApplications.sh b/resources/include/installBaseApplications.sh index 0f60d5d..658e7c4 100755 --- a/resources/include/installBaseApplications.sh +++ b/resources/include/installBaseApplications.sh @@ -9,13 +9,13 @@ # mantenha atenção ao conjunto de pacotes da sua distribuição PKG_MANAGER=$(load packageManager) - +LOGFILE='/tmp/qxdc/installBaseApplications.log' APPLICATIONS="autoconf gvfs gvfs-bin gvfs-common gvfs-daemons gvfs-libs\ libmtp-dev gvfs-backends apt-transport-https htop gnome-disk-utility apparmor asciinema \ axel curl fonts-lyx galculator gimp inkscape\ - keepassxc lightning locate lsb-release menulibre neofetch net-tools software-properties-common\ - thunderbird thunderbird-l10n-pt-br transmission-gtk unrar unzip " + keepassxc locate lsb-release menulibre neofetch net-tools software-properties-common\ + transmission-gtk unrar unzip build-essential dkms fakeroot" verifyXFCE() { sudo dpkg -s task-xfce-desktop &> /dev/null @@ -29,7 +29,7 @@ else case "$REPLY" in s|S ) - $PKG_MANAGER task-xfce-desktop &>> /tmp/QXDCinstall.log && echo -e "\xE2\x9C\x94" && sudo reboot|| echo -e "\xE2\x9D\x8C" + $PKG_MANAGER task-xfce-desktop &>> $LOGFILE && echo -e "\xE2\x9C\x94" && sudo reboot|| echo -e "\xE2\x9D\x8C" ;; esac fi @@ -47,7 +47,7 @@ installBaseApplications() { for application in ${APPLICATIONS[@]} do echo -ne "Instalando $application " - $PKG_MANAGER $application &>> /tmp/QXDCinstall.log && echo -e "\xE2\x9C\x94" || echo -e "\xE2\x9D\x8C" + $PKG_MANAGER $application &>> $LOGFILE && echo -e "\xE2\x9C\x94" || echo -e "\xE2\x9D\x8C" done } diff --git a/resources/include/installThemes.sh b/resources/include/installThemes.sh index b693724..645b47d 100755 --- a/resources/include/installThemes.sh +++ b/resources/include/installThemes.sh @@ -6,31 +6,22 @@ # modified: 2021-09-11 # +PKG_MANAGER=$(load packageManager) +LOGFILE='/tmp/qxdc/installThemes.log' + +THEMES="arc-theme arc-icon-theme moka-icon-theme" + installThemes() { clear - verifyIcons - verifyTheme -} -verifyTheme() { - if [ -e "/usr/share/themes/Arc-Dark" ] - then - echo " Tema já está instalado..." - else - echo " Instalando o tema..." - sudo apt install arc-theme - fi -} + echo "Instalando temas e ícones..." + echo + echo + sudo apt-get update > /dev/null + for package in ${THEMES[@]} + do + echo -ne "Instalando $package " + $PKG_MANAGER $package &>> $LOGFILE && echo -e "\xE2\x9C\x94" || echo -e "\xE2\x9D\x8C" -verifyIcons() { - if [ -e "/usr/share/icons/Arc/" ] - then - echo " Os ícones já estão instalados..." - else - echo " Instalando os ícones..." - cd /tmp - git clone https://github.com/horst3180/arc-icon-theme --depth 1 && cd arc-icon-theme - ./autogen.sh --prefix=/usr - sudo make install - fi + done } diff --git a/resources/include/load.sh b/resources/include/load.sh index acbfd41..246078b 100644 --- a/resources/include/load.sh +++ b/resources/include/load.sh @@ -6,6 +6,7 @@ # modified: 2021-09-11 # Load and exec a .sh file with a main command with same name + load() { #if [ $2 ]; then # echo "excesso de parametros" diff --git a/resources/include/logger.sh b/resources/include/logger.sh new file mode 100644 index 0000000..ae82a7c --- /dev/null +++ b/resources/include/logger.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +# author: Luiz Quirino +# since: v0.0.1 +# version: v0.0.1 +# created: 2021-09-11 +# modified: 2021-09-11 +# used inside load.sh, as a log generator + +LOGDIR='/tmp/qxdc' + +logger() { + if [ -d $LOGDIR ] + then + echo "Default log dir found in → "$LOGDIR + echo "Moving older logs to $LOGDIR-old" + sudo rm -rf mkdir $LOGDIR-old + sudo mv -f $LOGDIR $LOGDIR-old + sudo mkdir $LOGDIR + sudo chmod 777 -Rfv $LOGDIR + echo "Ready to log..." + else + echo "Default log dir not found in → "$LOGDIR + echo "Creating..." + sudo mkdir $LOGDIR + + [ ! -d $LOGDIR ] && echo "Error creating dir." || sudo chmod 777 -Rfv $LOGDIR && echo "Ready to log..." + fi + +} \ No newline at end of file diff --git a/resources/include/sourcesListChange.sh b/resources/include/sourcesListChange.sh index 193a38e..aaa9d25 100755 --- a/resources/include/sourcesListChange.sh +++ b/resources/include/sourcesListChange.sh @@ -5,13 +5,13 @@ # created: ____-__-__ # modified: 2021-09-11 # -changeList() { - clear - OS=$(grep ID= /etc/os-release | sed 's/ID=//g' | tr -d '="') +sourcesListChange() { - if [ $OS ]; then + if [ "$DISTRO" == *"Debian"* ]; then + + echo "Sistema baseado em Debian detectado..." read -p "Deseja criar uma nova sources list? (S/N)? " -n 1 -r case "$REPLY" in @@ -24,7 +24,7 @@ changeList() { n|N ) echo "Sua sources list não será alterada...\n continuando" ;; * ) echo "Invalido, tente novamente" - changeList + ;; esac fi diff --git a/resources/purgeList b/resources/purgeList deleted file mode 100755 index 5fd56d5..0000000 --- a/resources/purgeList +++ /dev/null @@ -1 +0,0 @@ -mutt diff --git a/resources/sources.list b/resources/sources.list deleted file mode 100755 index b6dae3a..0000000 --- a/resources/sources.list +++ /dev/null @@ -1,15 +0,0 @@ -# - -# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-10:25]/ stretch main - -#deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-10:25]/ stretch main - -deb http://debian.c3sl.ufpr.br/debian/ stretch main contrib non-free -deb-src http://debian.c3sl.ufpr.br/debian/ stretch main contrib non-free - -deb http://security.debian.org/debian-security stretch/updates main -deb-src http://security.debian.org/debian-security stretch/updates main - -# stretch-updates, previously known as 'volatile' -deb http://debian.c3sl.ufpr.br/debian/ stretch-updates main -deb-src http://debian.c3sl.ufpr.br/debian/ stretch-updates main diff --git a/resources/sources.list.testing b/resources/sources.list.testing deleted file mode 100755 index 07eafcb..0000000 --- a/resources/sources.list.testing +++ /dev/null @@ -1,9 +0,0 @@ -###### Debian Main Repos -deb http://ftp.br.debian.org/debian/ buster main contrib non-free -deb-src http://ftp.br.debian.org/debian/ buster main contrib non-free - -deb http://ftp.br.debian.org/debian/ buster-updates main contrib non-free -deb-src http://ftp.br.debian.org/debian/ buster-updates main contrib non-free - -deb http://security.debian.org/ buster/updates main -deb-src http://security.debian.org/ buster/updates main diff --git a/resources/todo/new_dotfiles/bash_aliases b/resources/todo/new_dotfiles/bash_aliases deleted file mode 100644 index 40dd208..0000000 --- a/resources/todo/new_dotfiles/bash_aliases +++ /dev/null @@ -1,3 +0,0 @@ -# -# -# \ No newline at end of file diff --git a/resources/todo/new_dotfiles/bashrc b/resources/todo/new_dotfiles/bashrc deleted file mode 100644 index 1c68d87..0000000 --- a/resources/todo/new_dotfiles/bashrc +++ /dev/null @@ -1,23 +0,0 @@ -# -# ~/.bashrc -# - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -shopt -s autocd - -complete -cf sudo -complete -c man wich -#PS1='[\u@\h \W]\$ ' - -PS1="\[\033[0;37m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;31m\]\342\234\227\[\033[0;37m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\h'; else echo '\[\033[0;33m\]\u\[\033[0;37m\]@\[\033[0;96m\]\h'; fi)\[\033[0;37m\]]\342\224\200[\[\033[0;32m\]\W\[\033[0;37m\]]\n\[\033[0;37m\]\342\224\224\342\224\200\342\224\200\342\225\274 \[\033[0m\]" - - -# Alias definitions. -# You may want to put all your additions into a separate file like -# ~/.bash_aliases, instead of adding them here directly. -# See /usr/share/doc/bash-doc/examples in the bash-doc package. -if [ -f ~/.bash_aliases ]; then - . ~/.bash_aliases -fi \ No newline at end of file