From 63d1d56ee6ab54d1f5f1c7f7243a4aee134cdb22 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 19 Apr 2023 15:37:58 +0200 Subject: [PATCH 1/4] Add new screen setup --- .config/i3/config | 46 +++++++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index b393390..bde1a00 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -200,8 +200,9 @@ client.focused #000000 #009900 #ffffff #ff0000 client.unfocused #000000 #005500 #000000 #ff0000 # use variables for screens -set $screen0 "DP-1" -set $screen1 "HDMI-2" +set $screen0 "eDP-1" +set $screen1 "DP-1-8" +set $screen2 "DP-1-1" # Start i3bar to display a workspace bar (plus the system information # i3status-rust finds out, if available) @@ -222,8 +223,9 @@ bar { #client.orientation #ff0000 } } + bar { - status_command i3status-rs ~/.config/i3status-rust/secondary.toml + status_command i3status-rs font pango:DejaVu Sans Mono, forkawesome 8 position top tray_output primary @@ -240,14 +242,32 @@ bar { } } -workspace $ws1 output $screen0 -workspace $ws2 output $screen0 -workspace $ws3 output $screen0 -workspace $ws4 output $screen0 -workspace $ws5 output $screen0 +bar { + status_command i3status-rs ~/.config/i3status-rust/secondary.toml + font pango:DejaVu Sans Mono, forkawesome 8 + position top + tray_output primary + workspace_buttons yes + mode dock + modifier $mod + output $screen2 -workspace $ws10 output $screen1 -workspace $ws9 output $screen1 -workspace $ws8 output $screen1 -workspace $ws7 output $screen1 -workspace $ws6 output $screen1 + colors { + statusline #00ff00 + focused_workspace #00cc00 #00ff00 #000000 + inactive_workspace #00cc00 #008b00 #cccccc + #client.orientation #ff0000 + } +} + +workspace $ws1 output $screen1 +workspace $ws2 output $screen1 +workspace $ws3 output $screen1 +workspace $ws4 output $screen1 +workspace $ws5 output $screen1 + +workspace $ws6 output $screen2 +workspace $ws7 output $screen2 +workspace $ws8 output $screen2 +workspace $ws9 output $screen2 +workspace $ws10 output $screen0 From 5eb19a39ea3e33ab8c72f580cf0e8e30feed52f4 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 19 Apr 2023 16:08:36 +0200 Subject: [PATCH 2/4] Add autolock to i3 config --- .config/i3/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index bde1a00..0c7ffba 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -271,3 +271,6 @@ workspace $ws7 output $screen2 workspace $ws8 output $screen2 workspace $ws9 output $screen2 workspace $ws10 output $screen0 + +# start autolock +exec_always xautolock -time 5 -locker "fuzzy-i3lock" From e68f01d1a76b37baa475194798cf8e2ab8928490 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 19 Apr 2023 16:09:56 +0200 Subject: [PATCH 3/4] Update i3status-rs configs --- .config/i3status-rust/config.toml | 112 ++++++++++++++++----------- .config/i3status-rust/secondary.toml | 23 +++--- 2 files changed, 77 insertions(+), 58 deletions(-) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index fd1e336..9dde85f 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -1,5 +1,5 @@ [icons] -icons = "awesome" +icons = "awesome4" [theme] theme = "solarized-dark" @@ -12,89 +12,113 @@ separator_fg = "#00cc00" separator_bg = "#222222" [[block]] -block = "maildir" -interval = 15 -inboxes = ["/home/finga/mail/onders.org/Inbox", "/home/finga/mail/chaostreff.at/Inbox"] -display_type = "new" +block = "uptime" [[block]] block = "weather" -format = "$weather $temp, $humidity, $wind m/s $direction" +format = " $icon $weather $temp, $humidity, $wind m/s $direction " service = { name = "openweathermap", api_key = "8271cc3c23dbae82eda2123c55c050be", city_id = "2766824", units = "metric" } [[block]] block = "sound" +driver = "pulseaudio" [[block]] -block = "music" -format = "$combo.rot-str(30) $play" -player = "mpd" +block = "net" +device = "br0" +format = " $icon $ip $graph_down $speed_down^icon_net_down $graph_up $speed_up^icon_net_up " [[block]] block = "net" device = "enp0s31f6" -format = "$ip $graph_down $speed_down $graph_up $speed_up" +format = " $icon $ip $graph_down $speed_down $graph_up $speed_up " -# [[block]] -# block = "disk_space" -# path = "/" -# info_type = "used" -# format = "{path} {percentage}" +[[block]] +block = "net" +device = "tn0" +format = " $icon $ip $speed_down^icon_net_down $speed_up^icon_net_up " -# [[block]] -# block = "disk_space" -# path = "/home" -# info_type = "used" -# format = "{path} {percentage}" +[[block]] +block = "net" +format = " $icon {$signal_strength $ssid $frequency| x} via $device " -# [[block]] -# block = "disk_space" -# path = "/var" -# info_type = "used" -# warning = 20.0 -# format = "{path} {percentage}" +[[block]] +block = "disk_space" +path = "/" +warning = 80.0 +alert = 90.0 +info_type = "used" +format = " $icon $path $percentage " -# [[block]] -# block = "disk_space" -# path = "/tmp" -# info_type = "used" -# format = "{path} {percentage}" +[[block]] +block = "disk_space" +path = "/home" +warning = 75.0 +alert = 80.0 +info_type = "used" +format = " $icon $path $percentage " + +[[block]] +block = "disk_space" +path = "/tmp" +warning = 75.0 +alert = 80.0 +info_type = "used" +format = " $icon $path $percentage " + +[[block]] +block = "disk_space" +path = "/var" +warning = 80.0 +alert = 90.0 +info_type = "used" +format = " $icon $path $percentage " + +[[block]] +block = "disk_space" +path = "/var/lib/machines" +warning = 80.0 +alert = 90.0 +info_type = "used" +format = " $icon $path $percentage " + +[[block]] +block = "disk_space" +path = "/var/lib/libvirt/images" +warning = 80.0 +alert = 90.0 +info_type = "used" +format = " $icon $path $percentage " [[block]] block = "memory" -display_type = "memory" -format_mem = "$mem_total_used_percents.eng(3)" -clickable = false +format = " $icon $mem_used_percents.eng(w:3) " [[block]] block = "memory" -display_type = "swap" -format_swap = "$swap_used_percents.eng(3)" -clickable = false +format = " $icon_swap $swap_used_percents.eng(w:3) " [[block]] block = "cpu" interval = 1 -format = "$barchart $utilization $frequency.eng(4)" +format = " $icon $barchart $utilization $frequency.eng(w:4) " [[block]] block = "temperature" -collapsed = false -format = "$min min, $max max, $average avg" -chip = "*-isa-*" +format = " $icon $min min, $max max, $average avg " [[block]] block = "load" -format = "$1m.eng(4) $5m.eng(4) $15m.eng(4)" +format = " $icon $1m.eng(w:4) $5m.eng(w:4) $15m.eng(w:4) " [[block]] block = "time" interval = 1 -format = "%F (%Z) %T" +format = " $icon $timestamp.datetime(f:'%F (%Z) %T') " timezone = "Europe/Vienna" [[block]] block = "time" interval = 1 -format = "(%Z) %T" +format = " $icon $timestamp.datetime(f:'(%Z) %T') " timezone = "Etc/UTC" diff --git a/.config/i3status-rust/secondary.toml b/.config/i3status-rust/secondary.toml index 88569de..412297d 100644 --- a/.config/i3status-rust/secondary.toml +++ b/.config/i3status-rust/secondary.toml @@ -1,5 +1,5 @@ [icons] -icons = "awesome" +icons = "awesome4" [theme] theme = "solarized-dark" @@ -13,45 +13,40 @@ separator_bg = "#222222" [[block]] block = "sound" +driver = "pulseaudio" [[block]] block = "uptime" [[block]] block = "memory" -display_type = "memory" -format_mem = "$mem_total_used_percents.eng(3)" -clickable = false +format = " $icon $mem_used_percents.eng(w:3) " [[block]] block = "memory" -display_type = "swap" -format_swap = "$swap_used_percents.eng(3)" -clickable = false +format = " $icon_swap $swap_used_percents.eng(w:3) " [[block]] block = "cpu" interval = 1 -format = "$barchart $utilization" +format = " $icon $barchart $utilization $frequency.eng(w:4) " [[block]] block = "temperature" -collapsed = false -format = "$min min, $max max, $average avg" -chip = "*-isa-*" +format = " $icon $min min, $max max, $average avg " [[block]] block = "load" -format = "$1m.eng(4) $5m.eng(4) $15m.eng(4)" +format = " $icon $1m.eng(w:4) $5m.eng(w:4) $15m.eng(w:4) " [[block]] block = "time" interval = 1 -format = "%Y-%m-%d %a (%Z) %H:%M:%S" +format = " $icon $timestamp.datetime(f:'%F (%Z) %T') " timezone = "Europe/Vienna" [[block]] block = "time" interval = 1 -format = "(%Z) %H:%M:%S" +format = " $icon $timestamp.datetime(f:'(%Z) %T') " timezone = "Etc/UTC" From 914e5da29e04568bd30a642935f86cb281171372 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 19 Apr 2023 16:11:03 +0200 Subject: [PATCH 4/4] Use the correct command to take screenshots --- .local/bin/fuzzy-i3lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/fuzzy-i3lock b/.local/bin/fuzzy-i3lock index ae4b552..ef62c6b 100755 --- a/.local/bin/fuzzy-i3lock +++ b/.local/bin/fuzzy-i3lock @@ -8,6 +8,6 @@ screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" -scrot "$screenshot" +scrot -o "$screenshot" mogrify -scale 10% -scale 1000% "$screenshot" exec i3lock -i "$screenshot"