💥 fix(swaync): bluetooth toggle not working, no fit screen size, move notifications up
This commit is contained in:
Regular → Executable
+2
-2
@@ -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
@@ -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() {
|
||||
}
|
||||
Reference in New Issue
Block a user