A lot of scripts

This commit is contained in:
Magic_RB 2019-12-30 14:19:42 +01:00
parent 9742deb56b
commit d38d84db1a
10 changed files with 234 additions and 0 deletions

View file

@ -0,0 +1,25 @@
## If not running interactively, don't do anything
[[ $- != *i* ]] && return
## Number of available package updates
alias vchup='xbps-install -nuM | wc -l'
## Update packages
alias vpu='sudo xbps-install -Su'
## Install package <package name>
alias vpi='sudo xbps-install -S'
## Remove package <package name>
alias vpr='sudo xbps-remove -R'
## Search package <package name>
alias vpq='xbps-query -Rs'
## Clean obsolete packages
alias vpc='sudo xbps-remove -Oo'
## Enable color on ls and grep
alias ls='ls --color=auto'
alias grep='grep --color=auto'
## Add .local/bin to path
export PATH="${HOME}/.local/bin:${PATH}"
## Set prompt
export PS1="\u@\[\e[37m\]\h\[\e[m\]:\[\e[32m\]\w\[\e[m\]\[\e[31m\]\\$\[\e[m\] "

View file

@ -0,0 +1,129 @@
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
[ColorEffects:Inactive]
ChangeSelectionColor=true
Color=112,111,110
ColorAmount=0.025
ColorEffect=2
ContrastAmount=0.1
ContrastEffect=2
Enable=false
IntensityAmount=0
IntensityEffect=0
[Colors:Button]
BackgroundAlternate=77,77,77
BackgroundNormal=66,66,66
DecorationFocus=59,80,116
DecorationHover=59,80,116
ForegroundActive=61,174,233
ForegroundInactive=105,105,105
ForegroundLink=66,133,244
ForegroundNegative=218,68,83
ForegroundNeutral=255,109,0
ForegroundNormal=255,255,255
ForegroundPositive=1,162,153
ForegroundVisited=0,188,212
[Colors:Complementary]
BackgroundAlternate=48,48,48
BackgroundNormal=40,40,40
DecorationFocus=30,146,255
DecorationHover=61,174,230
ForegroundActive=246,116,0
ForegroundInactive=175,176,179
ForegroundLink=61,174,230
ForegroundNegative=237,21,21
ForegroundNeutral=201,206,59
ForegroundNormal=239,240,241
ForegroundPositive=17,209,22
ForegroundVisited=61,174,230
[Colors:Selection]
BackgroundAlternate=29,153,243
BackgroundNormal=59,80,116
DecorationFocus=59,80,116
DecorationHover=59,80,116
ForegroundActive=252,252,252
ForegroundInactive=255,255,255
ForegroundLink=253,188,75
ForegroundNegative=218,68,83
ForegroundNeutral=255,109,0
ForegroundNormal=255,255,255
ForegroundPositive=1,162,153
ForegroundVisited=189,195,199
[Colors:Tooltip]
BackgroundAlternate=40,40,40
BackgroundNormal=40,40,40
DecorationFocus=59,80,116
DecorationHover=59,80,116
ForegroundActive=61,174,233
ForegroundInactive=105,105,105
ForegroundLink=66,133,244
ForegroundNegative=218,68,83
ForegroundNeutral=255,109,0
ForegroundNormal=223,223,223
ForegroundPositive=1,162,153
ForegroundVisited=0,188,212
[Colors:View]
BackgroundAlternate=48,48,48
BackgroundNormal=48,48,48
DecorationFocus=59,80,116
DecorationHover=59,80,116
ForegroundActive=61,174,233
ForegroundInactive=105,105,105
ForegroundLink=66,133,244
ForegroundNegative=218,68,83
ForegroundNeutral=255,109,0
ForegroundNormal=223,223,223
ForegroundPositive=1,162,153
ForegroundVisited=0,188,212
[Colors:Window]
BackgroundAlternate=48,48,48
BackgroundNormal=40,40,40
DecorationFocus=59,80,116
DecorationHover=59,80,116
ForegroundActive=61,174,233
ForegroundInactive=105,105,105
ForegroundLink=66,133,244
ForegroundNegative=218,68,83
ForegroundNeutral=255,109,0
ForegroundNormal=223,223,223
ForegroundPositive=1,162,153
ForegroundVisited=0,188,212
[General]
ColorScheme=Materia Dark
Name=Materia Dark
shadeSortColumn=true
widgetStyle=kvantum
[Icons]
Theme=Papirus-Dark
[KDE]
ShowIconsInMenuItems=true
ShowIconsOnPushButtons=true
contrast=4
[Toolbar style]
ToolButtonStyle=TextBesideIcon
ToolButtonStyleOtherToolbars=TextBesideIcon
[WM]
activeBackground=40,40,40
activeBlend=40,40,40
activeForeground=223,223,223
inactiveBackground=40,40,40
inactiveBlend=40,40,40
inactiveForeground=105,105,105

View file

@ -0,0 +1,11 @@
#!/bin/bash
sudo cpupower -c all frequency-set -g performance
qdbus org.kde.KWin /Compositor suspend
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"
sudo cpupower -c all frequency-set -g powersave
qdbus org.kde.KWin /Compositor resume

View file

@ -0,0 +1,7 @@
Section "Monitor"
Identifier "eDP-1"
DisplaySize 345 194
# 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
Option "Preferred Mode" "1920x1080x60"
EndSection

12
install-clion Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
CLION_DOWNLOAD_LINK=https://download.jetbrains.com/cpp/CLion-2019.3.2.tar.gz
read -p "Please specify the name and group of the user that should own CLion [user:group]: " usergroup
#wget -qO- ${CLION_DOWNLOAD_LINK} | sudo tar xvz -C /opt
sudo mv "/opt/clion-"* "/opt/clion"
sudo chown -R ${usergroup} "/opt/clion"
sudo chmod -R u+r,g+r,o+r "/opt/clion"

12
install-config Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
ABSPATH=`readlink -f $0`
DIRPATH=`dirname "$0"`
shopt -s dotglob
ls "${DIRPATH}/configs"
read -p "Please specify which config you want to install: " config
sudo rsync -r --perms --chmod=D775,F664 --chown=root:root "${DIRPATH}/configs/${config}/"* "/"

9
install-materia Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
wget -qO- https://raw.githubusercontent.com/PapirusDevelopmentTeam/materia-kde/master/install.sh | sh
for dir in "aurorae" "color-schemes" "konsole" "Kvantum" "plasma" "yakuake"; do
sudo chmod -R u+r,g+r,o+r "/usr/share/${dir}"
sudo find "/usr/share/${dir}" -type d -exec chmod u+x,g+x,o+x {} +
sudo chown root:root "/usr/share/${dir}"
done

8
install-papirus-icon-theme Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
wget -qO- https://git.io/papirus-icon-theme-install | sh
for theme in Papirus ePapirus Papirus-Dark Papirus-Light ; do
sudo chmod -R u+r,g+r,o+r "/usr/share/icons/${theme}"
sudo find "/usr/share/icons/${theme}" -type d -exec chmod u+x,g+x,o+x {} +
done

5
recopy-skel Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
shopt -s dotglob
rsync -r --perms --chmod=D770,F660 --chown="${USER}:${USER}" "/etc/skel/"* "/home/${USER}"

16
required-packages Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
declare -a PACKAGES=(
"cpupower"
"qt5-tools"
"vscode"
"kde5"
"xorg"
"konsole"
"dolphin"
"rsync"
"xorg"
"kde5"
)
echo "${PACKAGES[@]}"