diff --git a/home/scripts/.local/scripts/deadd_notify b/home/scripts/.local/scripts/deadd_notify new file mode 100755 index 0000000..f0fcd72 --- /dev/null +++ b/home/scripts/.local/scripts/deadd_notify @@ -0,0 +1,2 @@ +#!/bin/sh +kill -s USR1 $(pidof deadd-notification-center) diff --git a/home/scripts/.local/scripts/redshiftToggle b/home/scripts/.local/scripts/redshiftToggle new file mode 100755 index 0000000..1619abe --- /dev/null +++ b/home/scripts/.local/scripts/redshiftToggle @@ -0,0 +1,15 @@ +#!/bin/dash + +file=$(cat /tmp/redshift-toggl) +text="off" + +if [ "$file" = "$text" ] +then +killall redshift +redshift -O 3000 +echo "on" > /tmp/redshift-toggl +else +redshift -x +echo "off" > /tmp/redshift-toggl +fi + diff --git a/home/scripts/.local/scripts/restart-wifi b/home/scripts/.local/scripts/restart-wifi new file mode 100755 index 0000000..41a13e2 --- /dev/null +++ b/home/scripts/.local/scripts/restart-wifi @@ -0,0 +1,7 @@ +!#/bin/sh + +connmanctl disable wifi +connmanctl enable wifi +connmanctl scan wifi +connmanctl agent on + diff --git a/home/scripts/.local/scripts/status/statusbar b/home/scripts/.local/scripts/status/statusbar index cea57c2..aa6b577 100755 --- a/home/scripts/.local/scripts/status/statusbar +++ b/home/scripts/.local/scripts/status/statusbar @@ -59,7 +59,7 @@ diskspace () wifi () { - name=$(connmanctl services | grep "*A" | grep -oh "^*A. [A-Za-z]*" | grep -oh "[[:space:]][A-Za-x]*") + name=$(connmanctl services | grep "*A" | grep -oh "^*A. [A-Za-z]*" | grep -oh "[[:space:]][A-Za-x]*" | head -n 1) if [ $name != " " ]; then echo 🌐 $name diff --git a/home/scripts/.local/scripts/touchpad.sh b/home/scripts/.local/scripts/touchpad.sh index bac3490..4e7c3c4 100755 --- a/home/scripts/.local/scripts/touchpad.sh +++ b/home/scripts/.local/scripts/touchpad.sh @@ -1,7 +1,7 @@ #!/bin/bash id=$(xinput | grep -shoP 'Touchpad.*id=[0-9]*' | grep -shoP '[0-9]*') -tap_id = $(xinput list-props $id | grep -shoP 'Tapping Enabled Default.+[0-9]*' | grep -sho '[0-9][0-9][0-9]') +tap_id=$(xinput list-props $id | grep -shoP 'Tapping Enabled Default.+[0-9]*' | grep -sho '[0-9][0-9][0-9]') echo $id tap_id=$(xinput list-props $id | grep -shoP 'Tapping Enabled.+[0-9]*' | grep -m 1 -sho '[0-9][0-9][0-9]') @@ -13,3 +13,6 @@ echo $middle_id xinput set-prop $id $tap_id 1 xinput set-prop $id $middle_id 1 +synclient TapButton2=2 +synclient TapButton3=3 +xinput set-prop $id 381 2 3 0 0 1 3 2