feat!: switch to NixOS

This commit is contained in:
matt1432 2023-06-14 03:16:26 -04:00
parent b91f59cf91
commit e8ec42676b
41 changed files with 81 additions and 365 deletions

View file

@ -1,22 +0,0 @@
#!/bin/bash
execute() {
echo "Rotating"
/home/matt/.config/lisgd/config &
lisgd_pid=$! # Save the PID of the lisgd process
}
cleanup() {
echo "Cleaning up..."
kill $lisgd_pid # Terminate the lisgd process
wait $lisgd_pid # Wait for the process to exit
}
# Register the cleanup function to be called on script exit
trap cleanup EXIT
# Loop to listen to the command
while IFS='$\n' read -r line; do
rotation="$(echo $line | sed -En "s/^.*orientation changed: (.*)/\1/p")"
[[ ! -z $rotation ]] && execute
done < <(stdbuf -oL monitor-sensor)

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
eww update toggle-state=false
/usr/bin/setsysmode laptop
@ -7,6 +7,4 @@ gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false
brightnessctl -d tpacpi::kbd_backlight s 2
killall iio-hyprland
#swaymsg output eDP-1 transform 0
$HOME/.config/lisgd/config
killall autorotate.sh
killall evtest

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [[ $(busctl get-property --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 Visible) == "b true" ]]
then

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
eww update toggle-state=true
setsysmode tablet
@ -8,6 +8,8 @@ brightnessctl -d tpacpi::kbd_backlight s 0
iio-hyprland &
$HOME/.config/hypr/scripts/tablet/autorotate.sh &
killall autorotate.sh
$HOME/.config/hypr/scripts/tablet/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" &

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [[ $(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled) == true ]]; then
$HOME/.config/sway/scripts/tablet/laptop-mode.sh