tlp, improve the on and off output, expecially in relation to Mullvad.
This commit is contained in:
@@ -142,7 +142,7 @@
|
|||||||
function tlp-devices {
|
function tlp-devices {
|
||||||
if [[ ! -z "$@" ]]; then
|
if [[ ! -z "$@" ]]; then
|
||||||
tlp-devices
|
tlp-devices
|
||||||
echo -e "\nApplying '$@'...\n"
|
echo -e "\n Applying '$@'...\n"
|
||||||
fi
|
fi
|
||||||
wifi $@
|
wifi $@
|
||||||
bluetooth $@
|
bluetooth $@
|
||||||
@@ -151,18 +151,38 @@
|
|||||||
}
|
}
|
||||||
alias devices="tlp-devices "
|
alias devices="tlp-devices "
|
||||||
|
|
||||||
function all-off {
|
function devices-off {
|
||||||
tlp-devices off
|
echo -e "\n Checking Mullvad Status...\n"
|
||||||
mullvad disconnect
|
mullvad status
|
||||||
}
|
|
||||||
alias off="all-off "
|
|
||||||
|
|
||||||
function all-on {
|
echo -e "\n Checking Hardware Status...\n"
|
||||||
|
tlp-devices off
|
||||||
|
|
||||||
|
echo -e "\n Disconnecting Mullvad...\n"
|
||||||
|
mullvad disconnect
|
||||||
|
sleep 3
|
||||||
|
mullvad status
|
||||||
|
}
|
||||||
|
alias off="devices-off "
|
||||||
|
|
||||||
|
function devices-on {
|
||||||
|
echo -e "\n Checking Mullvad Status...\n"
|
||||||
|
mullvad status
|
||||||
|
|
||||||
|
echo -e "\n Checking Hardware Status...\n"
|
||||||
tlp-devices on
|
tlp-devices on
|
||||||
|
|
||||||
|
echo -e "\n Connecting Mullvad...\n"
|
||||||
mullvad connect
|
mullvad connect
|
||||||
mullvad reconnect
|
mullvad reconnect
|
||||||
|
sleep 3
|
||||||
|
mullvad status
|
||||||
|
|
||||||
|
echo -e "\n Rehecking Mullvad Status...\n"
|
||||||
|
sleep 12
|
||||||
|
mullvad status
|
||||||
}
|
}
|
||||||
alias on="all-on "
|
alias on="devices-on "
|
||||||
marker: '# {mark} MANAGED BY ANSIBLE | tlp'
|
marker: '# {mark} MANAGED BY ANSIBLE | tlp'
|
||||||
state: present
|
state: present
|
||||||
create: yes
|
create: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user