Added
Signed-off-by: Marcin Wozniak <y0rune@aol.com>
This commit is contained in:
parent
e53c625e08
commit
3765f00fff
23
.Xinitrc
Normal file
23
.Xinitrc
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||
xrandr --auto
|
||||
xset s off -dpms&
|
||||
xset b off&
|
||||
xset s off&
|
||||
xset -dpms&
|
||||
compton&
|
||||
feh --bg-fill $HOME/.wall.jpg &
|
||||
redshift -l 53.2327:18.3036 -t 6500:3200&
|
||||
nm-applet --sm-disable&
|
||||
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; split-window -h 'newsboat'\; split-window 'cmus'\; split-window 'htop'"&
|
||||
sudo /root/.local/bin/protonvpn c -f&
|
||||
google-chrome-stable --force-device-scale-factor=1.25&
|
||||
thunderbird-bin&
|
||||
sudo keepassxc&
|
||||
dunst -config&
|
||||
transmission-daemon&
|
||||
(sleep 30 && getforecast)&
|
||||
sudo /usr/bin/rdate -s -l ntp.task.gda.pl && sudo /sbin/hwclock --systohc
|
||||
/opt/MEGAcmd/mega-cmd-server --debug-full > /var/log/megacmd/megacmd.log&
|
||||
dwmstatusbar&
|
||||
exec dbus-launch dwm
|
57
.gitignore
vendored
Normal file
57
.gitignore
vendored
Normal file
@ -0,0 +1,57 @@
|
||||
.Xauthority
|
||||
.anthy/
|
||||
.bash_history
|
||||
.bash_logout
|
||||
.bash_profile
|
||||
.bashrc
|
||||
.cache/
|
||||
.cert/
|
||||
.config/
|
||||
.dbus/
|
||||
.fehbg
|
||||
.ghc/
|
||||
.gitconfig
|
||||
.gnome/
|
||||
.gnupg/
|
||||
.history_zsh
|
||||
.irssi/
|
||||
.java/
|
||||
.jd2/
|
||||
.lesshst
|
||||
.local/lib64/
|
||||
.local/share/
|
||||
.megaCmd/
|
||||
.minecraft/
|
||||
.mozilla/
|
||||
.nv/
|
||||
.openoffice/
|
||||
.oracle_jre_usage/
|
||||
.pki/
|
||||
.pvpn-cli/
|
||||
.ssh/
|
||||
.sshservers
|
||||
.steam/
|
||||
.steampath
|
||||
.steampid
|
||||
.thunderbird/
|
||||
.tlauncher/
|
||||
.ts3client/
|
||||
.var/
|
||||
.viminfo
|
||||
.vscode-oss/
|
||||
.vscode-server/
|
||||
.w3m/
|
||||
.wine/
|
||||
.zcompdump-Gentoo-5.8
|
||||
Documents
|
||||
Downloads
|
||||
Linux
|
||||
MEGA
|
||||
Muzyka
|
||||
Screenshots
|
||||
Wallpapers
|
||||
developer-quiz.txt
|
||||
git/
|
||||
ittv-credentials
|
||||
mcserver/
|
||||
www
|
@ -1 +0,0 @@
|
||||
sudo mkdir -p /mnt/backup/mcserver/$(/bin/date +%Y-%m-%d); sudo chown yorune:yorune -R /mnt/backup/mcserver/$(/bin/date +%Y-%m-%d); sudo cp -rv /home/yorune/mcserver/* /mnt/backup/mcserver/$(/bin/date +%Y-%m-%d)
|
78
.local/bin/dwmstatusbar
Executable file
78
.local/bin/dwmstatusbar
Executable file
@ -0,0 +1,78 @@
|
||||
#!/bin/bash
|
||||
testweather() {
|
||||
[ "$(stat -c %y "/home/yorune/.config/weatherreport" 2>/dev/null | cut -d' ' -f1)" != "$(date '+%Y-%m-%d')" ] && curl -s "wttr.in/$location" > "/home/yorune/.config/weatherreport"
|
||||
|
||||
printf "%s " "$(sed '16q;d' "/home/yorune/.config/weatherreport" | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/ /g" | tr -d '\n')" && sed '13q;d' "/home/yorune/.config/weatherreport" | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ",$1 "°","",$2 "°"}'
|
||||
}
|
||||
|
||||
|
||||
print_volume() {
|
||||
[ "$(pulsemixer --get-mute)" = "1" ] && printf "" && exit
|
||||
vol=$(pulsemixer --get-volume | awk '{print $1}')
|
||||
printf "%s%%\\n" " $vol"
|
||||
}
|
||||
|
||||
print_wifi(){
|
||||
[ "$(stat -c %y "/home/yorune/.config/vpn" 3>/dev/null | egrep -o '[0-9]+\-[0-9]+\-[0-9]+ [0-9]+')" != "$(date '+%Y-%m-%d %H')" ] && sudo /root/.local/bin/protonvpn status | grep -i Status | awk {'print $2'} > "/home/yorune/.config/vpn"
|
||||
|
||||
|
||||
echo -e "$(cat /sys/class/net/w*/operstate | sed "s/down//;s/up//") $(cat /sys/class/net/e*/operstate | sed "s/down//;s/up//") $(cat /home/yorune/.config/vpn | sed 's/Connected//g;s/Disconnected//g')"
|
||||
|
||||
}
|
||||
|
||||
print_temp(){
|
||||
echo -e " $(sensors | awk '/Core 0/ {print $3}') +$(sudo nvidia-smi -q -d temperature | grep --color=no -i "GPU Current" |egrep --color=no -o '[0-9]*').0°C"
|
||||
}
|
||||
|
||||
print_date(){
|
||||
echo -e " $(date +"%d/%m %H:%M:%S")"
|
||||
}
|
||||
|
||||
print_mem(){
|
||||
memfree=$(($(grep -m1 'MemAvailable:' /proc/meminfo | awk '{print $2}') / 1024))
|
||||
echo -e " $memfree"
|
||||
}
|
||||
|
||||
batLevel() {
|
||||
# Find the battery level
|
||||
hash acpi || return 0
|
||||
onl="$(acpi -V | grep "on-line")"
|
||||
charge="$(cat /sys/class/power_supply/BAT*/capacity)"
|
||||
time="$(awk '{print $5}' <(acpi))"
|
||||
|
||||
# Determine battery glyph by percentage range
|
||||
if [[ -z $onl && ${charge} -gt 80 ]]; then
|
||||
echo -e " ${charge}% ${time}"
|
||||
elif [[ -z $onl && ${charge} -le 80 && ${charge} -gt 60 ]]; then
|
||||
echo -e " ${charge}% ${time}"
|
||||
elif [[ -z $onl && ${charge} -le 60 && ${charge} -gt 40 ]]; then
|
||||
echo -e " ${charge}% ${time}"
|
||||
elif [[ -z $onl && ${charge} -le 40 && ${charge} -gt 20 ]]; then
|
||||
echo -e " ${charge}% ${time}"
|
||||
elif [[ -z $onl && ${charge} -le 20 ]]; then
|
||||
echo -e " ${charge}% ${time}"
|
||||
# If charging, use animated glyph
|
||||
else
|
||||
echo -e ""
|
||||
fi
|
||||
}
|
||||
|
||||
usageData() {
|
||||
read cpu a b c pi rest < /proc/stat
|
||||
pt=$((a+b+c+pi))
|
||||
sleep 0.1
|
||||
read cpu a b c i rest < /proc/stat
|
||||
t=$((a+b+c+i))
|
||||
cpuUse=$((100*( (t-pt) - (i-pi) ) / (t-pt) ))
|
||||
|
||||
ramUseA=$(free -m -h | grep Mem | awk '{print $3"/"$2}')
|
||||
ramPer=$(free -m | grep Mem | awk '{print 100*($3/$2)}')
|
||||
ramUseB="${ramPer%.*}"
|
||||
|
||||
echo -e " $cpuUse% $ramUseB%"
|
||||
}
|
||||
|
||||
while true
|
||||
do
|
||||
xsetroot -name "$(print_temp) | $(print_mem) | $(print_wifi) | $(testweather) | $(batLevel) | $(print_volume) | $(print_date)"
|
||||
done
|
@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
rm -rf /tmp/steven /tmp/luke /tmp/hosts
|
||||
wget -O /tmp/steven https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts
|
||||
|
||||
wget -O /tmp/luke https://raw.githubusercontent.com/LukeSmithxyz/etc/master/ips
|
||||
|
||||
cat /tmp/luke >> /tmp/steven
|
||||
|
||||
cat /tmp/steven | sort | uniq -d | sed '/^#/d' >> /tmp/hosts
|
||||
|
||||
sudo mv /tmp/hosts /etc/hosts
|
@ -1,26 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
# Sync mail and give notification if there is new mail.
|
||||
|
||||
# Checks for internet connection and set notification script.
|
||||
ping -q -c 1 1.1.1.1 > /dev/null || exit
|
||||
command -v notify-send >/dev/null || echo "Note that \`libnotify\` or \`libnotify-send\` should be installed for pop-up mail notifications with this script."
|
||||
|
||||
export DISPLAY=:0.0
|
||||
# IKONKA SYNC ##echo " 🔃" > /tmp/imapsyncicon_$USER
|
||||
pkill -RTMIN+12 i3blocks
|
||||
|
||||
# Run mbsync. You can feed this script different settings.
|
||||
mbsync -a
|
||||
|
||||
# IKONKA SYNC #rm -f /tmp/imapsyncicon_$USER
|
||||
pkill -RTMIN+12 i3blocks
|
||||
|
||||
RESULT=$(echo "$(du -a ~/.mailbox/*/inbox/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon_$USER 2>/dev/null)")
|
||||
#if [ -z $RESULT ]; then
|
||||
# echo ""
|
||||
#else
|
||||
# notify-send "mutt-wizard" "📬 new mail(s)"
|
||||
#fi
|
||||
|
||||
#Create a touch file that indicates the time of the last run of mailsync
|
||||
touch "$HOME/.mutt/.mailsynclastrun"
|
@ -1,22 +0,0 @@
|
||||
#! /bin/bash
|
||||
broadcast=$(ip a | awk '$1 == "inet" && $4 !~ /^127/ { print $4"/24" }' | uniq)
|
||||
|
||||
RED='\033[0;31m'
|
||||
GRAY='\033[0;37m'
|
||||
GREEN='\033[0;32m'
|
||||
NC='\033[0m'
|
||||
|
||||
clear
|
||||
printf "${GRAY}Executing nmap on the subnets: ${RED}\n$broadcast\n"
|
||||
candidates=$(
|
||||
for brdip in ${broadcast}; do
|
||||
nmap -sP $brdip | awk '$2 == "scan" { print $5 }'
|
||||
done)
|
||||
printf "${GRAY}\nFound the following candidates: ${GREEN}\n$candidates\n"
|
||||
for ip in ${candidates}; do
|
||||
printf "${GRAY}\nProbing $ip...\n${NC}"
|
||||
ssh -q root@$ip
|
||||
done
|
||||
clear
|
||||
echo "Nothing found"
|
||||
|
@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
nohup streamlink -p mpv https://www.twitch.tv/$1 best > /dev/null 2>&1 &
|
@ -1,8 +0,0 @@
|
||||
#!/usr/bin/python3.6
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
from wheel.cli import main
|
||||
if __name__ == '__main__':
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
Loading…
Reference in New Issue
Block a user