mirror of
https://github.com/Horhik/dotfiles.git
synced 2025-01-09 09:11: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 ()
|
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 != " " ];
|
if [ $name != " " ];
|
||||||
then
|
then
|
||||||
echo 🌐 $name
|
echo 🌐 $name
|
||||||
|
|
|
@ -13,3 +13,6 @@ echo $middle_id
|
||||||
|
|
||||||
xinput set-prop $id $tap_id 1
|
xinput set-prop $id $tap_id 1
|
||||||
xinput set-prop $id $middle_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