Compare commits

...

10 Commits

Author SHA1 Message Date
BitHeaven f5090b5062 Add more apps 2023-03-19 14:46:06 +05:00
BitHeaven 1b16e5151b
Update 0010_300_weather 2023-03-08 17:28:44 +05:00
BitHeaven a2530b3f18
Update 0010_300_weather 2023-03-08 17:28:13 +05:00
BitHeaven ea8ebd5001
Update 0010_300_weather 2023-03-08 17:12:41 +05:00
BitHeaven abd5b97495
Update 0010_300_weather 2023-03-08 17:06:00 +05:00
BitHeaven-Official db2199c05b update scripts 2023-03-02 14:37:56 +05:00
BitHeaven dd5cfd84fa
Update .bashrc 2022-10-09 16:06:14 +05:00
BitHeaven 858bf70aac
Update .profile 2022-10-07 19:15:39 +05:00
Linux User c9216a9ae9 New files. Updated dwmbar 2022-10-02 18:06:02 +00:00
Linux User f23656f6f2 move files 2022-10-02 15:44:44 +00:00
28 changed files with 300 additions and 54 deletions

View File

@ -88,6 +88,9 @@ __mkps1() {
echo "$ps1";
}
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name"|tee /dev/null;fi;}
alias transfer=transfer
# If not running interactively, don't do anything
case $- in
*i*) ;;

View File

