Moved files and created cpl workspace

This commit is contained in:
2021-10-04 10:49:34 +02:00
parent e68bd9b8be
commit 995a80cfe3
66 changed files with 338 additions and 36 deletions

19
old/LICENSE Normal file
View File

@@ -0,0 +1,19 @@
MIT License Copyright (c) 2021 Sven Heidemann
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

14
old/README.md Normal file
View File

@@ -0,0 +1,14 @@
# sh-edraft Debian Installation scripts
Run script as root:
```sh
bash users/public/scripts/default_installation.sh
/usr/sbin/usermod -aG sudo <user>
```
Run script as user:
```sh
bash users/<user>/scripts/<script.sh>
```

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_barrier() {
echo "Installing barrier"
sudo apt-get install barrier -y
}

6
old/common/apps/boxes.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_boxes() {
echo "Installing gnome-boxes"
sudo apt-get install gnome-boxes -y
}

View File

@@ -0,0 +1,9 @@
#!/bin/bash
install_chrome() {
echo 'Installing Google Chrome'
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i ./google-chrome-stable_current_amd64.deb
rm google-chrome-stable_current_amd64.deb
sudo apt-get install chrome-gnome-shell -y
}

View File

@@ -0,0 +1,7 @@
#!/bin/bash
install_discord() {
echo 'Installing Discord'
wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb"
sudo dpkg -i discord.deb
}

View File

