Merge branch 'master' of github.com:ahub2/my-scripts

master
Alex 2023-04-20 22:00:21 -05:00
commit 0f307df208
8 changed files with 51 additions and 6 deletions

View File

@ -1,7 +1,7 @@
pkgname="ajh-base" pkgname="ajh-base"
pkgver="1.0.0" pkgver="1.0.0"
pkgver="1" pkgver="1"
pkgrel="9" pkgrel="10"
pkgdesc="Install my config for Arch based systems." pkgdesc="Install my config for Arch based systems."
arch=("any") arch=("any")
@ -20,7 +20,6 @@ depends=(
"fuse" "fuse"
"mesa" "mesa"
"libva-mesa-driver" "libva-mesa-driver"
"connman"
"brightnessctl" "brightnessctl"
"cifs-utils" "cifs-utils"

View File

@ -8,7 +8,6 @@ sysrq-enabler
wlr-randr wlr-randr
sfeed sfeed
ani-cli-git ani-cli-git
connman-gtk
lf-sixel-git lf-sixel-git
autotiling autotiling
shellcheck-bin shellcheck-bin

View File

@ -0,0 +1,11 @@
[Match]
Name=enp3s0
[Network]
DHCP=yes
[DHCPv4]
RouteMetric=10
[IPv6AcceptRA]
RouteMetric=10

View File

@ -0,0 +1,11 @@
[Match]
Name=wlan0
[Network]
DHCP=yes
[DHCPv4]
RouteMetric=20
[IPv6AcceptRA]
RouteMetric=20

View File

@ -28,7 +28,7 @@ wireless() {
sudo systemctl enable tlp.service sudo systemctl enable tlp.service
sudo systemctl enable bluetooth.service sudo systemctl enable bluetooth.service
sudo systemctl enable connman.service #sudo systemctl enable connman.service
sudo systemctl enable iwd.service sudo systemctl enable iwd.service
echo "Done installing wireless programs." echo "Done installing wireless programs."

View File

@ -0,0 +1,12 @@
#!/bin/sh
sudo pacman -S npm cargo
rm -rf ~/.config/nvim/
rm -rf ~/.local/share/nvim/
mkdir ~/.config/nvim
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
rm -rf ~/.config/nvim/lua/custom/
ln -s ~/.config/nvchad/custom/ ~/.config/nvim/lua/

View File

@ -0,0 +1,11 @@
#!/bin/sh
echo "copying default systemd-networkd config files located in: "
echo " ../files/systemd/network/basic/ to: /etc/systemd/network/"
echo " modify these files if there is no internet connectivity."
echo " see available network devices (Name=*) with: ls /sys/class/net/"
sudo cp ../files/systemd/network/basic/* /etc/systemd/network/
sudo systemctl enable --now systemd-networkd.service
sudo systemctl enable --now systemd-resolved.service

View File

@ -22,6 +22,8 @@ MAIL_DIR="$HOME/.local/share/mail"
SEP=" | " SEP=" | "
BATTERY_DEV="$(ls /sys/class/power_supply | grep -v AC)"
ddate () { ddate () {
printf " %s\n" "$(date "+%b %d, %Y ( %I:%M )")" #(%a) printf " %s\n" "$(date "+%b %d, %Y ( %I:%M )")" #(%a)
} }
@ -100,7 +102,7 @@ cputemp() {
battery() { battery() {
#BATT_DIR="/sys/class/power_supply/BAT0" #BATT_DIR="/sys/class/power_supply/BAT0"
BATT_DIR="/sys/class/power_supply/cw2015-battery" BATT_DIR="/sys/class/power_supply/$BATTERY_DEV"
if [ -d "$BATT_DIR" ]; then if [ -d "$BATT_DIR" ]; then
status="$(cat "$BATT_DIR"/status)" status="$(cat "$BATT_DIR"/status)"
charge="$(cat "$BATT_DIR"/capacity)" charge="$(cat "$BATT_DIR"/capacity)"
@ -123,7 +125,7 @@ crypto() {
} }
update() { update() {
echo " $SEP$(battery)$SEP$(netup)$SEP$(audio)$SEP$(rss)$SEP$(weather)$SEP$(ddate) " echo " $SEP$(battery)$SEP$(cputemp)$SEP$(netup)$SEP$(audio)$SEP$(rss)$SEP$(weather)$SEP$(ddate) "
} }