1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2025-01-09 01:01:05 +00:00

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

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