Compare commits
2 Commits
8f63f6fbf8
...
617296a477
| Author | SHA1 | Date | |
|---|---|---|---|
|
617296a477
|
|||
|
952a809d70
|
26
bashrc
26
bashrc
@@ -45,6 +45,32 @@ edit(){ nano $(grep $1 * -R | awk '{print $1}'|cut -f1 -d ':' | head -n1);}
|
|||||||
catmd() { pandoc $1 | lynx -stdin;}
|
catmd() { pandoc $1 | lynx -stdin;}
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
### Enter container
|
||||||
|
#enter () {
|
||||||
|
# local container="$(echo "$1" | cut -d'_' -f1)"
|
||||||
|
# if docker ps | grep "$container" >/dev/null 2>&1; then
|
||||||
|
# docker exec -it "$container" bash
|
||||||
|
# elif podman ps | grep "$container" >/dev/null 2>&1; then
|
||||||
|
# podman exec -it "$container" bash
|
||||||
|
# else
|
||||||
|
# echo "Error: Container '$container' not found" >&2
|
||||||
|
# return 1
|
||||||
|
# fi
|
||||||
|
#}
|
||||||
|
|
||||||
|
enter () {
|
||||||
|
local container="$1"
|
||||||
|
# local container="$(echo "$1" | cut -d'_' -f1)"
|
||||||
|
if docker ps | grep "$container" >/dev/null 2>&1; then
|
||||||
|
docker exec -it "$container" bash
|
||||||
|
elif podman ps | grep "$container" >/dev/null 2>&1; then
|
||||||
|
podman exec -it "$container" bash
|
||||||
|
else
|
||||||
|
echo "Error: Container '$container' not found" >&2
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#load neofetch
|
#load neofetch
|
||||||
#neofetch
|
#neofetch
|
||||||
|
|||||||
@@ -207,3 +207,6 @@ exec --no-startup-id /home/shihaam/.scripts/scrcpy-autostart
|
|||||||
|
|
||||||
# start activty watcher
|
# start activty watcher
|
||||||
exec --no-startup-id aw-qt
|
exec --no-startup-id aw-qt
|
||||||
|
|
||||||
|
# start power mmanager
|
||||||
|
exec --no-startup-id xfce4-power-manager
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ while true; do
|
|||||||
|
|
||||||
if [ -L /dev/android_adb ]
|
if [ -L /dev/android_adb ]
|
||||||
then
|
then
|
||||||
scrcpy --turn-screen-off --stay-awake & sndcpy
|
# scrcpy --turn-screen-off --stay-awake & sndcpy
|
||||||
|
scrcpy --turn-screen-off --stay-awake
|
||||||
else
|
else
|
||||||
adb wait-for-device
|
adb wait-for-device
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user