diff --git a/scripts/sway/swaystatus b/scripts/sway/swaystatus index a9c7828..85ac510 100755 --- a/scripts/sway/swaystatus +++ b/scripts/sway/swaystatus @@ -52,6 +52,10 @@ get_mic() { echo " $bar" } +get_net() { + netstat +} + get_bat() { total=0 batteries=0 @@ -103,6 +107,9 @@ while true ; do #microphone="$(get_mic)" ! [ -z "$microphone" ] && status="$status$separator$microphone" + network="$(get_net)" + ! [ -z "$network" ] && status="$status$separator$network" + battery="$(get_bat)" ! [ -z "$battery" ] && status="$status$separator$battery" @@ -114,5 +121,5 @@ while true ; do printf "%s \n" "$status" # exit 0 # Testing - sleep 0.5 + sleep 1 done diff --git a/shell/envvar b/shell/envvar index cde09ec..8eba207 100644 --- a/shell/envvar +++ b/shell/envvar @@ -4,6 +4,7 @@ # Custom PATHs for executables PATH="$HOME/.config/scripts/status${PATH:+:${PATH}}" PATH="$HOME/.config/scripts/menu${PATH:+:${PATH}}" +PATH="$HOME/.config/scripts/sway${PATH:+:${PATH}}" PATH="$HOME/.config/wrappers${PATH:+:${PATH}}" PATH="$HOME/.config/scripts${PATH:+:${PATH}}" PATH="$HOME/.local/bin${PATH:+:${PATH}}" diff --git a/sway/config b/sway/config index dc0e9cb..5fdc8e7 100644 --- a/sway/config +++ b/sway/config @@ -79,16 +79,24 @@ bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right # - -bindsym $mod+1 workspace " I " -bindsym $mod+2 workspace " II " -bindsym $mod+3 workspace " III " -bindsym $mod+4 workspace " IV " -bindsym $mod+5 workspace " V " -bindsym $mod+Shift+1 move container to workspace " I " -bindsym $mod+Shift+2 move container to workspace " II " -bindsym $mod+Shift+3 move container to workspace " III " -bindsym $mod+Shift+4 move container to workspace " IV " -bindsym $mod+Shift+5 move container to workspace " V " +bindsym $mod+1 workspace " 1 " +bindsym $mod+2 workspace " 2 " +bindsym $mod+3 workspace " 3 " +bindsym $mod+4 workspace " 4 " +bindsym $mod+5 workspace " 5 " +bindsym $mod+6 workspace " 6 " +bindsym $mod+7 workspace " 7 " +bindsym $mod+8 workspace " 8 " +bindsym $mod+9 workspace " 9 " +bindsym $mod+Shift+1 move container to workspace " 1 " +bindsym $mod+Shift+2 move container to workspace " 2 " +bindsym $mod+Shift+3 move container to workspace " 3 " +bindsym $mod+Shift+4 move container to workspace " 4 " +bindsym $mod+Shift+5 move container to workspace " 5 " +bindsym $mod+Shift+6 move container to workspace " 6 " +bindsym $mod+Shift+7 move container to workspace " 7 " +bindsym $mod+Shift+8 move container to workspace " 8 " +bindsym $mod+Shift+9 move container to workspace " 9 " # - bindsym $mod+b splith bindsym $mod+v splitv