@ -7,13 +7,49 @@ DELIM_START=0
mkdir -p ~/.local/tmp/
run() {
for FILE in $(ls ~/.local/scripts)
chmod +x -R ~/.local/scripts/
for FILE in $(ls ~/.local/scripts/status)
do
touch "$HOME/.local/tmp/.tmp_$(echo $FILE | cut -d'_' -f3)_BIT"
touch "$HOME/.local/tmp/.tmpSTATUS_$(echo $FILE | cut -d'_' -f3)_BIT"
{
while true
do
echo "$(sh ~/.local/scripts/$FILE)" > "$HOME/.local/tmp/.tmp_$(echo $FILE | cut -d'_' -f3)_BIT"
echo "$(. ~/.local/scripts/status/$FILE)" > "$HOME/.local/tmp/.tmpSTATUS_$(echo $FILE | cut -d'_' -f3)_BIT"
sleep=$(echo $FILE | cut -d'_' -f2)
if [ $sleep -eq 0 ]
then
sleep=0.1
fi
sleep $sleep
done
} &
done
for FILE in $(ls ~/.local/scripts/bbl)
do
touch "$HOME/.local/tmp/.tmpBBL_$(echo $FILE | cut -d'_' -f3)_BIT"
{
while true
do
echo "$(. ~/.local/scripts/bbl/$FILE)" > "$HOME/.local/tmp/.tmpBBL_$(echo $FILE | cut -d'_' -f3)_BIT"
sleep=$(echo $FILE | cut -d'_' -f2)
if [ $sleep -eq 0 ]
then
sleep=0.1
fi
sleep $sleep
done
} &
done
for FILE in $(ls ~/.local/scripts/bbr)
do
touch "$HOME/.local/tmp/.tmpBBR_$(echo $FILE | cut -d'_' -f3)_BIT"
{
while true
do
echo "$(. ~/.local/scripts/bbr/$FILE)" > "$HOME/.local/tmp/.tmpBBR_$(echo $FILE | cut -d'_' -f3)_BIT"
sleep=$(echo $FILE | cut -d'_' -f2)
if [ $sleep -eq 0 ]
then
@ -29,9 +65,45 @@ status() {
strt=0
[ $DELIM_START -eq 1 ] && strt=1
for FILE in $(ls ~/.local/scripts)
for FILE in $(ls ~/.local/scripts/status)
do
res=$(cat "$HOME/.local/tmp/.tmp_$(echo $FILE | cut -d'_' -f3)_BIT")
res=$(cat "$HOME/.local/tmp/.tmpSTATUS_$(echo $FILE | cut -d'_' -f3)_BIT")
if [ $strt -eq 0 ]
then
strt=1
echo "$res"
else
echo "$DELIM$res"
fi
done
}
barbl() {
strt=0
[ $DELIM_START -eq 1 ] && strt=1
for FILE in $(ls ~/.local/scripts/bbl)
do
res=$(cat "$HOME/.local/tmp/.tmpBBL_$(echo $FILE | cut -d'_' -f3)_BIT")
if [ $strt -eq 0 ]
then
strt=1
echo "$res"
else
echo "$DELIM$res"
fi
done
}
barbr() {
strt=0
[ $DELIM_START -eq 1 ] && strt=1
for FILE in $(ls ~/.local/scripts/bbr)
do
res=$(cat "$HOME/.local/tmp/.tmpBBR_$(echo $FILE | cut -d'_' -f3)_BIT")
if [ $strt -eq 0 ]
then
@ -47,10 +119,9 @@ run
while :
do
stat=$(status | tr -d '\n')
extrabarleft="^b#440044^Status^d^ ^c#ff0000^bar 2^d^"
extrabarright="^b#444400^Right ^b#00ff00^text^d^ ^c#ff0000^pisec ^b#000044^dlinee3bu^d^"
xprop -root -set WM_NAME "$stat$DD$extrabarleft$DD$extrabarright"
statmain=$(status | tr -d '\n')
statbl=$(barbl | tr -d '\n')
statbr=$(barbr | tr -d '\n')
xprop -root -set WM_NAME "$statmain$DD$statbl$DD$statbr"
sleep 0.1
done

View File

@ -1,8 +0,0 @@
#!/bin/bash
COLOR1="#990057"
COLOR2="#FF00B2"
usage=$(cat <(grep 'cpu ' /proc/stat) <(sleep 1 && grep 'cpu ' /proc/stat) | awk -v RS="" '{print ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)}' | cut -d'.' -f1)"%"
echo "^c$COLOR1^^b$COLOR2^  ^b$COLOR1^^c$COLOR2^ $usage ^d^"

View File

@ -0,0 +1,9 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=XMRUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ \$$price ^d^"

View File

@ -0,0 +1,9 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=BTCUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ \$$price ^d^"

View File

@ -0,0 +1,9 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=ETHUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ \$$price ^d^"

View File

@ -0,0 +1,9 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=LTCUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ \$$price ^d^"

View File

@ -0,0 +1,9 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=DOGEUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
echo "^b$COLOR1^^c$COLOR2^ DOGE ^c$COLOR1^^b$COLOR2^ \$$price ^d^"

View File

@ -0,0 +1,9 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=ETCUSDT' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
echo "^b$COLOR1^^c$COLOR2^ ETC ^c$COLOR1^^b$COLOR2^ \$$price ^d^"

View File

@ -0,0 +1,9 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
price=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTRUB' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
echo "^b$COLOR1^^c$COLOR2^ USDT ^c$COLOR1^^b$COLOR2^ $price RUB ^d^"

View File

@ -0,0 +1,12 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
ut=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTTRY' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
ur=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTRUB' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
price=$(awk "BEGIN{print $ur/$ut}")
price=$(printf %.2f "$price")
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ $price RUB ^d^"

View File

@ -0,0 +1,12 @@
#!/bin/bash
COLOR1="#AAAAAA"
COLOR2="#444444"
uu=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTUAH' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
ur=$(curl -s 'https://api.binance.com/api/v3/ticker/24hr?symbol=USDTRUB' -H 'accept: application/json' | grep -o 'lastPrice":"[^"]*' | cut -d\" -f3 | sed 's/.\{6\}$//')
price=$(awk "BEGIN{print $ur/$uu}")
price=$(printf %.2f "$price")
echo "^b$COLOR1^^c$COLOR2^ ₴ ^c$COLOR1^^b$COLOR2^ $price RUB ^d^"

View File

@ -0,0 +1,22 @@
#!/bin/bash
CITY="auto"
COLOR1="#AAAAAA"
COLOR2="#444444"
if [ $CITY = "auto" ]
then
CITY="@$(curl -s zx2c4.com/ip | head -1)"
fi
icon=$(curl -s "wttr.in/$CITY?format=%C")
icon=$(echo $icon | tr -d ' ')
temp=$(curl -s "wttr.in/$CITY?format=%t")
wind=$(curl -s https://wttr.in/@178.23.190.182?format=j2 | python3 -c "import sys, json; print(json.load(sys.stdin)['current_condition'][0]['windspeedKmph'])")
echo "^b$COLOR2^^c$COLOR1^ $wind km/h ^b$COLOR1^^c$COLOR2^ $icon ^c$COLOR1^^b$COLOR2^ $temp ^d^"

View File

@ -1,6 +1,6 @@
#!/bin/bash
DEVICE=wlan0
DEVICE=wlp2s0
COLOR1="#FF9B00"
COLOR2="#A16200"
@ -16,8 +16,7 @@ done
if [ $good -eq 0 ]
then
echo "Change DEVICE in ~/.local/scripts/0010_1_network"
grep ":" /proc/net/dev | awk -F: '{print $1}' | sed s@\ @@g
echo "0010"
exit 1
fi
@ -47,25 +46,8 @@ TXNET_BIT=`echo $line | awk '{print $9}'`
echo $RXNET_BIT > $HOME/.local/tmp/.tmp_RXNET_BIT
echo $TXNET_BIT > $HOME/.local/tmp/.tmp_TXNET_BIT
if [ $inbound -gt $((1024*1024)) ]
then
inb=$(printf "%.2f MB/s" $(echo "scale=2; $inbound / 1024 / 1024" | bc))
elif [ $inbound -gt 1024 ]
then
inb=$(printf "%.2f KB/s" $(echo "scale=2; $inbound / 1024" | bc))
else
inb=$(printf "%i B/s" $inbound)
fi
inb=$(printf "%.0f MB/s" $(echo "scale=2; $inbound / 1024 / 1024" | bc))
if [ $outbound -gt $((1024*1024)) ]
then
outb=$(printf "%.2f MB/s" $(echo "scale=2; $outbound / 1024 / 1024" | bc))
elif [ $outbound -gt 1024 ]
then
outb=$(printf "%.2f KB/s" $(echo "scale=2; $outbound / 1024" | bc))
else
outb=$(printf "%i B/s" $outbound)
fi
outb=$(printf "%.0f MB/s" $(echo "scale=2; $outbound / 1024 / 1024" | bc))
echo "^c$COLOR1^^b$COLOR2^ In: $inb ^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ Out: $outb ^d^"
echo "^c$COLOR1^^b$COLOR2^ $inb ^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ $outb ^d^"

View File

@ -0,0 +1,10 @@
#!/bin/bash
COLOR1="#990057"
COLOR2="#FF00B2"
load1="$(grep 'cpu ' /proc/stat)"
load2="$(sleep 1 && grep 'cpu ' /proc/stat)"
usage=$(echo "$load1 \n $load2" | awk -v RS="" '{print ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)}' | cut -d'.' -f1)"%"
echo "^c$COLOR1^^b$COLOR2^  ^b$COLOR1^^c$COLOR2^ $usage ^d^"

View File

@ -0,0 +1,24 @@
#!/bin/bash
COLOR1="#AE8BF9"
COLOR2="#773DF5"
cputemp=$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))
if [ $cputemp -ge 90 ]
then
tempicon=""
elif [ $cputemp -ge 75 ]
then
tempicon=""
elif [ $cputemp -ge 60 ]
then
tempicon=""
elif [ $cputemp -ge 45 ]
then
tempicon=""
else
tempicon=""
fi
echo "^b$COLOR1^^c$COLOR2^ $tempicon ^c$COLOR1^^b$COLOR2^ $cputemp ^d^"

View File

@ -6,7 +6,7 @@ COLOR2="#005083"
power=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f8)
name=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f14)
if [[ ! $name ]]
if [ ! $name ]
then
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^  ^d^"
else

View File

@ -0,0 +1,18 @@
#!/bin/bash
DEVICE="amdgpu_bl0"
COLOR1="#FFF400"
COLOR2="#A39C00"
if [ ! -f "$FILE" ]
then
DEVICE="$(ls /sys/class/backlight/ -1 -t | head -1)"
fi
curr="$(cat /sys/class/backlight/$DEVICE/brightness)"
max="$(cat /sys/class/backlight/$DEVICE/max_brightness)"
echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ $curr/$max ^d^"

View File

@ -1,40 +1,41 @@
#!/bin/bash
DEVICE="BAT1"
DEVICE="BAT0"
COLOR1="#FF00F4"
COLOR2="#83007D"
if [ ! -f "$FILE" ]
if [ ! -f "/sys/class/power_supply/$DEVICE/capacity" ]
then
DEVICE="$(ls /sys/class/power_supply/ -1 -t | head -1)"
echo "0185"
exit 1
fi
batpercent="$(cat /sys/class/power_supply/$DEVICE/capacity)"
if [[ $((batpercent + 0)) -ge 80 ]]
if [ $batpercent -ge 80 ]
then
icon=""
elif [[ $((batpercent + 0)) -ge 60 ]]
elif [ $batpercent -ge 60 ]
then
icon=""
elif [[ $((batpercent + 0)) -ge 40 ]]
elif [ $batpercent -ge 40 ]
then
icon=""
elif [[ $((batpercent + 0)) -ge 20 ]]
elif [ $batpercent -ge 20 ]
then
icon=""
else
icon=""
fi
chrg=$(cat /sys/class/power_supply/$DEVICE/status)
chrg="$(cat /sys/class/power_supply/$DEVICE/status)"
if [[ "$chrg" == "Charging" ]]
if [ "$chrg" = "Charging" ]
then
icon=""
elif [[ "$chrg" == "Full" ]]
elif [ "$chrg" = "Full" ]
then
icon=""
fi

View File

@ -1,4 +1,19 @@
if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ]; then
echo "Select:"
echo "0. DWM (default)"
echo "1. Onlyfox"
echo "2. Pohui, idem v tty"
read USER_CHOISE
USER_CHOISE=$(($USER_CHOISE + 0))
if [[ $USER_CHOISE -eq 1 ]]
then
startx firefox
elif [[ $USER_CHOISE -eq 2 ]]
then
echo "Nice choise)"
else
startx
fi
startx
fi

