mirror of
https://github.com/Horhik/dotfiles.git
synced 2025-01-08 00:31:04 +00:00
update scripts
This commit is contained in:
parent
92453d7d86
commit
90a990138a
2
home/scripts/.local/scripts/deadd_notify
Executable file
2
home/scripts/.local/scripts/deadd_notify
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
kill -s USR1 $(pidof deadd-notification-center)
|
15
home/scripts/.local/scripts/redshiftToggle
Executable file
15
home/scripts/.local/scripts/redshiftToggle
Executable 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
|
||||
|
7
home/scripts/.local/scripts/restart-wifi
Executable file
7
home/scripts/.local/scripts/restart-wifi
Executable file
|
@ -0,0 +1,7 @@
|
|||
!#/bin/sh
|
||||
|
||||
connmanctl disable wifi
|
||||
connmanctl enable wifi
|
||||
connmanctl scan wifi
|
||||
connmanctl agent on
|
||||
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue