refactor: delete unused stuff

This commit is contained in:
matt1432 2023-09-08 14:27:48 -04:00
parent e09a8e9fbb
commit 3cf16a4853
8 changed files with 4 additions and 143 deletions

View file

@ -33,6 +33,6 @@ toggle () {
fi fi
} }
if [[ $1 == "toggle" ]];then [[ $1 == "toggle" ]] && toggle
toggle [[ $1 == "laptop" ]] && laptop
fi [[ $1 == "tablet" ]] && tablet

View file

@ -1,29 +0,0 @@
#!/usr/bin/env bash
on() {
# open notif panel
swaync-client -op
# open closers to close when outside control center
eww open closer-notif1
eww open closer-notif2
eww open closer-notif3
eww open closer-notif4
eww close notif-panel; eww open notif-panel &&
eww update notif-panel-state=true
}
off() {
swaync-client -cp
eww update notif-panel-state=false
eww close closer-notif1
eww close closer-notif2
eww close closer-notif3
eww close closer-notif4
}
[[ "$1" == "on" ]] && on
[[ "$1" == "off" ]] && off

View file

@ -1,30 +0,0 @@
#!/usr/bin/env bash
state () {
if [[ $(hyprctl layers | grep swaync-control-center) == "" ]]; then
if [[ $(eww get notif-panel-state) == "true" ]]; then
eww update notif-panel-state=false
fi
fi
}
icon () {
COUNT=$(swaync-client -c)
if [[ $(swaync-client -D) == "true" ]]; then
echo " 󱏨"
elif [[ $COUNT == "0" ]]; then
echo "$COUNT 󰂜"
else
echo "$COUNT 󰂚"
fi
state
}
if [[ $1 == "icon" ]]; then
while true; do
sleep 0.01
icon
done
fi

View file

@ -1,20 +0,0 @@
#!/usr/bin/env bash
on () {
eww open closer &&
eww open quick-settings-reveal;
eww open quick-settings-smol-reveal;
eww open quick-settings-logo-reveal;
eww update showqs=true
}
off () {
eww update showqs=false
eww close quick-settings-reveal
eww close quick-settings-smol-reveal
eww close quick-settings-logo-reveal
}
[[ "$1" == "on" ]] && on
[[ "$1" == "off" ]] && off

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
$HYPR_PATH/laptop-mode.sh & $AGS_PATH/tablet-toggle.sh laptop &
$LOCK_PATH/blur.sh $LOCK_PATH/blur.sh
gtklock gtklock

View file

@ -1,10 +0,0 @@
#!/usr/bin/env bash
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
brightnessctl -d tpacpi::kbd_backlight s 2
killall -r autorotate.sh
killall -r evtest
eww update tablet-ts=false

View file

@ -1,35 +0,0 @@
#!/usr/bin/env bash
state () {
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]; then
#echo "Running"
eww update osk-ts=true
else
#echo "Stopped"
eww update osk-ts=false
fi
}
toggle () {
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]; then
echo "Running"
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
eww update osk-ts=false
else
echo "Stopped"
busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
eww update osk-ts=true
fi
}
if [[ $1 == "getState" ]]; then
while true; do
sleep 0.2
state > /dev/null
done
fi
if [[ $1 == "toggle" ]];then
toggle
fi

View file

@ -1,15 +0,0 @@
#!/usr/bin/env bash
gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true
brightnessctl -d tpacpi::kbd_backlight s 0
"$HYPR_PATH"/autorotate.sh &
evtest --grab "/dev/input/by-path/platform-i8042-serio-0-event-kbd" &
evtest --grab "/dev/input/by-path/platform-i8042-serio-1-event-mouse" &
evtest --grab "/dev/input/by-path/platform-AMDI0010:02-event-mouse" &
evtest --grab "/dev/input/by-path/platform-thinkpad_acpi-event" &
evtest --grab "/dev/video-bus" &
eww update tablet-ts=true