@@ -0,0 +1,9 @@
#!/bin/bash
install_etcher() {
echo 'Installing Etcher'
echo "deb https://deb.etcher.io stable etcher" | sudo tee /etc/apt/sources.list.d/balena-etcher.list
sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61
sudo apt update -y
sudo apt install balena-etcher-electron -y
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_flameshot() {
echo "Installing Flameshot"
sudo apt-get install flameshot -y
}

6
old/common/apps/geary.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_geary() {
echo "Installing geary"
sudo apt-get install geary -y
}

6
old/common/apps/git.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_git() {
echo "Installing git"
sudo apt-get install git -y
}

View File

@@ -0,0 +1,8 @@
#!/bin/bash
install_gnome_shell() {
echo 'Installing gnome-shell'
if [ $1 == "chrome" ]; then
sudo apt-get install chrome-gnome-shell -y
fi
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_gnome_tweaks() {
echo "Installing Gnome-Tweaks"
sudo apt-get install gnome-tweaks -y
}

6
old/common/apps/gpick.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_gpick() {
echo "Installing gpick"
sudo apt-get install gpick -y
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_kcolorchooser() {
echo "Installing kcolorchooser"
sudo apt-get install kcolorchooser -y
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_keepassxc() {
echo "Installing keepassxc"
sudo apt-get install keepassxc -y
}

24
old/common/apps/lsd.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
install_lsd() {
echo "Installing lsd"
mkdir hack
cd hack
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip
unzip Hack.zip
cd ..
sudo cp -r hack /usr/share/fonts/
sudo chmod -R 775 /usr/share/fonts/hack
rm -r hack
wget https://github.com/Peltoche/lsd/releases/download/0.19.0/lsd_0.19.0_amd64.deb
sudo dpkg -i lsd_0.19.0_amd64.deb
sudo rm lsd_0.19.0_amd64.deb
# echo "alias ls='lsd'" | sudo tee -a /home/*/.bashrc > /dev/null
# todos
# write py script to comment line: alias="ls --color=auto"
# echo "alias ls='lsd'" | sudo tee -a /etc/bash.bashrc > /dev/null
echo "
alias ls='lsd'
" | sudo tee -a /etc/bash.bashrc > /dev/null
}

6
old/common/apps/ncdu.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_ncdu() {
echo "Installing ncdu"
sudo apt-get install ncdu -y
}

View File

@@ -0,0 +1,12 @@
#!/bin/bash
install_neofetch() {
echo "Installing neofetch"
sudo apt-get install neofetch -y
echo '
if [ $USER != "root" ]; then
echo ""
neofetch
fi
' | sudo tee -a /etc/bash.bashrc > /dev/null
}

View File

@@ -0,0 +1,8 @@
#!/bin/bash
install_nextcloud() {
echo "Installing Nextcloud client"
sudo add-apt-repository ppa:nextcloud-devs/client
sudo apt-get update
sudo apt-get install nextcloud-client -y
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_signal() {
echo "Installing signal-desktop "
sudo apt-get install signal-desktop -y
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_pycharm() {
echo "Installing Pycharm"
sudo snap install pycharm-community --classic
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_simplenote() {
echo "Installing Simplenote"
sudo snap install simplenote
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_stacer() {
echo "Installing Stacer"
sudo apt-get install stacer -y
}

View File

@@ -0,0 +1,11 @@
#!/bin/bash
install_sublime_text() {
echo "Installing sublime-text"
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo apt-get install apt-transport-https -y
sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/"
sudo apt-get update
sudo apt-get install sublime-text -y
}

View File

@@ -0,0 +1,8 @@
#!/bin/bash
install_timeshift() {
echo "Installing Timeshift"
sudo add-apt-repository -y ppa:teejee2008/ppa
sudo apt-get update -y
sudo apt-get install timeshift -y
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
install_trash_cli() {
echo "Installing trash-cli"
sudo apt-get install trash-cli -y
}

View File

@@ -0,0 +1,8 @@
#!/bin/bash
install_ulauncher() {
echo "Installing Ulauncher"
sudo add-apt-repository ppa:agornostal/ulauncher
sudo apt-get update -y
sudo apt-get install ulauncher -y
}

View File

@@ -0,0 +1,9 @@
#!/bin/bash
install_vscode() {
echo "Installing VS Code"
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt-get update
sudo apt-get install code -y
}

View File

@@ -0,0 +1,6 @@
#!/bin/bash
first_install() {
echo 'Installing useful apps'
apt-get install net-tools dnsutils nano htop iftop tree zip unzip curl wget sudo -y
}

View File

@@ -0,0 +1,10 @@
#!/bin/bash
update() {
echo 'Starting update:'
sudo apt-get update -y
echo 'Starting upgrade:'
sudo apt-get upgrade -y
echo 'Starting dist-upgrade:'
sudo apt-get dist-upgrade -y
}

View File

@@ -0,0 +1,5 @@
#!/bin/bash
fix_chrome_icons() {
sudo cp -r ~/.local/share/icons/hicolor/128x128/apps/* ~/.local/share/icons/Tela-circle-orange-dark/scalable/apps/
}

View File

@@ -0,0 +1,9 @@
#!/bin/bash
install_grub_theme() {
git clone https://github.com/vinceliuice/grub2-themes.git
cd grub2-themes
sudo ./install.sh -t $1 -s $2
cd ..
sudo rm -r grub2-themes
}

View File

@@ -0,0 +1,9 @@
#!/bin/bash
install_orchis() {
git clone https://github.com/vinceliuice/Orchis-theme
cd Orchis-theme
./install.sh -t $1
cd ..
sudo rm -r Orchis-theme
}

View File

@@ -0,0 +1,9 @@
#!/bin/bash
install_tela_circle_icons() {
git clone https://github.com/vinceliuice/Tela-circle-icon-theme
cd Tela-circle-icon-theme
./install.sh -a
cd ..
sudo rm -r Tela-circle-icon-theme
}

View File

@@ -0,0 +1,9 @@
#!/bin/bash
install_vimix_cursors() {
git clone https://github.com/vinceliuice/Vimix-cursors
cd Vimix-cursors
./install.sh
cd ..
sudo rm -r Vimix-cursors
}

View File

View File

@@ -0,0 +1,849 @@
# 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
}
# Title
# Hide/Show Fully qualified domain name.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --title_fqdn
title_fqdn="off"
# 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', 'tiny', 'off'
# 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', 'tiny', 'off'
# Flag: --uptime_shorthand
#
# Example:
# on: '2 days, 10 hours, 3 mins'
# tiny: '2d 10h 3m'
# off: '2 days, 10 hours, 3 minutes'
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="on"
# 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
# Desktop Environment
# Show Desktop Environment version
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --de_version
de_version="off"
# 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', 'none'
# 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%)'
#
# none: 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
disk_subtitle="mount"
# Disk percent.
# Show/Hide disk percent.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --disk_percent
#
# Example:
# on: 'Disk (/): 74G / 118G (66%)'
# off: 'Disk (/): 74G / 118G'
disk_percent="on"
# 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
# gogglesmm
# guayadeque
# io.elementary.music
# iTunes
# juk
# lollypop
# mocp
# mopidy
# mpd
# muine
# netease-cloud-music
# pogo
# pragha
# qmmp
# quodlibet
# rhythmbox
# sayonara
# smplayer
# spotify
# strawberry
# tomahawk
# vlc
# xmms2d
# xnoise
# 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="\t:"
# Color Blocks
# Color block range
# The range of colors to print.
#
# Default: '0', '15'
# 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 15)
# 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
# Color Alignment
#
# Default: 'auto'
# Values: 'auto', 'num'
# Flag: --col_offset
#
# Number specifies how far from the left side of the terminal (in spaces) to
# begin printing the columns, in case you want to e.g. center them under your
# text.
# Example:
# col_offset="auto" - Default behavior of neofetch
# col_offset=7 - Leave 7 spaces then print the colors
col_offset="auto"
# 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"
# Ascii Options
# Ascii distro
# Which distro's ascii art to display.
#
# Default: 'auto'
# Values: 'auto', 'distro_name'
# Flag: --ascii_distro
# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, AOSC,
# Apricity, ArcoLinux, ArchBox, ARCHlabs, ArchStrike,
# XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, Bitrig,
# BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
# DesaOS, Devuan, DracOS, DragonFly, Drauger, Elementary,
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Gentoo, Pentoo,
# gNewSense, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
# NuTyX, OBRevenge, OpenBSD, OpenIndiana, OpenMandriva,
# OpenWrt, osmc, Oracle, PacBSD, Parabola, Pardus, Parrot,
# Parsix, TrueOS, PCLinuxOS, Peppermint, popos, Porteus,
# PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, Raspbian,
# Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata,
# Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor,
# SharkLinux, Siduction, Slackware, SliTaz, SmartOS, Solus,
# Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap,
# openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel,
# Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, Ubuntu,
# Void, Obarun, windows10, Windows7, Xubuntu, Zorin, and IRIX
# have ascii logos
# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
# Use '{distro name}_old' to use the old logos.
# NOTE: Ubuntu has flavor variants.
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
# postmarketOS, and Void have a smaller logo variant.
# Use '{distro name}_small' to use the small variants.
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"

View File

@@ -0,0 +1,14 @@
#!/bin/bash
configure_neofetch_server () {
echo "Installing neofetch configuration"
if [ -f "/home/$USER/.config/neofetch/config.conf"]; then
# rename old config to "config_old.conf"
cp /home/$USER/.config/neofetch/config.conf /home/$USER/.config/neofetch/config_old.conf
sudo rm -f /home/$USER/.config/neofetch/config.conf
fi
# copy new config file
cp $PWD/users/benjasat/config/server/neofetch/config.conf /home/$USER/.config/neofetch/config.conf
}

View File

@@ -0,0 +1,849 @@
# 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
}
# Title
# Hide/Show Fully qualified domain name.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --title_fqdn
title_fqdn="off"
# 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', 'tiny', 'off'
# 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', 'tiny', 'off'
# Flag: --uptime_shorthand
#
# Example:
# on: '2 days, 10 hours, 3 mins'
# tiny: '2d 10h 3m'
# off: '2 days, 10 hours, 3 minutes'
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="on"
# 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
# Desktop Environment
# Show Desktop Environment version
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --de_version
de_version="off"
# 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', 'none'
# 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%)'
#
# none: 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
disk_subtitle="mount"
# Disk percent.
# Show/Hide disk percent.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --disk_percent
#
# Example:
# on: 'Disk (/): 74G / 118G (66%)'
# off: 'Disk (/): 74G / 118G'
disk_percent="on"
# 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
# gogglesmm
# guayadeque
# io.elementary.music
# iTunes
# juk
# lollypop
# mocp
# mopidy
# mpd
# muine
# netease-cloud-music
# pogo
# pragha
# qmmp
# quodlibet
# rhythmbox
# sayonara
# smplayer
# spotify
# strawberry
# tomahawk
# vlc
# xmms2d
# xnoise
# 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="\t:"
# Color Blocks
# Color block range
# The range of colors to print.
#
# Default: '0', '15'
# 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 15)
# 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
# Color Alignment
#
# Default: 'auto'
# Values: 'auto', 'num'
# Flag: --col_offset
#
# Number specifies how far from the left side of the terminal (in spaces) to
# begin printing the columns, in case you want to e.g. center them under your
# text.
# Example:
# col_offset="auto" - Default behavior of neofetch
# col_offset=7 - Leave 7 spaces then print the colors
col_offset="auto"
# 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"
# Ascii Options
# Ascii distro
# Which distro's ascii art to display.
#
# Default: 'auto'
# Values: 'auto', 'distro_name'
# Flag: --ascii_distro
# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, AOSC,
# Apricity, ArcoLinux, ArchBox, ARCHlabs, ArchStrike,
# XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, Bitrig,
# BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
# DesaOS, Devuan, DracOS, DragonFly, Drauger, Elementary,
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Gentoo, Pentoo,
# gNewSense, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
# NuTyX, OBRevenge, OpenBSD, OpenIndiana, OpenMandriva,
# OpenWrt, osmc, Oracle, PacBSD, Parabola, Pardus, Parrot,
# Parsix, TrueOS, PCLinuxOS, Peppermint, popos, Porteus,
# PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, Raspbian,
# Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, Regata,
# Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, Septor,
# SharkLinux, Siduction, Slackware, SliTaz, SmartOS, Solus,
# Source_Mage, Sparky, Star, SteamOS, SunOS, openSUSE_Leap,
# openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, Trisquel,
# Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, Ubuntu,
# Void, Obarun, windows10, Windows7, Xubuntu, Zorin, and IRIX
# have ascii logos
# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
# Use '{distro name}_old' to use the old logos.
# NOTE: Ubuntu has flavor variants.
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
# postmarketOS, and Void have a smaller logo variant.
# Use '{distro name}_small' to use the small variants.
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"

View File

@@ -0,0 +1,26 @@
#!/bin/bash
source $PWD/common/scripts/update.sh
source $PWD/common/scripts/first_install.sh
source $PWD/common/apps/git.sh
source $PWD/common/apps/lsd.sh
source $PWD/common/apps/ncdu.sh
source $PWD/common/apps/neofetch.sh
source $PWD/common/apps/trash-cli.sh
update
first_install
install_git
install_lsd
install_ncdu
echo 'echo ""' | sudo tee -a /etc/bash.bashrc > /dev/null
sudo python3 write_bashrc.py /home/ /root/
install_neofetch
install_trash_cli
# clean motd
# sudo rm -f /etc/motd
# sudo rm -f /etc/update-motd.d/*

View File

View File

View File

@@ -0,0 +1,54 @@
ArcMenu Theme//rgba(28, 28, 28, 0.98)//rgba(211, 218, 227, 1)//rgb(63,62,64)//rgba(238, 238, 236, 0.1)//rgba(255,255,255,1)//rgb(63,62,64)//9//0//0//0//0//false//
Dark Blue Theme//rgb(25,31,34)//rgb(189,230,251)//rgb(41,50,55)//rgb(41,50,55)//rgba(255,255,255,1)//rgb(41,50,55)//9//1//5//12//24//true//
Light Blue Theme//rgb(255,255,255)//rgb(51,51,51)//rgb(235,235,235)//rgba(189,230,251,0.9)//rgba(89,89,89,1)//rgba(189,230,251,0.9)//9//1//5//12//24//true//
ArcMenu Theme//rgba(28, 28, 28, 0.98)//rgba(211, 218, 227, 1)//rgb(63,62,64)//rgba(238, 238, 236, 0.1)//rgba(255,255,255,1)//rgb(63,62,64)//9//0//0//0//0//false//
Dark Blue//rgb(25,31,34)//rgb(189,230,251)//rgb(41,50,55)//rgb(41,50,55)//rgba(255,255,255,1)//rgb(41,50,55)//9//1//5//12//24//true//
Light Blue//rgb(255,255,255)//rgb(51,51,51)//rgb(235,235,235)//rgba(189,230,251,0.9)//rgba(89,89,89,1)//rgba(189,230,251,0.9)//9//1//5//12//24//true//
Silk Desert//rgba(50,52,73,0.820946)//rgba(211, 218, 227, 1)//rgb(63,62,64)//rgba(238, 238, 236, 0.1)//rgba(255,255,255,1)//rgb(63,62,64)//11//0//0//0//0//false//
Breeze//rgb(237,237,243)//rgb(36,36,40)//rgba(63,62,64,0.246622)//rgba(61,174,235,0.55)//rgb(36,36,40)//rgb(210,210,215)//9//1//0//0//0//false//
Breeze Dark//rgb(49,53,61)//rgb(237,237,243)//rgba(63,62,64,0.246622)//rgba(61,174,235,0.55)//rgb(237,237,243)//rgb(65,69,73)//9//1//0//0//0//false//
Dark Blue 2//rgb(50,52,61)//rgb(211,217,227)//rgba(211,217,227,0.2)//rgb(81,149,226)//rgba(255,255,255,1)//rgba(211,217,227,0.5)//9//1//4//0//0//false//
Dark Orange//rgb(51,51,51)//rgb(226,224,221)//rgba(174,167,159,0.2)//rgb(233,84,32)//rgba(255,255,255,1)//rgba(233,84,32,0.5)//9//1//4//12//24//true//
Light Orange//rgb(246,246,245)//rgb(76,76,76)//rgba(51,51,51,0.2)//rgb(233,84,32)//rgba(114,114,114,1)//rgba(233,84,32,0.5)//9//1//4//12//24//true//
Blue Orange//rgb(44,62,80)//rgb(189,195,199)//rgba(189,195,199,0.2)//rgb(231,76,60)//rgba(227,233,237,1)//rgba(189,195,199,0.5)//9//1//4//0//0//false//
Light Purple//rgb(237,245,252)//rgb(39,45,45)//rgba(39,45,45,0.2)//rgba(144,112,164,0.5)//rgba(77,83,83,1)//rgba(144,112,164,0.5)//9//1//6//0//0//false//
Dark Green//rgb(27,34,36)//rgb(243,243,243)//rgba(46,149,130,0.2)//rgb(46,149,130)//rgba(255,255,255,1)//rgba(46,149,130,0.35)//9//1//6//0//0//true//
Gray//rgb(142,142,142)//rgb(255,255,255)//rgb(63,62,64)//rgba(238, 238, 236, 0.1)//rgba(255,255,255,1)//rgb(63,62,64)//11//0//0//0//0//false//
Terminal Green//rgba(28, 28, 28, 0.98)//rgb(17,164,40)//rgb(63,62,64)//rgba(17,164,40,0.641892)//rgba(255,255,255,1)//rgb(63,62,64)//9//0//0//0//0//false//
Sky Clear//rgba(64,145,191,0.756757)//rgb(243,243,243)//rgb(63,62,64)//rgba(135,64,191,0.253378)//rgba(255,255,255,1)//rgb(63,62,64)//9//0//0//0//0//false//
Ubi Purple//rgba(174,64,191,0.523649)//rgb(243,243,243)//rgb(63,62,64)//rgba(189,191,64,0.763514)//rgba(255,255,255,1)//rgb(63,62,64)//9//0//0//0//0//false//
Shade//rgb(46,52,54)//rgb(186,189,182)//rgb(63,62,64)//rgb(85,87,83)//rgb(238,238,236)//rgb(63,62,64)//9//0//0//0//0//false//
Red Shade//rgba(191,64,74,0.753378)//rgb(243,243,243)//rgb(63,62,64)//rgb(85,87,83)//rgb(238,238,236)//rgb(63,62,64)//9//0//0//0//0//false//
Tilk Blue//rgba(74,179,228,0.716216)//rgb(243,243,243)//rgb(63,62,64)//rgb(85,87,83)//rgb(238,238,236)//rgb(63,62,64)//9//0//0//0//0//false//
Green Blue//rgb(87,121,89)//rgb(189,230,251)//rgb(41,50,55)//rgb(41,50,55)//rgba(255,255,255,1)//rgb(41,50,55)//9//1//5//12//24//true//
Gray Blue//rgb(136,138,133)//rgb(189,230,251)//rgb(41,50,55)//rgb(41,50,55)//rgba(255,255,255,1)//rgb(41,50,55)//9//1//5//12//24//true//
Pastel//rgb(238,238,236)//rgb(46,52,54)//rgb(63,62,64)//rgb(233,185,110)//rgb(173,127,168)//rgb(63,62,64)//9//0//0//0//0//false//
Pastel 2//rgb(238,238,236)//rgb(46,52,54)//rgb(63,62,64)//rgba(191,64,190,0.344595)//rgb(114,159,207)//rgb(63,62,64)//9//0//0//0//0//false//
Pastel 3//rgb(238,238,236)//rgb(46,52,54)//rgb(63,62,64)//rgba(64,137,191,0.358108)//rgb(78,154,6)//rgb(63,62,64)//9//0//0//0//0//false//
Pastel 4//rgb(238,238,236)//rgb(46,52,54)//rgb(63,62,64)//rgba(64,191,70,0.307432)//rgb(196,160,0)//rgb(63,62,64)//9//0//0//0//0//false//
Dark Pastel//rgb(46,52,54)//rgb(243,243,243)//rgb(63,62,64)//rgb(233,185,110)//rgb(173,127,168)//rgb(63,62,64)//9//0//0//0//0//false//
Dark Pastel 2//rgb(46,52,54)//rgb(243,243,243)//rgb(63,62,64)//rgba(191,64,190,0.344595)//rgb(114,159,207)//rgb(63,62,64)//9//0//0//0//0//false//
Dark Pastel 3//rgb(46,52,54)//rgb(243,243,243)//rgb(63,62,64)//rgba(64,137,191,0.358108)//rgb(78,154,6)//rgb(63,62,64)//9//0//0//0//0//false//
Dark Pastel 4//rgb(46,52,54)//rgb(243,243,243)//rgb(63,62,64)//rgba(64,191,70,0.307432)//rgb(196,160,0)//rgb(63,62,64)//9//0//0//0//0//false//
Yellow Shade//rgb(196,160,0)//rgb(46,52,54)//rgb(63,62,64)//rgb(85,87,83)//rgb(238,238,236)//rgb(63,62,64)//9//0//0//0//0//false//
Adapta//rgb(250,251,252)//rgb(34,45,50)//rgb(81,84,86)//rgba(0,150,136,0.121711)//rgba(72,83,88,1)//rgb(0,150,136)//11//0//8//12//24//true//
Adapta Nokto//rgb(38,50,56)//rgb(205,215,218)//rgb(38,50,56)//rgba(125,131,134,0.207237)//rgba(243,253,255,1)//rgb(0,188,212)//11//0//8//12//24//true//
Arc//rgb(245,246,247)//rgb(55,54,68)//rgba(82,148,226,0.903915)//rgba(56,55,68,0.0782918)//rgba(93,92,106,1)//rgb(82,148,226)//11//0//8//12//24//true//
Arc Dark//rgb(56,60,74)//rgb(188,195,205)//rgba(82,148,226,0.903915)//rgba(188,195,205,0.188612)//rgba(226,233,243,1)//rgb(82,148,226)//11//0//8//12//24//true//
Pop!_OS Dark//rgb(69,63,63)//rgb(188,185,183)//rgb(68,61,58)//rgba(250,164,26,0.885135)//rgba(226,223,221,1)//rgb(50,128,138)//11//0//8//12//24//true//
Pop!_OS//rgb(250,251,252)//rgb(87,79,74)//rgba(188,185,183,0.722973)//rgba(250,164,26,0.885135)//rgba(125,117,112,1)//rgb(72,185,199)//11//0//8//12//24//true//
McOS CTLina//rgba(243,243,243,0.841549)//rgb(32,32,32)//rgba(243,243,243,0.841549)//rgb(203,204,207)//rgba(70,70,70,1)//rgb(61,140,248)//11//0//8//12//24//true//
McOS CTLina Dark//rgba(47,47,46,0.873239)//rgb(198,194,194)//rgb(44,45,44)//rgb(37,87,214)//rgba(236,232,232,1)//rgb(37,87,214)//11//0//8//12//24//true//
Android Dark Blue//rgb(63,62,64)//rgb(243,243,243)//rgb(0,177,251)//rgba(237,250,12,0.35473)//rgba(255,255,255,1)//rgb(0,177,251)//11//0//4//12//24//true//
Android Light Blue//rgb(255,255,255)//rgb(63,62,64)//rgb(0,177,251)//rgba(237,250,12,0.35473)//rgba(101,100,102,1)//rgb(0,177,251)//11//0//4//12//24//true//
Android Light Green//rgb(255,255,255)//rgb(63,62,64)//rgb(4,149,90)//rgba(143,219,207,0.334459)//rgba(101,100,102,1)//rgb(237,250,12)//11//0//4//12//24//true//
Android Dark Green//rgb(46,52,54)//rgb(243,243,243)//rgb(4,149,90)//rgba(143,219,207,0.334459)//rgba(255,255,255,1)//rgb(237,250,12)//11//0//4//12//24//true//
Android Dark Yaru//rgb(46,52,54)//rgb(243,243,243)//rgb(189,86,53)//rgba(247,186,36,0.405405)//rgba(255,255,255,1)//rgb(189,86,53)//11//0//4//12//24//true//
Android Light Yaru//rgb(255,255,255)//rgb(63,62,64)//rgb(189,86,53)//rgba(247,186,36,0.405405)//rgba(101,100,102,1)//rgb(189,86,53)//11//0//4//12//24//true//
Adapta 4k Dark//rgb(49,59,67)//rgb(243,243,243)//rgb(4,149,90)//rgba(0,177,251,0.337838)//rgba(255,255,255,1)//rgb(4,149,90)//11//1//4//12//24//true//
Adapta 4k Light//rgb(255,255,255)//rgb(46,52,54)//rgb(4,149,90)//rgba(0,177,251,0.337838)//rgba(84,90,92,1)//rgb(4,149,90)//11//1//4//12//24//true//
Neon Yellow Punk//rgb(49,59,67)//rgb(237,250,12)//rgb(4,149,90)//rgba(0,177,251,0.337838)//rgba(248,255,109,1)//rgb(4,149,90)//11//1//4//12//24//true//
Halo Dark Blue//rgba(49,59,67,0.841216)//rgb(243,243,243)//rgb(4,149,90)//rgba(0,177,251,0.337838)//rgba(255,255,255,1)//rgb(4,149,90)//11//1//4//12//24//true//
Halo Dark Jade//rgba(24,81,58,0.875)//rgb(243,243,243)//rgb(4,149,90)//rgba(0,177,251,0.337838)//rgba(255,255,255,1)//rgb(4,149,90)//11//1//4//12//24//true//
Halo Dark Amber//rgba(84,34,18,0.881757)//rgb(243,243,243)//rgb(247,186,36)//rgba(247,186,36,0.472973)//rgba(255,255,255,1)//rgb(247,186,36)//11//1//4//12//24//true//
Elegant Purple Haze//rgba(41,1,31,0.881757)//rgb(243,243,243)//rgba(112,8,67,0.425676)//rgba(112,8,67,0.425676)//rgba(255,255,255,1)//rgb(176,52,139)//11//0//4//12//24//true//

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,8 @@
[/]
available-monitors=[1, 0, 2]
hotkeys-overlay-combo='TEMPORARILY'
multi-monitors=true
panel-element-positions='{"0":[{"element":"showAppsButton","visible":false,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":true,"position":"stackedTL"},{"element":"taskbar","visible":false,"position":"stackedTL"},{"element":"centerBox","visible":false,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"centered"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}],"1":[{"element":"showAppsButton","visible":false,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":true,"position":"stackedTL"},{"element":"taskbar","visible":false,"position":"stackedTL"},{"element":"centerBox","visible":false,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"centered"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}],"2":[{"element":"showAppsButton","visible":false,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":true,"position":"stackedTL"},{"element":"taskbar","visible":false,"position":"stackedTL"},{"element":"centerBox","visible":false,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"centered"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}]}'
panel-positions='{"0":"TOP","1":"TOP","2":"TOP"}'
panel-size=24
primary-monitor=1

View File

@@ -0,0 +1,60 @@
#!/bin/bash
source $PWD/common/scripts/update.sh
source $PWD/common/scripts/first_install.sh
source $PWD/common/apps/barrier.sh
source $PWD/common/apps/boxes.sh
source $PWD/common/apps/chrome.sh
source $PWD/common/apps/discord.sh
source $PWD/common/apps/etcher.sh
source $PWD/common/apps/flameshot.sh
source $PWD/common/apps/geary.sh
source $PWD/common/apps/git.sh
source $PWD/common/apps/gnome_shell.sh
source $PWD/common/apps/gnome_tweaks.sh
source $PWD/common/apps/gpick.sh
source $PWD/common/apps/kcolorchooser.sh
source $PWD/common/apps/keepassxc.sh
source $PWD/common/apps/lsd.sh
source $PWD/common/apps/ncdu.sh
source $PWD/common/apps/neofetch.sh
source $PWD/common/apps/nextcloud.sh
source $PWD/common/apps/signal.sh
source $PWD/common/apps/stacer.sh
source $PWD/common/apps/sublime_text.sh
source $PWD/common/apps/timeshift.sh
source $PWD/common/apps/trash-cli.sh
source $PWD/common/apps/ulauncher.sh
source $PWD/common/apps/vscode.sh
update
first_install
install_barrier
install_boxes
install_chrome
install_discord
install_etcher
install_flameshot
install_geary
install_git
install_gnome_shell
install_gnome_tweaks
install_gpick
install_kcolorchooser
install_keepassxc
install_lsd
install_ncdu
install_neofetch
install_nextcloud
install_signal
install_stacer
install_sublime_text
install_timeshift
install_trash_cli
install_ulauncher
# IDEs
install_vscode

View File

@@ -0,0 +1,18 @@
#!/bin/bash
source $PWD/common/scripts/update.sh
source $PWD/common/themes/orchis.sh
source $PWD/common/themes/tela_circle_icons.sh
source $PWD/common/themes/vimix_cursors.sh
source $PWD/common/themes/grub_theme.sh
source $PWD/common/themes/chrome-icon-fix.sh
update
install_orchis orange
install_tela_circle_icons
install_vimix_cursors
install_grub_theme vimix 1080p
fix_chrome_icons

View File

@@ -0,0 +1,66 @@
#!/bin/bash
source $PWD/common/scripts/update.sh
source $PWD/common/scripts/first_install.sh
source $PWD/common/apps/snap/pycharm.sh
source $PWD/common/apps/snap/simplenote.sh
source $PWD/common/apps/barrier.sh
source $PWD/common/apps/boxes.sh
source $PWD/common/apps/chrome.sh
source $PWD/common/apps/discord.sh
source $PWD/common/apps/etcher.sh
source $PWD/common/apps/flameshot.sh
source $PWD/common/apps/geary.sh
source $PWD/common/apps/git.sh
source $PWD/common/apps/gnome_shell.sh
source $PWD/common/apps/gnome_tweaks.sh
source $PWD/common/apps/gpick.sh
source $PWD/common/apps/kcolorchooser.sh
source $PWD/common/apps/keepassxc.sh
source $PWD/common/apps/lsd.sh
source $PWD/common/apps/ncdu.sh
source $PWD/common/apps/neofetch.sh
source $PWD/common/apps/nextcloud.sh
source $PWD/common/apps/signal.sh
source $PWD/common/apps/stacer.sh
source $PWD/common/apps/sublime_text.sh
source $PWD/common/apps/timeshift.sh
source $PWD/common/apps/trash-cli.sh
source $PWD/common/apps/ulauncher.sh
source $PWD/common/apps/vscode.sh
update
default_install
install_simplenote
install_barrier
install_boxes
install_chrome
install_discord
install_etcher
install_flameshot
install_geary
install_git
install_gnome_shell
install_gnome_tweaks
install_gpick
install_kcolorchooser
install_keepassxc
install_lsd
install_ncdu
install_neofetch
install_nextcloud
install_signal
install_stacer
install_sublime_text
install_timeshift
install_trash_cli
install_ulauncher
# IDEs
install_pycharm
install_vscode

View File

@@ -0,0 +1,7 @@
#!/bin/bash
source $PWD/common/scripts/first_install.sh
source $PWD/common/scripts/update.sh
first_install
update

View File

@@ -0,0 +1,26 @@
#!/bin/bash
source $PWD/common/scripts/update.sh
source $PWD/common/scripts/first_install.sh
# source $PWD/common/apps/git.sh
source $PWD/common/apps/lsd.sh
source $PWD/common/apps/ncdu.sh
source $PWD/common/apps/neofetch.sh
source $PWD/common/apps/trash-cli.sh
update
first_install
# install_git # maybe destroying systemd
install_lsd
install_ncdu
sudo python3 $PWD/users/vsrv/scripts/write_bashrc.py /home/ /root/
install_neofetch
install_trash_cli
# clean motd
# sudo rm -f /etc/motd
# sudo rm -f /etc/update-motd.d/*

View File

@@ -0,0 +1,105 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Write bashrc script
~~~~~~~~~~~~~~~~~~~
Script to comment all alias ls="ls *" to allow global bashrc alias ls="lsd"
:copyright: (c) 2021 sh-edraft.de
:license: MIT, see LICENSE for more details.
At first check for root
Then load all .bashrc files from /home/<user>/
Each folder in /home/ must contain a .bashrc file, if not it won't be created
Usage: sudo python write_bashrc.py <home-dir> <root-dir>
Example: sudo python write_bashrc.py /home/ /root/
"""
__title__ = 'sh_write_bashrc'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2021 sh-edraft.de'
__version__ = '2021.4'
import os
import sys
_file_name = '.bashrc'
def _check_dependencies():
if sys.platform != 'linux':
raise Exception('You must use this script on linux!')
if os.geteuid() != 0:
raise PermissionError('You must be root to use this script on linux.')
def _load_all_scripts(home_dir: str, root_user_dir: str) -> list:
files = []
for user in os.listdir(home_dir):
file = os.path.join(home_dir, user, _file_name)
if os.path.isfile(file):
files.append(file)
file = os.path.join(root_user_dir, 'root', _file_name)
if os.path.isfile(file):
files.append(file)
return files
def _edit_script(file: str):
lines: list[str] = []
content = ''
try:
with open(file, 'r') as f:
lines = f.readlines()
f.close()
except Exception as e:
print(e)
for line in lines:
line_words = line.split()
e_line = ' '.join(line_words)
if not e_line.startswith('#') and e_line.startswith('alias ls'):
line = line.replace(e_line, f'#{e_line}')
elif not e_line.startswith('#') and e_line.startswith('alias') and '\'ls' in e_line or '\"ls' in e_line:
line = line.replace(e_line, f'#{e_line}')
content += line
try:
pass
with open(file, 'w') as f:
f.write(content)
f.close()
except Exception as e:
print(e)
def main():
if len(sys.argv) < 3:
print('Usage: sudo python write_bashrc.py <home-dir> <root-dir>')
exit()
_check_dependencies()
files = _load_all_scripts(sys.argv[1], sys.argv[2])
for file in files:
_edit_script(file)
print('Success!', '\nChanged files:')
print('\n'.join(files))
if __name__ == '__main__':
main()