From 93b54816a388c9e3df4a1356fe4480fdbb9f4424 Mon Sep 17 00:00:00 2001 From: horhik Date: Mon, 27 Jul 2020 08:11:07 +0300 Subject: [PATCH] add scripts --- Scripts/bin/dropdown | 3 + Scripts/bin/freelances | 19 +++++ Scripts/bin/freelances.json | 137 +++++++++++++++++++++++++++++++++++ Scripts/bin/freelances.json~ | 108 +++++++++++++++++++++++++++ Scripts/startup/redshift.sh | 5 ++ Scripts/startup/touchpad.sh | 15 ++++ Scripts/startup/wifi.sh | 7 ++ 7 files changed, 294 insertions(+) create mode 100755 Scripts/bin/dropdown create mode 100755 Scripts/bin/freelances create mode 100644 Scripts/bin/freelances.json create mode 100644 Scripts/bin/freelances.json~ create mode 100644 Scripts/startup/redshift.sh create mode 100755 Scripts/startup/touchpad.sh create mode 100755 Scripts/startup/wifi.sh diff --git a/Scripts/bin/dropdown b/Scripts/bin/dropdown new file mode 100755 index 0000000..ad3224f --- /dev/null +++ b/Scripts/bin/dropdown @@ -0,0 +1,3 @@ +#1/bin/bash + +alacritty -t dropdown diff --git a/Scripts/bin/freelances b/Scripts/bin/freelances new file mode 100755 index 0000000..1c492c7 --- /dev/null +++ b/Scripts/bin/freelances @@ -0,0 +1,19 @@ +#!/bin/bash + + +# -- Freelance Habr -- +i3-msg "workspace 6; exec surf https://freelance.habr.com/tasks?categories=development_frontend" + +# -- FreelanceHunt -- +i3-msg "workspace 6; exec surf https://freelancehunt.com/projects?tags%5B%5D=%D0%B2%D0%B5%D1%80%D1%81%D1%82%D0%BA%D0%B0&tags%5B%5D=html+%D0%B2%D0%B5%D1%80%D1%81%D1%82%D0%BA%D0%B0&tags%5B%5D=React&tags%5B%5D=WebGL" + + +# -- Weblancer -- +# Web Programming +i3-msg "workspace 6; exec surf https://www.weblancer.net/jobs/veb-programmirovanie-31/" + +# HTML/CSS +i3-msg "workspace 6; exec surf https://www.weblancer.net/jobs/html-verstka-32/" + +#Fl.ru +i3-msg "workspace 6; exec surf https://www.fl.ru/projects/" diff --git a/Scripts/bin/freelances.json b/Scripts/bin/freelances.json new file mode 100644 index 0000000..a41738e --- /dev/null +++ b/Scripts/bin/freelances.json @@ -0,0 +1,137 @@ +// vim:ts=4:sw=4:et +{ + "border": "pixel", + "current_border_width": 3, + "floating": "auto_off", + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + }, + "name": "@cgDISVMfxT:T | Фриланс сайт. Фрилансеры, вакансии удаленно, работа на дому, freelance : FL.ru", + "percent": 0.333333333333333, + "swallows": [ + ], + "type": "con" +} + +{ + // splitv split container with 2 children + "border": "normal", + "floating": "auto_off", + "layout": "splitv", + "percent": 0.333333333333333, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 3, + "floating": "auto_off", + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + }, + "name": "@cgDISVMfxT:T | Работа для фрилансеров на Freelancehunt — список всех доступных проектов для фрилансера в Украине", + "percent": 0.5, + "swallows": [ + ], + "type": "con" + }, + { + // splith split container with 2 children + "border": "normal", + "floating": "auto_off", + "layout": "splith", + "percent": 0.5, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 3, + "floating": "auto_off", + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + }, + "name": "@cgDISVMfxT:T | Удаленная работа по веб-программированию. Работа для веб-программистов удаленно на фрилансе: цены, задачи | биржа удаленной работы Weblancer", + "percent": 0.5, + "swallows": [ + ], + "type": "con" + }, + { + "border": "pixel", + "current_border_width": 3, + "floating": "auto_off", + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + }, + "name": "@cgDISVMfxT:T | Создание проекта на бирже фриланса Weblancer", + "percent": 0.5, + "swallows": [ + ], + "type": "con" + } + ] + } + ] +} + +{ + "border": "pixel", + "current_border_width": 3, + "floating": "auto_off", + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + }, + "name": "@cgDISVMfxT:T | Sign in to GitHub · GitHub", + "percent": 0.333333333333333, + "swallows": [ + ], + "type": "con" +} + +{ + // floating_con with 1 children + "border": "normal", + "floating": "auto_off", + "layout": "splith", + "percent": null, + "rect": { + "height": 600, + "width": 825, + "x": 548, + "y": 250 + }, + "type": "floating_con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 3, + "floating": "user_on", + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + }, + "name": "dropdown", + "percent": 1, + "swallows": [ + ], + "type": "con" + } + ] +} + diff --git a/Scripts/bin/freelances.json~ b/Scripts/bin/freelances.json~ new file mode 100644 index 0000000..ac70a0c --- /dev/null +++ b/Scripts/bin/freelances.json~ @@ -0,0 +1,108 @@ +{ + "border": "pixel", + "layout": "splith", + "current_border_width": 3, + "floating": "user_off", + /* "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + },*/ + "name": "@cgDISVMfxT:T | Работа для фрилансеров на Freelancehunt — список всех доступных проектов для фрилансера в Украине", + "percent": 0.5, + "swallows": [ + ], + "type": "con" +} + +/* +{ + // splitv split container with 2 children + "border": "normal", + "floating": "auto_off", + "layout": "splitv", + "percent": 0.333333333333333, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 3, + "floating": "user_off", + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + }, + "name": "@cgDISVMfxT:T | Создание проекта на бирже фриланса Weblancer", + "percent": 0.5, + "swallows": [ + ], + "type": "con" + }, + { + // splith split container with 2 children + "border": "normal", + "floating": "auto_off", + "layout": "splith", + "percent": 0.5, + "type": "con", + "nodes": [ + { + "border": "pixel", + "current_border_width": 3, + "floating": "user_off", + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + }, + "name": "@cgDISVMfxT:T | Фриланс: Удаленная работа на дому - Вакансии фриланс услуг в Украине, России и др. странах СНГ - Weblancer", + "percent": 0.5, + "swallows": [ + ], + "type": "con" + }, + { + "border": "pixel", + "current_border_width": 3, + "floating": "user_off", + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + }, + "name": "@cgDISVMfxT:T | Бот для работы с instagram — Фриланс-заказ №1052926 для веб-программиста", + "percent": 0.5, + "swallows": [ + ], + "type": "con" + } + ] + } + ] +} +*/ +{ + "border": "pixel", + "current_border_width": 3, + "layout": "splith", + "floating": "user_off", + /* + "geometry": { + "height": 600, + "width": 800, + "x": 0, + "y": 0 + },*/ + "name": "@cgDISVMfxT:T | Заказы — Хабр Фриланс", + "percent": 0.5, + "swallows": [ + + ], + "type": "con" +} + diff --git a/Scripts/startup/redshift.sh b/Scripts/startup/redshift.sh new file mode 100644 index 0000000..b610463 --- /dev/null +++ b/Scripts/startup/redshift.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +time = date | grep -oh "[0-9][0-9]:[0-9][0-9]" + +redshift -P -O 2000 diff --git a/Scripts/startup/touchpad.sh b/Scripts/startup/touchpad.sh new file mode 100755 index 0000000..bac3490 --- /dev/null +++ b/Scripts/startup/touchpad.sh @@ -0,0 +1,15 @@ +#!/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]') + +echo $id +tap_id=$(xinput list-props $id | grep -shoP 'Tapping Enabled.+[0-9]*' | grep -m 1 -sho '[0-9][0-9][0-9]') + +middle_id=$(xinput list-props $id | grep -shoP 'Middle Emulation Enabled.+[0-9]*' | grep -m 1 -sho '[0-9][0-9][0-9]') + +echo $tap_id +echo $middle_id + +xinput set-prop $id $tap_id 1 +xinput set-prop $id $middle_id 1 diff --git a/Scripts/startup/wifi.sh b/Scripts/startup/wifi.sh new file mode 100755 index 0000000..965dfe4 --- /dev/null +++ b/Scripts/startup/wifi.sh @@ -0,0 +1,7 @@ + +sudo systemctl start NetworkManager +sudo systemctl start dhcpcd + +nmcli con up Main +nmcli dev wifi connect password hidden +echo "success may be"