update scripts

This commit is contained in:
Horhik 2021-02-05 16:57:21 +03:00
parent 92453d7d86
commit 90a990138a
5 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,2 @@
#!/bin/sh
kill -s USR1 $(pidof deadd-notification-center)

View File

@ -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

View File

@ -0,0 +1,7 @@
!#/bin/sh
connmanctl disable wifi
connmanctl enable wifi
connmanctl scan wifi
connmanctl agent on

View File

@ -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

View File

@ -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