From 7adb7a638b90803880305cb6b5ec86da6f3a02a5 Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 26 Jun 2023 16:50:08 +0200 Subject: [PATCH 1/3] screens: Add two other screens In order to have enough screens pin screen 11 and 12 to the laptop. --- .config/i3/config | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index f30977d..d2d60b3 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -112,6 +112,8 @@ set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" +set $ws11 "11" +set $ws12 "12" # switch to workspace bindsym $mod+1 workspace $ws1 @@ -124,6 +126,8 @@ bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 +bindsym $mod+minus workspace $ws11 +bindsym $mod+equal workspace $ws12 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace $ws1 @@ -136,6 +140,8 @@ bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 +bindsym $mod+Shift+underscore move container to workspace $ws11 +bindsym $mod+Shift+plus move container to workspace $ws12 # reload the configuration file bindsym $mod+Shift+c reload @@ -270,13 +276,15 @@ workspace $ws2 output $screen1 workspace $ws3 output $screen1 workspace $ws4 output $screen1 workspace $ws5 output $screen1 - -workspace $ws6 output $screen0 +workspace $ws6 output $screen1 workspace $ws7 output $screen2 workspace $ws8 output $screen2 workspace $ws9 output $screen2 workspace $ws10 output $screen2 +workspace $ws11 output $screen0 +workspace $ws12 output $screen0 + # start autolock exec_always xautolock -time 5 -locker "fuzzy-i3lock" From c9f0e2200a691171a4da3eaf3671246f48e5fc80 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 5 Jul 2023 16:57:56 +0200 Subject: [PATCH 2/3] i3status-rs: Show names instead of too long paths In order to not oversize the status bar configure names instead of the too long paths. --- .config/i3status-rust/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index 5d5e960..1fcf7c0 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -85,7 +85,7 @@ path = "/var/lib/machines" warning = 80.0 alert = 90.0 info_type = "used" -format = " $icon $path $percentage " +format = " $icon nspawn $percentage " [[block]] block = "disk_space" @@ -93,7 +93,7 @@ path = "/var/lib/libvirt/images" warning = 80.0 alert = 90.0 info_type = "used" -format = " $icon $path $percentage " +format = " $icon libvirt $percentage " [[block]] block = "memory" From 871ebf00dc1b4c3be2bdbb5b4951ac13eef61f91 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 5 Jul 2023 16:58:44 +0200 Subject: [PATCH 3/3] i3status-rs: Add the backup volume Also show the usage of the backup volume. --- .config/i3status-rust/config.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index 1fcf7c0..d844f24 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -95,6 +95,14 @@ alert = 90.0 info_type = "used" format = " $icon libvirt $percentage " +[[block]] +block = "disk_space" +path = "/share/backup" +warning = 80.0 +alert = 90.0 +info_type = "used" +format = " $icon backup $percentage " + [[block]] block = "memory" format = " $icon $mem_used_percents.eng(w:3) "