-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6683cc6
commit 8c16710
Showing
28 changed files
with
655 additions
and
67 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
skip_list: | ||
- package-latest | ||
- command-instead-of-shell | ||
- no-handler | ||
- risky-file-permissions | ||
- risky-shell-pipe | ||
- no-relative-paths | ||
- experimental |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
extends: relaxed | ||
|
||
rules: | ||
comments-indentation: disable | ||
colons: false | ||
line-length: | ||
max: 300 | ||
level: warning | ||
indentation: | ||
spaces: consistent | ||
indent-sequences: consistent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# /etc/pam.d/common-password - password-related modules common to all services | ||
# | ||
# This file is included from other service-specific PAM config files, | ||
# and should contain a list of modules that define the services to be | ||
# used to change user passwords. The default is pam_unix. | ||
|
||
# Explanation of pam_unix options: | ||
# | ||
# The "sha512" option enables salted SHA512 passwords. Without this option, | ||
# the default is Unix crypt. Prior releases used the option "md5". | ||
# | ||
# The "obscure" option replaces the old `OBSCURE_CHECKS_ENAB' option in | ||
# login.defs. | ||
# | ||
# See the pam_unix manpage for other options. | ||
|
||
# As of pam 1.0.1-6, this file is managed by pam-auth-update by default. | ||
# To take advantage of this, it is recommended that you configure any | ||
# local modules either before or after the default block, and use | ||
# pam-auth-update to manage selection of other modules. See | ||
# pam-auth-update(8) for details. | ||
|
||
# here are the per-package modules (the "Primary" block) | ||
password [success=1 default=ignore] pam_unix.so sha512 minlen=1 | ||
# here's the fallback if no module succeeds | ||
password requisite pam_permit.so | ||
# prime the stack with a positive return value if there isn't one already; | ||
# this avoids us returning an error just because nothing sets a success code | ||
# since the modules above will each just jump around | ||
password required pam_permit.so | ||
# and here are more per-package modules (the "Additional" block) | ||
# end of pam-auth-update config |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
neofetch --config /etc/neofetch/config.conf | ||
if [ -f ~/.Xauthority ]; then | ||
xauth merge ~/.Xauthority | ||
fi | ||
export XAUTHORITY=$HOME/.Xauthority | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
# prepare (comment/uncomment lines according to our needs) | ||
|
||
config="/etc/neofetch/config.conf" | ||
config_dir="/etc/neofetch" | ||
|
||
if [ ! -d $config_dir ];then | ||
echo "No $config_dir exists - creating one" | ||
mkdir -v $config_dir | ||
fi | ||
|
||
if [ ! -e $config ];then | ||
if [ -e /root/.config/neofetch/config.conf ];then | ||
echo "Copying config from root to /etc/neofetch" | ||
cp -pv /root/.config/neofetch/config.conf $config | ||
fi | ||
fi | ||
|
||
if [ -e $config ]; then | ||
echo "Starting Neofetch configuration" | ||
# comment | ||
sed -i -e 's/^[[:blank:]]*info "Packages" packages/#info "Packages" packages/g' $config | ||
sed -i -e 's/^[[:blank:]]*info "Resolution" resolution/#info "Resolution" resolution/g' $config | ||
sed -i -e 's/^[[:blank:]]*info "DE" de/#info "DE" de/g' $config | ||
sed -i -e 's/^[[:blank:]]*info "WM" wm/#info "WM" wm/g' $config | ||
sed -i -e 's/^[[:blank:]]*info "WM Theme" wm_theme/#info "WM Theme" wm_theme/g' $config | ||
sed -i -e 's/^[[:blank:]]*info "Theme" theme/#info "Theme" theme/g' $config | ||
sed -i -e 's/^[[:blank:]]*info "Icons" icons/#info "Icons" icons/g' $config | ||
sed -i -e 's/^[[:blank:]]*info "Terminal" term/#info "Terminal" term/g' $config | ||
sed -i -e 's/^[[:blank:]]*info "Terminal Font" term_font/#info "Terminal Font" term_font/g' $config | ||
sed -i -e 's/^[[:blank:]]*info cols/#info cols/g' $config | ||
# uncomment | ||
sed -i -e 's/^[[:blank:]]*# info "Disk" disk/info "Disk" disk/g' $config | ||
sed -i -e 's/^[[:blank:]]*# info "Local IP" local_ip/info "Local IP" local_ip/g' $config | ||
# disable color block - workaround for HV console | ||
sed -i -e 's/color_blocks="on"/color_blocks="off"/g' $config | ||
echo "Finished Neofetch configuration" | ||
else | ||
echo "File $config doesn't exist - couldn't configure neofetch" | ||
fi |
Oops, something went wrong.