View File

@ -2,16 +2,37 @@
export _JAVA_AWT_WM_NONREPARENTING=1
xscreensaver &
#xscreensaver &
setxkbmap "us,ru" "" "grp:win_space_toggle" -option caps:none &
xset s off &
xset -dpms &
#sh ~/wallpapers/cyber1.sh &
twmnd &
picom --experimental-backend &
sh ~/.local/bin/dwmbar &
sh ~/.local/bin/randwallpaper &
#sh ~/.local/bin/randwallpaper &
# attraction atunnel barcode binaryring cloudlife compass coral cubegrid deepstars fadeplot flurry glmatrix grav headroom intermomentary lament noof providence pyro rorschach
xwinwrap -g 3840x2160 -ni -s -nf -b -un -ov -fdt -argb -- /usr/libexec/xscreensaver/fadeplot -window-id WID &
# ----- 1 -----
st &
# ----- 2 -----
code &
# ----- 3 -----
QT_SCALE_FACTOR=1.0000001 keepassxc &
# ----- 4 -----
discord &
/home/bitheaven/Documents/Telegram/Telegram &
# ----- 7 -----
qjackctl &
corectrl &
patchmatrix &
blueman-manager &
# ----- 9 -----
firefox &
dbus-launch --exit-with-session dwm
#dbus-run-session -- dwm