💥 fix(swaync): bluetooth toggle not working, no fit screen size, move notifications up

This commit is contained in:
retrozinndev
2024-11-10 13:00:34 -03:00
parent 4c684f9c14
commit 0c297bb9ff
9 changed files with 576 additions and 514 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ Update_state() {
Toggle_state() {
if [[ $SWAYNC_TOGGLE_STATE == "true" ]]
then
bluetoothctl power off
else
bluetoothctl power on
else
bluetoothctl power off
fi
}
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
Update_state() {
if [[ $(swaync-client -D) == true ]]
then
echo true
else
echo false
fi
}
Toggle_state() {
if [[ $SWAYNC_TOGGLE_STATE == true ]]
then
swaync-client -dn
else
swaync-client -df
fi
}
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
Update_state() {
if [[ $(nmcli n c) =~ "partial" ]] || [[ $(nmcli n c) =~ "full" ]]
then
echo true
else
echo false
fi
}
Toggle_state() {
if [[ $SWAYNC_TOGGLE_STATE == true ]]
then
nmcli n on
else
nmcli n off
fi
}
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
# Bash Script made by retrozinndev
# Dotfiles: https://github.com/retrozinndev/Hyprland-Dots
# This script is not ready to use yet.
local REC_DIR="/tmp/screenRecording"
local REC_FILE="$REC_DIR/recording_swaync"
Update_state() {
if [[ -f $REC_FILE ]]
then
echo true
else
echo false
fi
}
Toggle_state() {
if [[ $SWAYNC_TOGGLE_STATE == true ]]
then
Start_recording
else
Stop_recording
fi
}
Start_recording() {
}
Stop_recording() {
}
Check_if_recording() {
}