From 474572506a5470e7fadf476572421cba75f71473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=9Eahin=20Akkaya?= Date: Fri, 18 Mar 2022 11:55:44 +0300 Subject: [PATCH] Add submodules --- .config/nvim | 1 + .gitmodules | 12 +++++ .../patches/polybar-wireguard/wireguard.patch | 18 +++++++ .../patches/rofibluetooth/dontshowmenu.patch | 53 +++++++++++++++++++ GitRepositories/polybar-wireguard | 1 + GitRepositories/rofi-bluetooth | 1 + GitRepositories/st | 1 + scripts/polybar-wireguard | 1 + scripts/rofi-bluetooth | 1 + 9 files changed, 89 insertions(+) create mode 160000 .config/nvim create mode 100644 .gitmodules create mode 100644 GitRepositories/patches/polybar-wireguard/wireguard.patch create mode 100644 GitRepositories/patches/rofibluetooth/dontshowmenu.patch create mode 160000 GitRepositories/polybar-wireguard create mode 160000 GitRepositories/rofi-bluetooth create mode 160000 GitRepositories/st create mode 120000 scripts/polybar-wireguard create mode 120000 scripts/rofi-bluetooth diff --git a/.config/nvim b/.config/nvim new file mode 160000 index 0000000..7d552ec --- /dev/null +++ b/.config/nvim @@ -0,0 +1 @@ +Subproject commit 7d552ec9dc31d6a5347eb83080f7afd5f232261b diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..3bdbfb9 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,12 @@ +[submodule "GitRepositories/st"] + path = GitRepositories/st + url = https://github.com/Asocia/st.git +[submodule ".config/nvim"] + path = .config/nvim + url = https://github.com/Asocia/nvim-config.git +[submodule "GitRepositories/rofi-bluetooth"] + path = GitRepositories/rofi-bluetooth + url = https://github.com/nickclyde/rofi-bluetooth.git +[submodule "GitRepositories/polybar-wireguard"] + path = GitRepositories/polybar-wireguard + url = https://github.com/mil-ad/polybar-wireguard.git diff --git a/GitRepositories/patches/polybar-wireguard/wireguard.patch b/GitRepositories/patches/polybar-wireguard/wireguard.patch new file mode 100644 index 0000000..f1023b0 --- /dev/null +++ b/GitRepositories/patches/polybar-wireguard/wireguard.patch @@ -0,0 +1,18 @@ +diff --git a/polybar-wireguard b/polybar-wireguard +index 6712185..b770d44 100755 +--- a/polybar-wireguard ++++ b/polybar-wireguard +@@ -6,11 +6,11 @@ + # https://github.com/polybar/polybar/wiki/Formatting#format-tags-inside-polybar-config + green=#55aa55 + +-configs_path="/PATH/TO/CONF/FILES" ++configs_path="$HOME/.config/wireguard" + connected_interface=$(sudo wg | grep interface | cut -d " " -f2) + + connect() { +- selected_config=$(ls $configs_path/*.conf | xargs basename -a -s .conf | dmenu) ++ selected_config=$(ls $configs_path/*.conf | xargs basename -a -s .conf | rofi -i -dmenu -p "Connect to: ") + [[ $selected_config ]] && sudo wg-quick up "$configs_path"/"$selected_config".conf + } + diff --git a/GitRepositories/patches/rofibluetooth/dontshowmenu.patch b/GitRepositories/patches/rofibluetooth/dontshowmenu.patch new file mode 100644 index 0000000..af3ad62 --- /dev/null +++ b/GitRepositories/patches/rofibluetooth/dontshowmenu.patch @@ -0,0 +1,53 @@ +diff --git a/rofi-bluetooth b/rofi-bluetooth +index 5c52fd8..cebb5c1 100755 +--- a/rofi-bluetooth ++++ b/rofi-bluetooth +@@ -33,7 +33,6 @@ power_on() { + toggle_power() { + if power_on; then + bluetoothctl power off +- show_menu + else + if rfkill list bluetooth | grep -q 'blocked: yes'; then + rfkill unblock bluetooth && sleep 3 +@@ -59,7 +58,6 @@ toggle_scan() { + if scan_on; then + kill $(pgrep -f "bluetoothctl scan on") + bluetoothctl scan off +- show_menu + else + bluetoothctl scan on & + echo "Scanning..." +@@ -83,10 +81,8 @@ pairable_on() { + toggle_pairable() { + if pairable_on; then + bluetoothctl pairable off +- show_menu + else + bluetoothctl pairable on +- show_menu + fi + } + +@@ -105,10 +101,8 @@ discoverable_on() { + toggle_discoverable() { + if discoverable_on; then + bluetoothctl discoverable off +- show_menu + else + bluetoothctl discoverable on +- show_menu + fi + } + +@@ -126,10 +120,8 @@ device_connected() { + toggle_connection() { + if device_connected $1; then + bluetoothctl disconnect $1 +- device_menu "$device" + else + bluetoothctl connect $1 +- device_menu "$device" + fi + } + diff --git a/GitRepositories/polybar-wireguard b/GitRepositories/polybar-wireguard new file mode 160000 index 0000000..838ec1c --- /dev/null +++ b/GitRepositories/polybar-wireguard @@ -0,0 +1 @@ +Subproject commit 838ec1c59f9b9686bece53f9d6e470ff51e35d06 diff --git a/GitRepositories/rofi-bluetooth b/GitRepositories/rofi-bluetooth new file mode 160000 index 0000000..893db1f --- /dev/null +++ b/GitRepositories/rofi-bluetooth @@ -0,0 +1 @@ +Subproject commit 893db1f2b549e7bc0e9c62e7670314349a29cdf2 diff --git a/GitRepositories/st b/GitRepositories/st new file mode 160000 index 0000000..e9b6f0a --- /dev/null +++ b/GitRepositories/st @@ -0,0 +1 @@ +Subproject commit e9b6f0a2f91611cff60bf1c821d191e89ee0edf9 diff --git a/scripts/polybar-wireguard b/scripts/polybar-wireguard new file mode 120000 index 0000000..17cb428 --- /dev/null +++ b/scripts/polybar-wireguard @@ -0,0 +1 @@ +/home/sahin/GitRepositories/polybar-wireguard/polybar-wireguard \ No newline at end of file diff --git a/scripts/rofi-bluetooth b/scripts/rofi-bluetooth new file mode 120000 index 0000000..8f71c5f --- /dev/null +++ b/scripts/rofi-bluetooth @@ -0,0 +1 @@ +/home/sahin/GitRepositories/rofi-bluetooth/rofi-bluetooth \ No newline at end of file