home: random configuration changes across apps

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-04-27 14:58:59 +05:30
parent 04dc801925
commit 0e4ac5dfe5
14 changed files with 30 additions and 37 deletions

View File

@@ -9,7 +9,7 @@
# active workspace
current=1
list_workspaces() {
workspace_list=$(hyprctl -j workspaces | jq -rc '[.[]|.id]|sort')
workspace_list=$(hyprctl -j workspaces | jq -rc '[.[]|.id]|sort' || "[]")
}
workspaces() {
@@ -18,7 +18,7 @@ workspaces() {
list_workspaces
workspaces
hyprctl dispatch workspace $current || true
hyprctl dispatch workspace $current &>/dev/null || true
socat -u UNIX-CONNECT:/tmp/hypr/"$HYPRLAND_INSTANCE_SIGNATURE"/.socket2.sock - | while read -r event; do
case ${event%>>*} in

View File

@@ -1,4 +1,4 @@
(deflisten workspace "bar/hyprworkspaces")
(deflisten workspace :initial "{}" "bar/hyprworkspaces")
(defvar numerals "[\"१\", \"२\", \"३\", \"४\", \"५\", \"६\", \"७\", \"८\", \"९\", \"\"]")
(defwidget workspaces []

View File

@@ -89,7 +89,6 @@
(button
:visible {system_net_wifi != ""}
:tooltip {system_net_wifi}
:onclick "iwgtk &"
""))))
(defwidget system_info []