diff --git a/dotconfig/bin/gen_shared_laptop b/dotconfig/bin/gen_shared_laptop new file mode 100755 index 0000000..84aec2d --- /dev/null +++ b/dotconfig/bin/gen_shared_laptop @@ -0,0 +1,11 @@ +#!/bin/sh + +doas ip a add 192.168.2.2/24 dev eth0 + +doas sv u sshd + +hyprctl output create headless + +sleep 1 + +wayvnc -L debug -f 120 -k fr diff --git a/dotconfig/bin/get_active_workspace b/dotconfig/bin/get_active_workspace new file mode 100755 index 0000000..b4eb262 --- /dev/null +++ b/dotconfig/bin/get_active_workspace @@ -0,0 +1,23 @@ +#!/bin/sh + +a=$(hyprctl workspaces | grep "workspace ID" | cut -d " " -f 3) + +active=$(hyprctl monitors | grep "active workspace:" | tr -s ' ' | cut -d " " -f 3) + +a=$(echo $a | tr " " "\n" | sort -g) + +b="(box :space-evenly false " + + +for i in $a +do + if [ "${i}" == "${active}" ] + then + b="${b}(button :class 'active' :onclick 'hyprctl dispatch workspace ${i}' '${i}')" + else + b="${b}(button :class 'btw' :onclick 'hyprctl dispatch workspace ${i}' '${i}')" + fi +done + +b="${b} )" +echo "$b" diff --git a/dotconfig/bin/get_network b/dotconfig/bin/get_network new file mode 100755 index 0000000..c263a42 --- /dev/null +++ b/dotconfig/bin/get_network @@ -0,0 +1,3 @@ +#!/bin/sh + +if iwctl station wlan0 show | grep -q "Connected network" ; then echo $(iwctl station wlan0 show | grep "AverageRSSI" | tr -s ' ' | cut -d " " -f 3); else echo "Disconnected"; fi diff --git a/dotconfig/bin/open_eww b/dotconfig/bin/open_eww index 1b71cfc..1f82354 100755 --- a/dotconfig/bin/open_eww +++ b/dotconfig/bin/open_eww @@ -3,3 +3,4 @@ eww open system eww open clock eww open perf +eww open bar