diff options
Diffstat (limited to 'bashs')
| -rwxr-xr-x | bashs/.bashrc | 14 | ||||
| -rwxr-xr-x | bashs/shell scrips/.dwmba | 6 | ||||
| -rwxr-xr-x | bashs/shell scrips/bat32 | 6 | ||||
| -rwxr-xr-x | bashs/shell scrips/check | 9 | ||||
| -rwxr-xr-x | bashs/shell scrips/elemnt | 3 | ||||
| -rwxr-xr-x | bashs/shell scrips/keyboardlayoutswitcher.sh | 23 | ||||
| -rwxr-xr-x | bashs/shell scrips/keyboardlayoutswitcher.sh~ | 23 | ||||
| -rwxr-xr-x | bashs/shell scrips/long-live | 5 | ||||
| -rwxr-xr-x | bashs/shell scrips/multilib-install | 8 | ||||
| -rwxr-xr-x | bashs/shell scrips/multilib-install-current | 8 | ||||
| -rwxr-xr-x | bashs/shell scrips/pm | 1 | ||||
| -rwxr-xr-x | bashs/shell scrips/sepk | 6 |
12 files changed, 112 insertions, 0 deletions
diff --git a/bashs/.bashrc b/bashs/.bashrc new file mode 100755 index 0000000..702a034 --- /dev/null +++ b/bashs/.bashrc @@ -0,0 +1,14 @@ +PS1="\u\w\\$\[$(tput sgr0)\]" +cd ~ +alias su='su' +alias date='date +"%a, %h %d, %Y %r"' +alias ls='ls -lah' +alias nsxiv='nsxiv -a' +alias iv='devour nsxiv -a' +alias mpv='mpv' +alias ytdlp='yt-dlp --no-check-certificate' +alias emacs='emacs' +alias emacst='emacs-no-x11' +alias mplayer='smplayer' +alias slock='slock -m "$(fortune)"' +alias wrath=' wrath -basedir ~/.wrath' diff --git a/bashs/shell scrips/.dwmba b/bashs/shell scrips/.dwmba new file mode 100755 index 0000000..9f16ca7 --- /dev/null +++ b/bashs/shell scrips/.dwmba @@ -0,0 +1,6 @@ +#!/bin/bash +while true; do + printf -v Date '%(%a, %h %d, %Y %r)T' -1 + xsetroot -name "$Date" + sleep 1 +done diff --git a/bashs/shell scrips/bat32 b/bashs/shell scrips/bat32 new file mode 100755 index 0000000..382e207 --- /dev/null +++ b/bashs/shell scrips/bat32 @@ -0,0 +1,6 @@ +#!/bin/sh +touch /tmp/powerc +cat /sys/class/power_supply/hidpp_battery_*/capacity > /tmp/powerc +cat /sys/class/power_supply/hidpp_battery_*/status > /tmp/powerc +value=$(</tmp/powerc) +echo "Mou$value"% diff --git a/bashs/shell scrips/check b/bashs/shell scrips/check new file mode 100755 index 0000000..49adb99 --- /dev/null +++ b/bashs/shell scrips/check @@ -0,0 +1,9 @@ +#!/bin/bash +y="$(ping -c 1 10.0.0.13)" +num=64 +if [ $Y -lt $NUM ]; then +notify-send 'SERVER IS WORRKING' +else +notify-send 'server is not working' +fi + diff --git a/bashs/shell scrips/elemnt b/bashs/shell scrips/elemnt new file mode 100755 index 0000000..4a868ef --- /dev/null +++ b/bashs/shell scrips/elemnt @@ -0,0 +1,3 @@ +#!/bin/bash +/opt/Element/element-desktop + diff --git a/bashs/shell scrips/keyboardlayoutswitcher.sh b/bashs/shell scrips/keyboardlayoutswitcher.sh new file mode 100755 index 0000000..ff3101c --- /dev/null +++ b/bashs/shell scrips/keyboardlayoutswitcher.sh @@ -0,0 +1,23 @@ +#!/usr/local/bin/bash + +numberofparameter=$# # Gets the number of parameter passed +currentlayout=$(setxkbmap -query | grep layout | awk '{print $2}') # Gets the current layout +langLayout=($*) # Passes the parameters into an array + +i=0 + +while [[ "$i" -lt "$numberofparameter" ]]; do + if [[ "${langLayout[$i]}" == "${currentlayout}" ]]; then + break + fi + i=$(($i+1)) +done + +# checks if i has not reached to the last parameter (last language) +if [[ "$i" -lt "(($numberofparameter-1))" ]]; then + # Sets to next parameter (next language) + setxkbmap -layout ${langLayout[$(($i+1))]} && notify-send --icon /usr/share/icons/Dracula/apps/scalable/key_bindings.svg "Keyboard Layout" "Keyboard set to ${langLayout[$(($i+1))]}" || notify-send --icon /usr/share/icons/Dracula/apps/scalable/key_bindings.svg "Keyboard Layout" "Something went wrong :/" +else + # Has reached the end, so looping back to the first parameter (first language) + setxkbmap -layout $1 && notify-send --icon /usr/share/icons/Dracula/apps/scalable/key_bindings.svg "Keyboard Layout" "Keyboard set to $1" || notify-send --icon /usr/share/icons/Dracula/apps/scalable/key_bindings.svg "Keyboard Layout" "Something went wrong :/" +fi diff --git a/bashs/shell scrips/keyboardlayoutswitcher.sh~ b/bashs/shell scrips/keyboardlayoutswitcher.sh~ new file mode 100755 index 0000000..d3a5df4 --- /dev/null +++ b/bashs/shell scrips/keyboardlayoutswitcher.sh~ @@ -0,0 +1,23 @@ +#!/usr/bin/bash + +numberofparameter=$# # Gets the number of parameter passed +currentlayout=$(setxkbmap -query | grep layout | awk '{print $2}') # Gets the current layout +langLayout=($*) # Passes the parameters into an array + +i=0 + +while [[ "$i" -lt "$numberofparameter" ]]; do + if [[ "${langLayout[$i]}" == "${currentlayout}" ]]; then + break + fi + i=$(($i+1)) +done + +# checks if i has not reached to the last parameter (last language) +if [[ "$i" -lt "(($numberofparameter-1))" ]]; then + # Sets to next parameter (next language) + setxkbmap -layout ${langLayout[$(($i+1))]} && notify-send --icon /usr/share/icons/Dracula/apps/scalable/key_bindings.svg "Keyboard Layout" "Keyboard set to ${langLayout[$(($i+1))]}" || notify-send --icon /usr/share/icons/Dracula/apps/scalable/key_bindings.svg "Keyboard Layout" "Something went wrong :/" +else + # Has reached the end, so looping back to the first parameter (first language) + setxkbmap -layout $1 && notify-send --icon /usr/share/icons/Dracula/apps/scalable/key_bindings.svg "Keyboard Layout" "Keyboard set to $1" || notify-send --icon /usr/share/icons/Dracula/apps/scalable/key_bindings.svg "Keyboard Layout" "Something went wrong :/" +fi diff --git a/bashs/shell scrips/long-live b/bashs/shell scrips/long-live new file mode 100755 index 0000000..d97709d --- /dev/null +++ b/bashs/shell scrips/long-live @@ -0,0 +1,5 @@ +while true; do + echo "long live distrotoot" + sleep 1 +done + diff --git a/bashs/shell scrips/multilib-install b/bashs/shell scrips/multilib-install new file mode 100755 index 0000000..c977d5e --- /dev/null +++ b/bashs/shell scrips/multilib-install @@ -0,0 +1,8 @@ +#!/bin/bash +cd /tmp +mkdir multilib +cd multilib +lftp -c 'open http://slackware.com/~alien/multilib/ ; mirror -c -e 15.0' +cd 15 +upgradepkg --reinstall --install-new *.t?z +upgradepkg --reinstall --install-new slackware64-compat32/*-compat32/*.t?z diff --git a/bashs/shell scrips/multilib-install-current b/bashs/shell scrips/multilib-install-current new file mode 100755 index 0000000..9ef28b9 --- /dev/null +++ b/bashs/shell scrips/multilib-install-current @@ -0,0 +1,8 @@ +#!/bin/bash +cd /tmp +mkdir multilib +cd multilib +wget -r -np -nd -l1 --accept=*.t?z http://www.slackware.com/~alien/multilib/current/ +lftp -c 'open http://slackware.com/~alien/multilib/ ; mirror -c -e 15.0' +upgradepkg --reinstall --install-new *.t?z +upgradepkg --reinstall --install-new slackware64-compat32/*-compat32/*.t?z diff --git a/bashs/shell scrips/pm b/bashs/shell scrips/pm new file mode 100755 index 0000000..c145278 --- /dev/null +++ b/bashs/shell scrips/pm @@ -0,0 +1 @@ +st pulsemixer diff --git a/bashs/shell scrips/sepk b/bashs/shell scrips/sepk new file mode 100755 index 0000000..8a30211 --- /dev/null +++ b/bashs/shell scrips/sepk @@ -0,0 +1,6 @@ +#!/bin/bash + +#sepk slack external pakage kreator +# made by demos + +echo 'thisworkes'
\ No newline at end of file |
