From 07837522ae79d4e5e903468d748dbf0e0b2e169d Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 3 Jun 2018 02:16:26 +0200 Subject: [PATCH 01/70] adopt to x200 --- .config/i3status/config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/i3status/config b/.config/i3status/config index 14486d1..b909c11 100644 --- a/.config/i3status/config +++ b/.config/i3status/config @@ -4,8 +4,8 @@ general { } # order += "ipv6" -order += "ethernet eth0" -order += "wireless wlan0" +order += "ethernet enp0s25" +order += "wireless wlp2s0" order += "battery 0" order += "cpu_usage" order += "load" @@ -13,12 +13,12 @@ order += "volume master" order += "tztime home" order += "tztime utc" -ethernet eth0 { +ethernet enp0s25 { format_up = "E: %ip (%speed)" format_down = "E: down" } -wireless wlan0 { +wireless wlp2s0 { format_up = "W: %quality@%ip" format_down = "W: down" } From e84ecbf4107e0a44384f897897835aa4d3770554 Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 8 Nov 2018 15:25:46 +0100 Subject: [PATCH 02/70] implement screen lock --- .config/i3/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index a9608fc..f0f9499 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -38,6 +38,9 @@ bindsym $mod+Shift+Return exec em # kill focused window bindsym $mod+Shift+Q kill +# lock screen +bindsym $mod+l exec fuzzy-i3lock + # start dmenu (a program launcher) bindsym $mod+d exec dmenu_run From 9bc651f3c7a5db3372976dc0065ca74e75d5ad23 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 10 Jul 2019 23:40:14 +0200 Subject: [PATCH 03/70] floating window size --- .config/i3/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index f0f9499..580ba43 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -133,6 +133,10 @@ mode "resize" { } bindsym $mod+r mode "resize" +# constraining floating window size +# floating_minimum_size 75 x 50 +floating_maximum_size -1 x -1 + # colors & style new_window normal 1 new_float normal 1 From af4761ccc276fe86281a0bf3b403b02d19c4d70d Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 21 Dec 2020 15:36:20 +0100 Subject: [PATCH 04/70] Add ibus key bindings --- .config/i3/config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index 3a3ef92..01d8938 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -140,6 +140,12 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart +# set input keyboard to us english +bindsym $mod+Control+e exec "ibus engine xkb:us::eng" + +# set input keyboard to Chỡ Quố Ngữ (vietnamese) +bindsym $mod+Control+v exec "ibus engine Unikey" + # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" From 2b1a9f7b6008ce8dde223ff68b97d286d6a150ae Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 22 Dec 2020 11:40:20 +0100 Subject: [PATCH 05/70] Fix direction when resizing windows --- .config/i3/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index b8dd005..cab5dff 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -155,8 +155,8 @@ mode "resize" { bindsym Left resize grow width 10 px or 10 ppt bindsym $mod+f resize grow width 10 px or 10 ppt - bindsym $mod+p resize shrink height 10 px or 10 ppt - bindsym $mod+n resize grow height 10 px or 10 ppt + bindsym $mod+n resize shrink height 10 px or 10 ppt + bindsym $mod+p resize grow height 10 px or 10 ppt bindsym $mod+b resize shrink width 10 px or 10 ppt # back to normal: Enter or Escape From d85f425c84e9c51f7ed572ef1a88ea041739755c Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 21 Dec 2020 15:36:20 +0100 Subject: [PATCH 06/70] Add ibus key bindings --- .config/i3/config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index cab5dff..00b7044 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -140,6 +140,12 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart +# set input keyboard to us english +bindsym $mod+Control+e exec "ibus engine xkb:us::eng" + +# set input keyboard to Chỡ Quố Ngữ (vietnamese) +bindsym $mod+Control+v exec "ibus engine Unikey" + # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" From b6124d8e0c90fac41fc72b66b745409d8a5b85d9 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 12 Mar 2021 10:38:39 +0100 Subject: [PATCH 07/70] Add weather to i3-status-rs --- .config/i3/status-rs.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml index 12e8914..47cb82f 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3/status-rs.toml @@ -16,6 +16,11 @@ interval = 15 inboxes = ["/home/finga/mail/onders.org/Inbox"] display_type = "new" +[[block]] +block = "weather" +format = "{weather} ({location}) {temp}°, {humidity}%, {wind}m/s {direction}" +service = { name = "openweathermap", api_key = "8271cc3c23dbae82eda2123c55c050be", city_id = "2766824", units = "metric" } + [[block]] block = "music" max_width = 42 From 3984fa8171c484abcdead4362db4c5180c7aaa4e Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 23 Mar 2021 17:21:05 +0100 Subject: [PATCH 08/70] Add screenshot shortcut --- .config/i3/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index 00b7044..016290d 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -37,6 +37,9 @@ bindsym $mod+Return exec i3-sensible-terminal # start emacs bindsym $mod+Shift+Return exec i3-sensible-editor +# take screenshot +bindsym $mod+Print exec scrot ~/tmp/screenshots/'%Y-%m-%d_%H:%M:%S_$wx$h.png' + # lock screen bindsym $mod+l exec fuzzy-i3lock From faa502b08195084da4fa1837d731107020ba2728 Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 7 Oct 2021 11:28:41 +0200 Subject: [PATCH 09/70] Add audio volume control --- .config/i3/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index 016290d..6a53e69 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -152,6 +152,11 @@ bindsym $mod+Control+v exec "ibus engine Unikey" # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" +# volume keys: mute, lower highter +bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle" +bindsym XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -5%" +bindsym XF86AudioRaiseVolume exec "pactl set-sink-volume @DEFAULT_SINK@ +5%" + # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From 9ecf54c55f8b38033833d2100139887a21d4bd20 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 20 Oct 2021 13:29:33 +0200 Subject: [PATCH 10/70] Improve execs, comments and audio commands --- .config/i3/config | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 6a53e69..b6dc529 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -47,7 +47,7 @@ bindsym $mod+l exec fuzzy-i3lock bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec dmenu_run +bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # toggle i3bar bindsym $mod+m bar hidden_state toggle @@ -153,9 +153,11 @@ bindsym $mod+Control+v exec "ibus engine Unikey" bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # volume keys: mute, lower highter -bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle" -bindsym XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -5%" -bindsym XF86AudioRaiseVolume exec "pactl set-sink-volume @DEFAULT_SINK@ +5%" +set $refresh_i3status killall -SIGUSR1 i3status-rs +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" @@ -191,8 +193,8 @@ new_float normal 1 client.focused #000000 #009900 #ffffff #ff0000 client.unfocused #000000 #005500 #000000 #ff0000 -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) +# Start i3bar to display a workspace bar (plus the system information +# i3status-rust finds out, if available) bar { status_command i3status-rs ~/.config/i3/status-rs.toml font pango:DejaVu Sans Mono, forkawesome 8 From dbf6b1d99e262c313c894594bc905ecc2622a197 Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 21 Oct 2021 10:27:22 +0200 Subject: [PATCH 11/70] Revert using i3-dmenu-desktop over dmenu I prefer using `dmenu` over `i3-dmenu-desktop`. --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index b6dc529..0c85781 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -47,7 +47,7 @@ bindsym $mod+l exec fuzzy-i3lock bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id i3-dmenu-desktop +bindsym $mod+d exec --no-startup-id dmenu_run # toggle i3bar bindsym $mod+m bar hidden_state toggle From 6803914a025150932a789e0878c874065048f66c Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 28 Oct 2021 10:28:09 +0200 Subject: [PATCH 12/70] Add media keys Control mpc from keyboard. --- .config/i3/config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index 0c85781..1977812 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -152,12 +152,16 @@ bindsym $mod+Control+v exec "ibus engine Unikey" # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" -# volume keys: mute, lower highter +# media keys set $refresh_i3status killall -SIGUSR1 i3status-rs bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status +bindsym XF86AudioNext exec --no-startup-id mpc next +bindsym XF86AudioPlay exec --no-startup-id mpc toggle +bindsym XF86AudioPrev exec --no-startup-id mpc prev +bindsym XF86AudioStop exec --no-startup-id mpc stop # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From 97dcd23dcae6a8c91c19705e11a9a45824f4b8e5 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 2 Nov 2021 10:51:22 +0100 Subject: [PATCH 13/70] Use variables for screen identification That way less has to be changed when using different screens. --- .config/i3/config | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 1977812..df5aef1 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -197,6 +197,10 @@ new_float normal 1 client.focused #000000 #009900 #ffffff #ff0000 client.unfocused #000000 #005500 #000000 #ff0000 +# use variables for screens +set $screen0 "DP-1" +set $screen1 "HDMI-2" + # Start i3bar to display a workspace bar (plus the system information # i3status-rust finds out, if available) bar { @@ -207,7 +211,7 @@ bar { workspace_buttons yes mode dock modifier $mod - output DP-1 + output $screen0 colors { statusline #00ff00 @@ -224,7 +228,7 @@ bar { workspace_buttons yes mode dock modifier $mod - output HDMI-2 + output $screen1 colors { statusline #00ff00 @@ -234,14 +238,14 @@ bar { } } -workspace $ws1 output DP-1 -workspace $ws2 output DP-1 -workspace $ws3 output DP-1 -workspace $ws4 output DP-1 -workspace $ws5 output DP-1 +workspace $ws1 output $screen0 +workspace $ws2 output $screen0 +workspace $ws3 output $screen0 +workspace $ws4 output $screen0 +workspace $ws5 output $screen0 -workspace $ws10 output HDMI-2 -workspace $ws6 output HDMI-2 -workspace $ws7 output HDMI-2 -workspace $ws8 output HDMI-2 -workspace $ws9 output HDMI-2 +workspace $ws10 output $screen1 +workspace $ws9 output $screen1 +workspace $ws8 output $screen1 +workspace $ws7 output $screen1 +workspace $ws6 output $screen1 From d4a93ff1095dd642c21fa53499be215e4df11779 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 2 Nov 2021 20:10:56 +0100 Subject: [PATCH 14/70] Improve i3status-rs Reorder sound and improve other stuff. --- .config/i3/status-rs.toml | 15 +++++++-------- .config/i3/status-rs_sec.toml | 6 +++--- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml index 47cb82f..9379fe2 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3/status-rs.toml @@ -18,21 +18,23 @@ display_type = "new" [[block]] block = "weather" -format = "{weather} ({location}) {temp}°, {humidity}%, {wind}m/s {direction}" +format = "{weather} {temp}°, {humidity}%, {wind}m/s {direction}" service = { name = "openweathermap", api_key = "8271cc3c23dbae82eda2123c55c050be", city_id = "2766824", units = "metric" } +[[block]] +block = "sound" + [[block]] block = "music" -max_width = 42 marquee_interval = 0 marquee_speed = 0.3 -buttons = ["prev", "play", "next"] +max_width = 35 +buttons = ["play"] [[block]] block = "net" device = "enp0s31f6" -# format = "{ip} {graph_down} {speed_down} {graph_up} {speed_up}" -format = "{graph_down} {speed_down} {graph_up} {speed_up}" +format = "{ip} {graph_down} {speed_down} {graph_up} {speed_up}" # [[block]] # block = "disk_space" @@ -87,9 +89,6 @@ block = "load" interval = 1 format = "{1m} {5m} {15m}" -[[block]] -block = "sound" - [[block]] block = "time" interval = 1 diff --git a/.config/i3/status-rs_sec.toml b/.config/i3/status-rs_sec.toml index b53ffe5..90fd033 100644 --- a/.config/i3/status-rs_sec.toml +++ b/.config/i3/status-rs_sec.toml @@ -10,6 +10,9 @@ separator = "|" separator_fg = "#00cc00" separator_bg = "#222222" +[[block]] +block = "sound" + [[block]] block = "uptime" @@ -42,9 +45,6 @@ block = "load" interval = 1 format = "{1m} {5m} {15m}" -[[block]] -block = "sound" - [[block]] block = "time" interval = 1 From 457b9675926395af6fb86b9dff279850b7fb8523 Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 11 Nov 2021 12:53:13 +0100 Subject: [PATCH 15/70] Add volume +/- 1% to media keys To be able to +/- volume more accurate. --- .config/i3/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index df5aef1..24af527 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -156,6 +156,8 @@ bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu set $refresh_i3status killall -SIGUSR1 i3status-rs bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status +bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status +bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status bindsym XF86AudioNext exec --no-startup-id mpc next From 049f75ca5ca324fd2e749fd8b6ad6d2cf54188f5 Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 11 Apr 2022 18:21:32 +0200 Subject: [PATCH 16/70] Move i3-status-rs config and update --- .config/i3/config | 4 ++-- .../status-rs.toml => i3status-rust/config.toml} | 15 ++++++++------- .../secondary.toml} | 8 ++++---- .gitignore.d/i3 | 11 +++-------- 4 files changed, 17 insertions(+), 21 deletions(-) rename .config/{i3/status-rs.toml => i3status-rust/config.toml} (80%) rename .config/{i3/status-rs_sec.toml => i3status-rust/secondary.toml} (83%) diff --git a/.config/i3/config b/.config/i3/config index 24af527..b393390 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -206,7 +206,7 @@ set $screen1 "HDMI-2" # Start i3bar to display a workspace bar (plus the system information # i3status-rust finds out, if available) bar { - status_command i3status-rs ~/.config/i3/status-rs.toml + status_command i3status-rs font pango:DejaVu Sans Mono, forkawesome 8 position top tray_output primary @@ -223,7 +223,7 @@ bar { } } bar { - status_command i3status-rs ~/.config/i3/status-rs_sec.toml + status_command i3status-rs ~/.config/i3status-rust/secondary.toml font pango:DejaVu Sans Mono, forkawesome 8 position top tray_output primary diff --git a/.config/i3/status-rs.toml b/.config/i3status-rust/config.toml similarity index 80% rename from .config/i3/status-rs.toml rename to .config/i3status-rust/config.toml index 9379fe2..a722b09 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3status-rust/config.toml @@ -13,12 +13,12 @@ separator_bg = "#222222" [[block]] block = "maildir" interval = 15 -inboxes = ["/home/finga/mail/onders.org/Inbox"] +inboxes = ["/home/finga/mail/onders.org/Inbox", "/home/finga/mail/chaostreff.at/Inbox"] display_type = "new" [[block]] block = "weather" -format = "{weather} {temp}°, {humidity}%, {wind}m/s {direction}" +format = "{weather} {temp}, {humidity}%, {wind}m/s {direction}" service = { name = "openweathermap", api_key = "8271cc3c23dbae82eda2123c55c050be", city_id = "2766824", units = "metric" } [[block]] @@ -26,9 +26,10 @@ block = "sound" [[block]] block = "music" -marquee_interval = 0 +marquee_interval = 1 marquee_speed = 0.3 max_width = 35 +player = "mpd" buttons = ["play"] [[block]] @@ -64,24 +65,24 @@ format = "{ip} {graph_down} {speed_down} {graph_up} {speed_up}" [[block]] block = "memory" display_type = "memory" -format_mem = "{Mup}%" +format_mem = "{mem_total_used_percents}" clickable = false [[block]] block = "memory" display_type = "swap" -format_swap = "{SUp}%" +format_swap = "{swap_used_percents}" clickable = false [[block]] block = "cpu" interval = 1 -format = "{barchart} {utilization}% {frequency}GHz" +format = "{barchart} {utilization} {frequency}" [[block]] block = "temperature" collapsed = false -format = "{min}° min, {max}° max, {average}° avg" +format = "{min} min, {max} max, {average} avg" chip = "*-isa-*" [[block]] diff --git a/.config/i3/status-rs_sec.toml b/.config/i3status-rust/secondary.toml similarity index 83% rename from .config/i3/status-rs_sec.toml rename to .config/i3status-rust/secondary.toml index 90fd033..9c31533 100644 --- a/.config/i3/status-rs_sec.toml +++ b/.config/i3status-rust/secondary.toml @@ -19,25 +19,25 @@ block = "uptime" [[block]] block = "memory" display_type = "memory" -format_mem = "{Mup}%" +format_mem = "{mem_total_used_percents}" clickable = false [[block]] block = "memory" display_type = "swap" -format_swap = "{SUp}%" +format_swap = "{swap_used_percents}" clickable = false [[block]] block = "cpu" -frequency = true interval = 1 +format = "{frequency}" [[block]] block = "temperature" collapsed = false interval = 10 -format = "{min}° min, {max}° max, {average}° avg" +format = "{min} min, {max} max, {average} avg" chip = "*-isa-*" [[block]] diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 index cb6f044..9cae4fa 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/i3 @@ -1,12 +1,7 @@ * -!/.config -!/.config/i3 -!/.config/i3/* -!/.config/i3status -!/.config/i3status/* -!/.gitignore.d +!/.config/i3/config +!/.config/i3status-rust/config.toml +!/.config/i3status-rust/secondary.toml !/.gitignore.d/i3 -!/.local -!/.local/bin !/.local/bin/fuzzy-i3lock !/.local/bin/i3-run From ea172a8c6d3789f098cb2db57629162e0548b523 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 3 Sep 2022 23:58:14 +0200 Subject: [PATCH 17/70] i3status-rs: Update configuration to last version --- .config/i3status-rust/config.toml | 23 ++++++++++------------- .config/i3status-rust/secondary.toml | 15 +++++++-------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index a722b09..fd1e336 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -1,7 +1,8 @@ +[icons] icons = "awesome" [theme] -name = "solarized-dark" +theme = "solarized-dark" [theme.overrides] idle_fg = "#00cc00" @@ -18,7 +19,7 @@ display_type = "new" [[block]] block = "weather" -format = "{weather} {temp}, {humidity}%, {wind}m/s {direction}" +format = "$weather $temp, $humidity, $wind m/s $direction" service = { name = "openweathermap", api_key = "8271cc3c23dbae82eda2123c55c050be", city_id = "2766824", units = "metric" } [[block]] @@ -26,16 +27,13 @@ block = "sound" [[block]] block = "music" -marquee_interval = 1 -marquee_speed = 0.3 -max_width = 35 +format = "$combo.rot-str(30) $play" player = "mpd" -buttons = ["play"] [[block]] block = "net" device = "enp0s31f6" -format = "{ip} {graph_down} {speed_down} {graph_up} {speed_up}" +format = "$ip $graph_down $speed_down $graph_up $speed_up" # [[block]] # block = "disk_space" @@ -65,30 +63,29 @@ format = "{ip} {graph_down} {speed_down} {graph_up} {speed_up}" [[block]] block = "memory" display_type = "memory" -format_mem = "{mem_total_used_percents}" +format_mem = "$mem_total_used_percents.eng(3)" clickable = false [[block]] block = "memory" display_type = "swap" -format_swap = "{swap_used_percents}" +format_swap = "$swap_used_percents.eng(3)" clickable = false [[block]] block = "cpu" interval = 1 -format = "{barchart} {utilization} {frequency}" +format = "$barchart $utilization $frequency.eng(4)" [[block]] block = "temperature" collapsed = false -format = "{min} min, {max} max, {average} avg" +format = "$min min, $max max, $average avg" chip = "*-isa-*" [[block]] block = "load" -interval = 1 -format = "{1m} {5m} {15m}" +format = "$1m.eng(4) $5m.eng(4) $15m.eng(4)" [[block]] block = "time" diff --git a/.config/i3status-rust/secondary.toml b/.config/i3status-rust/secondary.toml index 9c31533..88569de 100644 --- a/.config/i3status-rust/secondary.toml +++ b/.config/i3status-rust/secondary.toml @@ -1,7 +1,8 @@ +[icons] icons = "awesome" [theme] -name = "solarized-dark" +theme = "solarized-dark" [theme.overrides] idle_fg = "#00cc00" @@ -19,31 +20,29 @@ block = "uptime" [[block]] block = "memory" display_type = "memory" -format_mem = "{mem_total_used_percents}" +format_mem = "$mem_total_used_percents.eng(3)" clickable = false [[block]] block = "memory" display_type = "swap" -format_swap = "{swap_used_percents}" +format_swap = "$swap_used_percents.eng(3)" clickable = false [[block]] block = "cpu" interval = 1 -format = "{frequency}" +format = "$barchart $utilization" [[block]] block = "temperature" collapsed = false -interval = 10 -format = "{min} min, {max} max, {average} avg" +format = "$min min, $max max, $average avg" chip = "*-isa-*" [[block]] block = "load" -interval = 1 -format = "{1m} {5m} {15m}" +format = "$1m.eng(4) $5m.eng(4) $15m.eng(4)" [[block]] block = "time" From 63d1d56ee6ab54d1f5f1c7f7243a4aee134cdb22 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 19 Apr 2023 15:37:58 +0200 Subject: [PATCH 18/70] 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 19/70] 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 20/70] 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 21/70] 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" From 6594a5bd91f2ae480fa806a81ad89a191a2ec25c Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 20 Apr 2023 08:06:06 +0200 Subject: [PATCH 22/70] Optimize status bar --- .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 9dde85f..f28e3a7 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -36,11 +36,11 @@ format = " $icon $ip $graph_down $speed_down $graph_up $speed_up " [[block]] block = "net" device = "tn0" -format = " $icon $ip $speed_down^icon_net_down $speed_up^icon_net_up " +format = " $icon $ip $graph_down $speed_down^icon_net_down $graph_up $speed_up^icon_net_up " [[block]] block = "net" -format = " $icon {$signal_strength $ssid $frequency| x} via $device " +format = " $icon {$signal_strength $ssid $frequency via $device| x} " [[block]] block = "disk_space" From ae4ef3463c3158c85dbf416e7ebc9780ba1dca67 Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 20 Apr 2023 10:51:37 +0200 Subject: [PATCH 23/70] Show battery information in i3status --- .config/i3status-rust/config.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index f28e3a7..d15de8d 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -111,6 +111,10 @@ format = " $icon $min min, $max max, $average avg " block = "load" format = " $icon $1m.eng(w:4) $5m.eng(w:4) $15m.eng(w:4) " +[[block]] +block = "battery" +format = "$percentage $time" + [[block]] block = "time" interval = 1 From cabe73601d71c6c303f5db7529c89f2f81a8a762 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 25 Apr 2023 08:54:39 +0200 Subject: [PATCH 24/70] Optimize workspace bindings per screen --- .config/i3/config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 0c7ffba..d105d4a 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -266,11 +266,12 @@ workspace $ws3 output $screen1 workspace $ws4 output $screen1 workspace $ws5 output $screen1 -workspace $ws6 output $screen2 +workspace $ws6 output $screen0 + workspace $ws7 output $screen2 workspace $ws8 output $screen2 workspace $ws9 output $screen2 -workspace $ws10 output $screen0 +workspace $ws10 output $screen2 # start autolock exec_always xautolock -time 5 -locker "fuzzy-i3lock" From 5da5c35c7105f9612a55ad7b5179f6bcbd97f352 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 19 Apr 2023 16:11:03 +0200 Subject: [PATCH 25/70] 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" From 1d700f24846cd08fc9e5a0bcce75045d2f9353a9 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 2 Jun 2023 13:10:06 +0200 Subject: [PATCH 26/70] i3status-rs: Drop uptime in favor of disk usage Drop uptime block on main monitor in favor of disk usage of `\boot` and as uptime is shown on the right screen anyways. --- .config/i3status-rust/config.toml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index d15de8d..5d5e960 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -11,9 +11,6 @@ separator = "|" separator_fg = "#00cc00" separator_bg = "#222222" -[[block]] -block = "uptime" - [[block]] block = "weather" format = " $icon $weather $temp, $humidity, $wind m/s $direction " @@ -50,6 +47,14 @@ alert = 90.0 info_type = "used" format = " $icon $path $percentage " +[[block]] +block = "disk_space" +path = "/boot" +warning = 75.0 +alert = 85.0 +info_type = "used" +format = " $icon $path $percentage " + [[block]] block = "disk_space" path = "/home" From 2801e7f5bd0f7037154a86b9a9399135ad543075 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 20 Jun 2023 14:44:58 +0200 Subject: [PATCH 27/70] dunst: Create `dunst` config In order to improve visibility of notifications add a custom configuration. --- .config/dunst/dunstrc | 20 ++++++++++++++++++++ .gitignore.d/i3 | 1 + 2 files changed, 21 insertions(+) create mode 100644 .config/dunst/dunstrc diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc new file mode 100644 index 0000000..c072b8c --- /dev/null +++ b/.config/dunst/dunstrc @@ -0,0 +1,20 @@ +[global] + follow = keyboard + scale = 2 + idle_threshold = 3 + font = Monospace 12 + history_length = 100 + corner_radius = 5 + ignore_dbusclose = true + timeout = 0 + background = "#333333" + frame_color = "#009900" + +[urgency_low] + foreground = "#009900" + +[urgency_normal] + foreground = "#ffee33" + +[urgency_critical] + foreground = "#aa3333" diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 index 9cae4fa..41822eb 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/i3 @@ -1,4 +1,5 @@ * +!/.config/dunst/dunstrc !/.config/i3/config !/.config/i3status-rust/config.toml !/.config/i3status-rust/secondary.toml From 32bfca483395750f69fcd40e415184ad691fbf25 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 20 Jun 2023 20:11:33 +0200 Subject: [PATCH 28/70] i3status-rs: Adjust bar to new laptop Adjust `i3status-rust` bar to new laptop. --- .config/i3status-rust/config.toml | 95 ++++++++++++++++--------------- 1 file changed, 48 insertions(+), 47 deletions(-) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index fd1e336..6e92eba 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" @@ -11,90 +11,91 @@ separator = "|" 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]] 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" [[block]] -block = "music" -format = "$combo.rot-str(30) $play" -player = "mpd" +block = "net" +device = "enp2s0f0" +inactive_format = "$icon x " +format = "$icon $ip $graph_down $speed_down $graph_up $speed_up via $device " [[block]] block = "net" -device = "enp0s31f6" -format = "$ip $graph_down $speed_down $graph_up $speed_up" +device = "wlp3s0" +inactive_format = "$icon x " +format = "$icon $ip $speed_down $speed_up $signal_strength $ssid $frequency " -# [[block]] -# block = "disk_space" -# path = "/" -# info_type = "used" -# format = "{path} {percentage}" +[[block]] +block = "disk_space" +path = "/" +warning = 70.0 +alert = 85.0 +info_type = "used" +format = "$icon $path $percentage " -# [[block]] -# block = "disk_space" -# path = "/home" -# info_type = "used" -# format = "{path} {percentage}" +[[block]] +block = "disk_space" +path = "/boot" +warning = 70.0 +alert = 85.0 +info_type = "used" +format = "$icon $path $percentage " -# [[block]] -# block = "disk_space" -# path = "/var" -# info_type = "used" -# warning = 20.0 -# format = "{path} {percentage}" +[[block]] +block = "disk_space" +path = "/home" +warning = 70.0 +alert = 85.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 = "/var" +warning = 70.0 +alert = 85.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:2) " [[block]] block = "memory" -display_type = "swap" -format_swap = "$swap_used_percents.eng(3)" -clickable = false +format = "$icon_swap $swap_used_percents.eng(w:2) " [[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 = "battery" +format = " $icon $percentage $time" [[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" From 36822738e782e917413641e074f1b26216ccd6ba Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 20 Jun 2023 20:16:14 +0200 Subject: [PATCH 29/70] sway: Migrate to `sway` Use `sway` as the new wm so migrate the config. --- .config/i3/config | 253 -------------------------------------- .config/sway/config | 195 +++++++++++++++++++++++++++++ .gitignore.d/{i3 => sway} | 3 +- 3 files changed, 196 insertions(+), 255 deletions(-) delete mode 100644 .config/i3/config create mode 100644 .config/sway/config rename .gitignore.d/{i3 => sway} (76%) diff --git a/.config/i3/config b/.config/i3/config deleted file mode 100644 index b393390..0000000 --- a/.config/i3/config +++ /dev/null @@ -1,253 +0,0 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - -set $mod Mod4 - -font pango:monospace 8 - -# poweroff stuff -set $mode_system System: (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown -mode "$mode_system" { - bindsym l exec --no-startup-id i3exit lock, mode "default" - bindsym e exec --no-startup-id i3exit logout, mode "default" - bindsym s exec --no-startup-id i3exit suspend, mode "default" - bindsym h exec --no-startup-id i3exit hibernate, mode "default" - bindsym r exec --no-startup-id i3exit reboot, mode "default" - bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" - - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym $mod+Pause mode "$mode_system" - -# Use Mouse+$mod to drag floating windows to their wanted position -floating_modifier $mod - -# start a terminal -bindsym $mod+Return exec i3-sensible-terminal - -# start emacs -bindsym $mod+Shift+Return exec i3-sensible-editor - -# take screenshot -bindsym $mod+Print exec scrot ~/tmp/screenshots/'%Y-%m-%d_%H:%M:%S_$wx$h.png' - -# lock screen -bindsym $mod+l exec fuzzy-i3lock - -# kill focused window -bindsym $mod+Shift+q kill - -# start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run - -# toggle i3bar -bindsym $mod+m bar hidden_state toggle - -# change focus -bindsym $mod+b focus left -bindsym $mod+n focus down -bindsym $mod+p focus up -bindsym $mod+f focus right - -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+b move left 25 px -bindsym $mod+Shift+n move down 25 px -bindsym $mod+Shift+p move up 25 px -bindsym $mod+Shift+f move right 25 px - -bindsym $mod+Shift+Left move left 25 px -bindsym $mod+Shift+Down move down 25 px -bindsym $mod+Shift+Up move up 25 px -bindsym $mod+Shift+Right move right 25 px - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+c fullscreen toggle - -# change container layout (stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -bindsym $mod+q focus child - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" - -# switch to workspace -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -bindsym $mod+7 workspace $ws7 -bindsym $mod+8 workspace $ws8 -bindsym $mod+9 workspace $ws9 -bindsym $mod+0 workspace $ws10 - -# move focused container to workspace -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -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 - -# reload the configuration file -bindsym $mod+Shift+c reload - -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart - -# set input keyboard to us english -bindsym $mod+Control+e exec "ibus engine xkb:us::eng" - -# set input keyboard to Chỡ Quố Ngữ (vietnamese) -bindsym $mod+Control+v exec "ibus engine Unikey" - -# exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" - -# media keys -set $refresh_i3status killall -SIGUSR1 i3status-rs -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status -bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status -bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status -bindsym XF86AudioNext exec --no-startup-id mpc next -bindsym XF86AudioPlay exec --no-startup-id mpc toggle -bindsym XF86AudioPrev exec --no-startup-id mpc prev -bindsym XF86AudioStop exec --no-startup-id mpc stop - -# open login screen on another vt (virtual terminal) -bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" - -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - bindsym Right resize shrink width 10 px or 10 ppt - bindsym Up resize grow height 10 px or 10 ppt - bindsym Down resize shrink height 10 px or 10 ppt - bindsym Left resize grow width 10 px or 10 ppt - - bindsym $mod+f resize grow width 10 px or 10 ppt - bindsym $mod+n resize shrink height 10 px or 10 ppt - bindsym $mod+p resize grow height 10 px or 10 ppt - bindsym $mod+b resize shrink width 10 px or 10 ppt - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+r mode "default" -} - -bindsym $mod+r mode "resize" - -# constraining floating window size -# floating_minimum_size 75 x 50 -floating_maximum_size -1 x -1 - -# colors & style -new_window normal 1 -new_float normal 1 -client.focused #000000 #009900 #ffffff #ff0000 -client.unfocused #000000 #005500 #000000 #ff0000 - -# use variables for screens -set $screen0 "DP-1" -set $screen1 "HDMI-2" - -# Start i3bar to display a workspace bar (plus the system information -# i3status-rust finds out, if available) -bar { - status_command i3status-rs - font pango:DejaVu Sans Mono, forkawesome 8 - position top - tray_output primary - workspace_buttons yes - mode dock - modifier $mod - output $screen0 - - colors { - statusline #00ff00 - focused_workspace #00cc00 #00ff00 #000000 - inactive_workspace #00cc00 #008b00 #cccccc - #client.orientation #ff0000 - } -} -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 $screen1 - - colors { - statusline #00ff00 - focused_workspace #00cc00 #00ff00 #000000 - inactive_workspace #00cc00 #008b00 #cccccc - #client.orientation #ff0000 - } -} - -workspace $ws1 output $screen0 -workspace $ws2 output $screen0 -workspace $ws3 output $screen0 -workspace $ws4 output $screen0 -workspace $ws5 output $screen0 - -workspace $ws10 output $screen1 -workspace $ws9 output $screen1 -workspace $ws8 output $screen1 -workspace $ws7 output $screen1 -workspace $ws6 output $screen1 diff --git a/.config/sway/config b/.config/sway/config new file mode 100644 index 0000000..c2b4e1e --- /dev/null +++ b/.config/sway/config @@ -0,0 +1,195 @@ +# Basic keys +set $mod Mod4 +set $left b +set $down n +set $up p +set $right f + +# Program variables +set $term alacritty +set $editor em +set $menu bemenu-run -i -p "" --hf "#009900" --hb "#333333" +set $lock fuzzy-swaylock +set $screenshot grim + +# use mouse + $mod to drag floating windows to their wanted position +floating_modifier $mod normal + +# start a terminal +bindsym $mod+Return exec $term + +# start emacs +bindsym $mod+Shift+Return exec $editor + +# take screenshot +bindsym $mod+Print exec $screenshot + +# lock screen +bindsym $mod+l exec $lock + +# kill focused window +bindsym $mod+Shift+q kill + +# start bemenu (program launcher) +bindsym $mod+d exec $menu + +# reload config +bindsym $mod+Shift+r reload + +# split in horizontal orientation +bindsym $mod+h splith + +# split in vertical orientation +bindsym $mod+v splitv + +# toggle fullscreen mode +bindsym $mod+c fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +bindsym $mod+q focus child + +# media keys +set $refresh_i3status killall -SIGUSR1 i3status-rs +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status +bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status +bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status +bindsym XF86AudioNext exec --no-startup-id mpc next +bindsym XF86AudioPlay exec --no-startup-id mpc toggle +bindsym XF86AudioPrev exec --no-startup-id mpc prev +bindsym XF86AudioStop exec --no-startup-id mpc stop + +# exit sway +bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' + +# +# Moving around: +# +# Move your focus around +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right + +# Or use $mod+[up|down|left|right] +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# Move the focused window with the same, but add Shift +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right + +# Ditto, with arrow keys +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# +# Workspace setup +# +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# Switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $w8 +bindsym $mod+9 workspace number $w9 +bindsym $mod+0 workspace number $ws10 + +# Move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# +# Resizing containers: +# +mode "resize" { + bindsym Right resize shrink width 10 px or 10 ppt + bindsym Up resize grow height 10 px or 10 ppt + bindsym Down resize shrink height 10 px or 10 ppt + bindsym Left resize grow width 10 px or 10 ppt + + bindsym $mod+$right resize grow width 10 px or 10 ppt + bindsym $mod+$down resize shrink height 10 px or 10 ppt + bindsym $mod+$up resize grow height 10 px or 10 ppt + bindsym $mod+$left resize shrink width 10 px or 10 ppt + + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +# resize container +bindsym $mod+r mode "resize" + +# constraining floating window size +floating_maximum_size -1 x -1 + +# border style +default_border normal 1 + +# floating border style +default_floating_border normal 1 + +# colors +client.focused #000000 #009900 #ffffff #ff0000 +client.unfocused #000000 #005500 #000000 #ff0000 + +# titlebar style +titlebar_padding 5 1 + +# i3status-rust +bar { + status_command i3status-rs + font pango:DejaVu Sans Mono, forkawesome 8 + position top + + colors { + statusline #00ff00 + focused_workspace #00cc00 #00ff00 #000000 + inactive_workspace #00cc00 #008b00 #cccccc + } +} + +include /$HOME/.config/sway/config.d/* +include /etc/sway/config.d/* diff --git a/.gitignore.d/i3 b/.gitignore.d/sway similarity index 76% rename from .gitignore.d/i3 rename to .gitignore.d/sway index 9cae4fa..2e0b392 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/sway @@ -1,7 +1,6 @@ * -!/.config/i3/config !/.config/i3status-rust/config.toml !/.config/i3status-rust/secondary.toml -!/.gitignore.d/i3 +!/.config/sway/config !/.local/bin/fuzzy-i3lock !/.local/bin/i3-run From 878ed3a0d2115c078b4b2b1de13c25eedad1aa8f Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 23 Jun 2023 11:12:07 +0200 Subject: [PATCH 30/70] dunst: Add keybindings for dunst In order to control dunst from the keyboard create some keybindings. --- .config/i3/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index d105d4a..f30977d 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -165,6 +165,11 @@ bindsym XF86AudioPlay exec --no-startup-id mpc toggle bindsym XF86AudioPrev exec --no-startup-id mpc prev bindsym XF86AudioStop exec --no-startup-id mpc stop +# dunst control +bindsym $mod+period exec dunstctl close +bindsym $mod+Shift+period exec dunstctl close-all +bindsym $mod+grave exec dunstctl history-pop + # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From 309a329b7b5f4da5aacbc2ed90164943619475ca Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 20 Jun 2023 14:44:58 +0200 Subject: [PATCH 31/70] dunst: Create `dunst` config In order to improve visibility of notifications add a custom configuration. --- .config/dunst/dunstrc | 20 ++++++++++++++++++++ .gitignore.d/i3 | 1 + 2 files changed, 21 insertions(+) create mode 100644 .config/dunst/dunstrc diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc new file mode 100644 index 0000000..c072b8c --- /dev/null +++ b/.config/dunst/dunstrc @@ -0,0 +1,20 @@ +[global] + follow = keyboard + scale = 2 + idle_threshold = 3 + font = Monospace 12 + history_length = 100 + corner_radius = 5 + ignore_dbusclose = true + timeout = 0 + background = "#333333" + frame_color = "#009900" + +[urgency_low] + foreground = "#009900" + +[urgency_normal] + foreground = "#ffee33" + +[urgency_critical] + foreground = "#aa3333" diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 index 9cae4fa..41822eb 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/i3 @@ -1,4 +1,5 @@ * +!/.config/dunst/dunstrc !/.config/i3/config !/.config/i3status-rust/config.toml !/.config/i3status-rust/secondary.toml From a643341995979e65291a01965e59ac58e3702f3b Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 23 Jun 2023 11:12:07 +0200 Subject: [PATCH 32/70] dunst: Add keybindings for dunst In order to control dunst from the keyboard create some keybindings. --- .config/i3/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index b393390..ffbc375 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -165,6 +165,11 @@ bindsym XF86AudioPlay exec --no-startup-id mpc toggle bindsym XF86AudioPrev exec --no-startup-id mpc prev bindsym XF86AudioStop exec --no-startup-id mpc stop +# dunst control +bindsym $mod+period exec dunstctl close +bindsym $mod+Shift+period exec dunstctl close-all +bindsym $mod+grave exec dunstctl history-pop + # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From ff4d1cafc8d5b5676aeb65d3aff58c0cc5864ca3 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 23 Jun 2023 14:49:31 +0200 Subject: [PATCH 33/70] dunst: Adapt config for desktop Use different settings for desktop at home. --- .config/dunst/dunstrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index c072b8c..262b011 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -1,12 +1,12 @@ [global] follow = keyboard - scale = 2 + scale = 1 idle_threshold = 3 - font = Monospace 12 + font = Monospace 10 history_length = 100 corner_radius = 5 ignore_dbusclose = true - timeout = 0 + timeout = 30 background = "#333333" frame_color = "#009900" From 7adb7a638b90803880305cb6b5ec86da6f3a02a5 Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 26 Jun 2023 16:50:08 +0200 Subject: [PATCH 34/70] 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 35/70] 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 36/70] 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) " From 7ccc66aabd808d8410824e047f77022d93175e26 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 25 Aug 2023 11:06:22 +0200 Subject: [PATCH 37/70] i3-config: Change lock shortcut In order for the super-l key combination to be available in other programs change it to super-shift-l. --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index d2d60b3..4d88917 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -41,7 +41,7 @@ bindsym $mod+Shift+Return exec i3-sensible-editor bindsym $mod+Print exec scrot ~/tmp/screenshots/'%Y-%m-%d_%H:%M:%S_$wx$h.png' # lock screen -bindsym $mod+l exec fuzzy-i3lock +bindsym $mod+Shift+l exec fuzzy-i3lock # kill focused window bindsym $mod+Shift+q kill From c3bf62e3ed73ae1d318e87f3a529794d01b15e1f Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 14 Sep 2023 14:57:51 +0200 Subject: [PATCH 38/70] dunst: Change keybinding to pop msg from history Use $mod+comma instead of $mod+grave to pop messages from the history. --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index 4d88917..be6afd9 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -174,7 +174,7 @@ bindsym XF86AudioStop exec --no-startup-id mpc stop # dunst control bindsym $mod+period exec dunstctl close bindsym $mod+Shift+period exec dunstctl close-all -bindsym $mod+grave exec dunstctl history-pop +bindsym $mod+comma exec dunstctl history-pop # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From 13d7c606c244875cf3feee6033c25a6eb1ce796f Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 20 Jun 2023 14:44:58 +0200 Subject: [PATCH 39/70] dunst: Create `dunst` config In order to improve visibility of notifications add a custom configuration. --- .config/dunst/dunstrc | 20 ++++++++++++++++++++ .gitignore.d/sway | 1 + 2 files changed, 21 insertions(+) create mode 100644 .config/dunst/dunstrc diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc new file mode 100644 index 0000000..c072b8c --- /dev/null +++ b/.config/dunst/dunstrc @@ -0,0 +1,20 @@ +[global] + follow = keyboard + scale = 2 + idle_threshold = 3 + font = Monospace 12 + history_length = 100 + corner_radius = 5 + ignore_dbusclose = true + timeout = 0 + background = "#333333" + frame_color = "#009900" + +[urgency_low] + foreground = "#009900" + +[urgency_normal] + foreground = "#ffee33" + +[urgency_critical] + foreground = "#aa3333" diff --git a/.gitignore.d/sway b/.gitignore.d/sway index 2e0b392..79e853f 100644 --- a/.gitignore.d/sway +++ b/.gitignore.d/sway @@ -1,4 +1,5 @@ * +!/.config/dunst/dunstrc !/.config/i3status-rust/config.toml !/.config/i3status-rust/secondary.toml !/.config/sway/config From 28a0adf76ca0b3e58a1750729c42d2eee612a0d3 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 23 Jun 2023 11:12:07 +0200 Subject: [PATCH 40/70] dunst: Add keybindings for dunst In order to control dunst from the keyboard create some keybindings. --- .config/sway/config.d/dunst | 4 ++++ .gitignore.d/sway | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 .config/sway/config.d/dunst diff --git a/.config/sway/config.d/dunst b/.config/sway/config.d/dunst new file mode 100644 index 0000000..2803d49 --- /dev/null +++ b/.config/sway/config.d/dunst @@ -0,0 +1,4 @@ +# dunst control +bindsym $mod+period exec dunstctl close +bindsym $mod+Shift+period exec dunstctl close-all +bindsym $mod+comma exec dunstctl history-pop diff --git a/.gitignore.d/sway b/.gitignore.d/sway index 79e853f..4ad37a5 100644 --- a/.gitignore.d/sway +++ b/.gitignore.d/sway @@ -3,5 +3,7 @@ !/.config/i3status-rust/config.toml !/.config/i3status-rust/secondary.toml !/.config/sway/config +!/.config/sway/config.d/dunst +!/.gitignore.d/sway !/.local/bin/fuzzy-i3lock !/.local/bin/i3-run From 60760861c2f5d2d076d8faa5053e78272dff7f7d Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 29 Sep 2023 18:31:00 +0200 Subject: [PATCH 41/70] config: Fix workspaces As the workspace keybindings were broken, fix them. --- .config/sway/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index c2b4e1e..619abae 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -124,8 +124,8 @@ bindsym $mod+4 workspace number $ws4 bindsym $mod+5 workspace number $ws5 bindsym $mod+6 workspace number $ws6 bindsym $mod+7 workspace number $ws7 -bindsym $mod+8 workspace number $w8 -bindsym $mod+9 workspace number $w9 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 # Move focused container to workspace From c4a7b9bc40a3804d5e2eefed2c6ff641a9d6de1e Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 30 Nov 2023 16:09:32 +0100 Subject: [PATCH 42/70] i3lock: Make fuzzy-i3lock a bit like 37c3 --- .config/i3/config | 2 +- .local/bin/fuzzy-i3lock | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index be6afd9..fd40ab6 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -41,7 +41,7 @@ bindsym $mod+Shift+Return exec i3-sensible-editor bindsym $mod+Print exec scrot ~/tmp/screenshots/'%Y-%m-%d_%H:%M:%S_$wx$h.png' # lock screen -bindsym $mod+Shift+l exec fuzzy-i3lock +bindsym $mod+Shift+l exec fuzzy-i3lock 37c3 # kill focused window bindsym $mod+Shift+q kill diff --git a/.local/bin/fuzzy-i3lock b/.local/bin/fuzzy-i3lock index ef62c6b..f018b60 100755 --- a/.local/bin/fuzzy-i3lock +++ b/.local/bin/fuzzy-i3lock @@ -9,5 +9,12 @@ screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" scrot -o "$screenshot" -mogrify -scale 10% -scale 1000% "$screenshot" + +case $1 in + "37c3") mogrify -scale 10% -scale 1000% -blur 0x1 -dither FloydSteinberg -colors 32 "$screenshot" + ;; + *) mogrify -scale 10% -scale 1000% "$screenshot" + ;; +esac + exec i3lock -i "$screenshot" From ddbc36926df9dfeb61c44cc2d12b8c527fc78e64 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 3 Jan 2024 10:42:17 +0100 Subject: [PATCH 43/70] screens: Add screen 0 --- .config/i3/config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index fd40ab6..9978c28 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -102,6 +102,7 @@ bindsym $mod+q focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. +set $ws0 "0" set $ws1 "1" set $ws2 "2" set $ws3 "3" @@ -116,6 +117,7 @@ set $ws11 "11" set $ws12 "12" # switch to workspace +bindsym $mod+grave workspace $ws0 bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 @@ -130,6 +132,7 @@ bindsym $mod+minus workspace $ws11 bindsym $mod+equal workspace $ws12 # move focused container to workspace +bindsym $mod+Shift+grave move container to workspace $ws0 bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3 @@ -271,13 +274,14 @@ bar { } } +workspace $ws0 output $screen1 workspace $ws1 output $screen1 workspace $ws2 output $screen1 workspace $ws3 output $screen1 workspace $ws4 output $screen1 workspace $ws5 output $screen1 -workspace $ws6 output $screen1 +workspace $ws6 output $screen2 workspace $ws7 output $screen2 workspace $ws8 output $screen2 workspace $ws9 output $screen2 From 65f328d09f72b635f659d8dd04ece8cb60760418 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 3 Jan 2024 10:42:55 +0100 Subject: [PATCH 44/70] dunst: Improve dunst keybindings --- .config/i3/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 9978c28..6e26a89 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -175,9 +175,9 @@ bindsym XF86AudioPrev exec --no-startup-id mpc prev bindsym XF86AudioStop exec --no-startup-id mpc stop # dunst control -bindsym $mod+period exec dunstctl close -bindsym $mod+Shift+period exec dunstctl close-all -bindsym $mod+comma exec dunstctl history-pop +bindsym $mod+comma exec dunstctl close +bindsym $mod+Shift+comma exec dunstctl close-all +bindsym $mod+period exec dunstctl history-pop # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From a4e7c0d67f608256dc1aefa6fb8639cce2c02c58 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 3 Jan 2024 10:43:20 +0100 Subject: [PATCH 45/70] fuzzy-i3lock: Use and improve 37c3 fuzzy-i3lock --- .config/i3/config | 2 +- .local/bin/fuzzy-i3lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 6e26a89..a4b23b6 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -291,4 +291,4 @@ workspace $ws11 output $screen0 workspace $ws12 output $screen0 # start autolock -exec_always xautolock -time 5 -locker "fuzzy-i3lock" +exec_always xautolock -time 5 -locker "fuzzy-i3lock 37c3" diff --git a/.local/bin/fuzzy-i3lock b/.local/bin/fuzzy-i3lock index f018b60..7890925 100755 --- a/.local/bin/fuzzy-i3lock +++ b/.local/bin/fuzzy-i3lock @@ -11,7 +11,7 @@ screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" scrot -o "$screenshot" case $1 in - "37c3") mogrify -scale 10% -scale 1000% -blur 0x1 -dither FloydSteinberg -colors 32 "$screenshot" + "37c3") mogrify -scale 10% -scale 500% -dither FloydSteinberg -colors 32 -scale 200% "$screenshot" ;; *) mogrify -scale 10% -scale 1000% "$screenshot" ;; From 6bd4251fdb7f822f2a770eb60d2103b0bd224427 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 5 Apr 2024 12:46:20 +0200 Subject: [PATCH 46/70] i3status-rs: Change font Change font to NotoSansMono-Regular. --- .config/i3/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index a4b23b6..a321e9b 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -222,7 +222,7 @@ set $screen2 "DP-1-1" # i3status-rust finds out, if available) bar { status_command i3status-rs - font pango:DejaVu Sans Mono, forkawesome 8 + font pango:NotoSansMono-Regular, forkawesome 9 position top tray_output primary workspace_buttons yes @@ -240,7 +240,7 @@ bar { bar { status_command i3status-rs - font pango:DejaVu Sans Mono, forkawesome 8 + font pango:NotoSansMono-Regular, forkawesome 8 position top tray_output primary workspace_buttons yes @@ -258,7 +258,7 @@ bar { bar { status_command i3status-rs ~/.config/i3status-rust/secondary.toml - font pango:DejaVu Sans Mono, forkawesome 8 + font pango:NotoSansMono-Regular, forkawesome 8 position top tray_output primary workspace_buttons yes From a9e68166452be25802bb7efb54f43db2a4e1598a Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 25 Aug 2023 11:06:22 +0200 Subject: [PATCH 47/70] i3-config: Change lock shortcut In order for the super-l key combination to be available in other programs change it to super-shift-l. --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index ffbc375..b79f70c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -41,7 +41,7 @@ bindsym $mod+Shift+Return exec i3-sensible-editor bindsym $mod+Print exec scrot ~/tmp/screenshots/'%Y-%m-%d_%H:%M:%S_$wx$h.png' # lock screen -bindsym $mod+l exec fuzzy-i3lock +bindsym $mod+Shift+l exec fuzzy-i3lock # kill focused window bindsym $mod+Shift+q kill From 89dd4f17959ddd8ea930595cee7ba042beb1b6d9 Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 14 Sep 2023 14:57:51 +0200 Subject: [PATCH 48/70] dunst: Change keybinding to pop msg from history Use $mod+comma instead of $mod+grave to pop messages from the history. --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index b79f70c..392f125 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -168,7 +168,7 @@ bindsym XF86AudioStop exec --no-startup-id mpc stop # dunst control bindsym $mod+period exec dunstctl close bindsym $mod+Shift+period exec dunstctl close-all -bindsym $mod+grave exec dunstctl history-pop +bindsym $mod+comma exec dunstctl history-pop # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From 6889b359b59c6e87c81f829f8fa809ad7f4f2107 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 3 Jan 2024 10:42:55 +0100 Subject: [PATCH 49/70] dunst: Improve dunst keybindings --- .config/i3/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 392f125..f9bcd41 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -166,9 +166,9 @@ bindsym XF86AudioPrev exec --no-startup-id mpc prev bindsym XF86AudioStop exec --no-startup-id mpc stop # dunst control -bindsym $mod+period exec dunstctl close -bindsym $mod+Shift+period exec dunstctl close-all -bindsym $mod+comma exec dunstctl history-pop +bindsym $mod+comma exec dunstctl close +bindsym $mod+Shift+comma exec dunstctl close-all +bindsym $mod+period exec dunstctl history-pop # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From e09cf215019cf960124e636482e245f341f37442 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 5 Apr 2024 12:46:20 +0200 Subject: [PATCH 50/70] i3status-rs: Change font Change font to NotoSansMono-Regular. --- .config/i3/config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index f9bcd41..6694785 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -212,7 +212,7 @@ set $screen1 "HDMI-2" # i3status-rust finds out, if available) bar { status_command i3status-rs - font pango:DejaVu Sans Mono, forkawesome 8 + font pango:NotoSansMono-Regular, forkawesome 8 position top tray_output primary workspace_buttons yes @@ -227,9 +227,10 @@ bar { #client.orientation #ff0000 } } + bar { status_command i3status-rs ~/.config/i3status-rust/secondary.toml - font pango:DejaVu Sans Mono, forkawesome 8 + font pango:NotoSansMono-Regular, forkawesome 8 position top tray_output primary workspace_buttons yes From e7b0476c368031117a4978929d7e106654039724 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 27 Apr 2024 14:52:00 +0200 Subject: [PATCH 51/70] media: Extract media key bindings Extract media key bindings into own file. --- .config/sway/config | 13 ------------- .config/sway/config.d/media | 12 ++++++++++++ .gitignore.d/sway | 1 + 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 .config/sway/config.d/media diff --git a/.config/sway/config b/.config/sway/config index 619abae..628288a 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -59,19 +59,6 @@ bindsym $mod+a focus parent # focus the child container bindsym $mod+q focus child -# media keys -set $refresh_i3status killall -SIGUSR1 i3status-rs -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status -bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status -bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status -bindsym XF86AudioNext exec --no-startup-id mpc next -bindsym XF86AudioPlay exec --no-startup-id mpc toggle -bindsym XF86AudioPrev exec --no-startup-id mpc prev -bindsym XF86AudioStop exec --no-startup-id mpc stop - # exit sway bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' diff --git a/.config/sway/config.d/media b/.config/sway/config.d/media new file mode 100644 index 0000000..02cd8f0 --- /dev/null +++ b/.config/sway/config.d/media @@ -0,0 +1,12 @@ +# media keys +set $refresh_i3status killall -SIGUSR1 i3status-rs +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status +bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status +bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status +bindsym XF86AudioNext exec --no-startup-id mpc next +bindsym XF86AudioPlay exec --no-startup-id mpc toggle +bindsym XF86AudioPrev exec --no-startup-id mpc prev +bindsym XF86AudioStop exec --no-startup-id mpc stop diff --git a/.gitignore.d/sway b/.gitignore.d/sway index 4ad37a5..b0ec692 100644 --- a/.gitignore.d/sway +++ b/.gitignore.d/sway @@ -4,6 +4,7 @@ !/.config/i3status-rust/secondary.toml !/.config/sway/config !/.config/sway/config.d/dunst +!/.config/sway/config.d/media !/.gitignore.d/sway !/.local/bin/fuzzy-i3lock !/.local/bin/i3-run From 1e5bcc0e47e3e78e21960053611b7e6399210bba Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 27 Apr 2024 14:53:13 +0200 Subject: [PATCH 52/70] gitignore: Update gitignore Recently vcsh also added the intermediate directories to the gitignore file. --- .gitignore.d/sway | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitignore.d/sway b/.gitignore.d/sway index b0ec692..c6b9e9b 100644 --- a/.gitignore.d/sway +++ b/.gitignore.d/sway @@ -1,10 +1,18 @@ * +!/.config +!/.config/dunst !/.config/dunst/dunstrc +!/.config/i3status-rust !/.config/i3status-rust/config.toml !/.config/i3status-rust/secondary.toml +!/.config/sway !/.config/sway/config +!/.config/sway/config.d !/.config/sway/config.d/dunst !/.config/sway/config.d/media +!/.gitignore.d !/.gitignore.d/sway +!/.local +!/.local/bin !/.local/bin/fuzzy-i3lock !/.local/bin/i3-run From 4962c99ca6525050c7d1115b1f2a33d0b12549c7 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 27 Apr 2024 14:58:39 +0200 Subject: [PATCH 53/70] dunst: Improve dunst keybindings --- .config/sway/config.d/dunst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/sway/config.d/dunst b/.config/sway/config.d/dunst index 2803d49..f95ae4d 100644 --- a/.config/sway/config.d/dunst +++ b/.config/sway/config.d/dunst @@ -1,4 +1,4 @@ # dunst control -bindsym $mod+period exec dunstctl close -bindsym $mod+Shift+period exec dunstctl close-all -bindsym $mod+comma exec dunstctl history-pop +bindsym $mod+comma exec dunstctl close +bindsym $mod+Shift+comma exec dunstctl close-all +bindsym $mod+period exec dunstctl history-pop From bbb97eabe3c3551fb9628d55dc68b09e9cff4e9c Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 27 Apr 2024 15:00:13 +0200 Subject: [PATCH 54/70] dunst: Adapt to x13 --- .config/dunst/dunstrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index c072b8c..f5d371f 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -1,8 +1,8 @@ [global] follow = keyboard - scale = 2 + scale = 1 idle_threshold = 3 - font = Monospace 12 + font = Monospace 10 history_length = 100 corner_radius = 5 ignore_dbusclose = true From 4d9617942064912f7fef60dc033bbf56098fca1b Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 27 Apr 2024 15:01:21 +0200 Subject: [PATCH 55/70] i3status-rs: Improve status of wifi Shorten the length of the frequency. --- .config/i3status-rust/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index 6e92eba..3bd7671 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -29,7 +29,7 @@ format = "$icon $ip $graph_down $speed_down $graph_up $speed_up via $device " block = "net" device = "wlp3s0" inactive_format = "$icon x " -format = "$icon $ip $speed_down $speed_up $signal_strength $ssid $frequency " +format = "$icon $ip $speed_down $speed_up $signal_strength $ssid $frequency.eng(w:3) " [[block]] block = "disk_space" From 826ebc678e7d2acf823b351f415f600e16169e5a Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 27 Apr 2024 15:02:39 +0200 Subject: [PATCH 56/70] i3status-rs: Change thresholds for disk space --- .config/i3status-rust/config.toml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index 3bd7671..d115b80 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -34,32 +34,32 @@ format = "$icon $ip $speed_down $speed_up $signal_strength $ssid $frequency.eng( [[block]] block = "disk_space" path = "/" -warning = 70.0 -alert = 85.0 +warning = 80.0 +alert = 90.0 info_type = "used" format = "$icon $path $percentage " [[block]] block = "disk_space" path = "/boot" -warning = 70.0 -alert = 85.0 +warning = 80.0 +alert = 90.0 info_type = "used" format = "$icon $path $percentage " [[block]] block = "disk_space" path = "/home" -warning = 70.0 -alert = 85.0 +warning = 80.0 +alert = 90.0 info_type = "used" format = "$icon $path $percentage " [[block]] block = "disk_space" path = "/var" -warning = 70.0 -alert = 85.0 +warning = 80.0 +alert = 90.0 info_type = "used" format = "$icon $path $percentage " From 23925c9f34aa3bc486d537e81bc28fc6b3e752a4 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 27 Apr 2024 15:07:05 +0200 Subject: [PATCH 57/70] screenlock: Extract screenlock config Extract screenlock config into its own file. --- .config/sway/config | 4 ---- .config/sway/config.d/screenlock | 3 +++ .gitignore.d/sway | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .config/sway/config.d/screenlock diff --git a/.config/sway/config b/.config/sway/config index 628288a..10e6c6d 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -9,7 +9,6 @@ set $right f set $term alacritty set $editor em set $menu bemenu-run -i -p "" --hf "#009900" --hb "#333333" -set $lock fuzzy-swaylock set $screenshot grim # use mouse + $mod to drag floating windows to their wanted position @@ -24,9 +23,6 @@ bindsym $mod+Shift+Return exec $editor # take screenshot bindsym $mod+Print exec $screenshot -# lock screen -bindsym $mod+l exec $lock - # kill focused window bindsym $mod+Shift+q kill diff --git a/.config/sway/config.d/screenlock b/.config/sway/config.d/screenlock new file mode 100644 index 0000000..019985c --- /dev/null +++ b/.config/sway/config.d/screenlock @@ -0,0 +1,3 @@ +# screenlock +set $lock fuzzy-swaylock 37c3 +bindsym $mod+Shift+l exec $lock diff --git a/.gitignore.d/sway b/.gitignore.d/sway index c6b9e9b..e4ec63a 100644 --- a/.gitignore.d/sway +++ b/.gitignore.d/sway @@ -10,6 +10,7 @@ !/.config/sway/config.d !/.config/sway/config.d/dunst !/.config/sway/config.d/media +!/.config/sway/config.d/screenlock !/.gitignore.d !/.gitignore.d/sway !/.local From 0959d121902a58534aab7f6772ac5a41c5d5771d Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 26 Jun 2024 15:35:28 +0200 Subject: [PATCH 58/70] i3status: Change thresholds for home and backup Use tighter thresholds for home and backup partitions. --- .config/i3status-rust/config.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml index d844f24..c935bf5 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -58,8 +58,8 @@ format = " $icon $path $percentage " [[block]] block = "disk_space" path = "/home" -warning = 75.0 -alert = 80.0 +warning = 80.0 +alert = 87.0 info_type = "used" format = " $icon $path $percentage " @@ -98,7 +98,7 @@ format = " $icon libvirt $percentage " [[block]] block = "disk_space" path = "/share/backup" -warning = 80.0 +warning = 85.0 alert = 90.0 info_type = "used" format = " $icon backup $percentage " From eb5ee66f1ea4d613634f14fca7ecf564a5fe313d Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 16 Sep 2024 09:06:19 +0200 Subject: [PATCH 59/70] fuzzy-i3lock, fuzzy-swaylock: Fox fuzzy lock script Add the overlooked fuzzy-swaylock which replaces fuzzy-i3lock. --- .gitignore.d/sway | 2 +- .local/bin/fuzzy-i3lock | 13 ------------- .local/bin/fuzzy-swaylock | 20 ++++++++++++++++++++ 3 files changed, 21 insertions(+), 14 deletions(-) delete mode 100755 .local/bin/fuzzy-i3lock create mode 100755 .local/bin/fuzzy-swaylock diff --git a/.gitignore.d/sway b/.gitignore.d/sway index e4ec63a..e0c3f31 100644 --- a/.gitignore.d/sway +++ b/.gitignore.d/sway @@ -15,5 +15,5 @@ !/.gitignore.d/sway !/.local !/.local/bin -!/.local/bin/fuzzy-i3lock +!/.local/bin/fuzzy-swaylock !/.local/bin/i3-run diff --git a/.local/bin/fuzzy-i3lock b/.local/bin/fuzzy-i3lock deleted file mode 100755 index ef62c6b..0000000 --- a/.local/bin/fuzzy-i3lock +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -e -# -# Show a pixelated screenshot as background image of i3lock -# -# See -# Copied from -# - -screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" - -scrot -o "$screenshot" -mogrify -scale 10% -scale 1000% "$screenshot" -exec i3lock -i "$screenshot" diff --git a/.local/bin/fuzzy-swaylock b/.local/bin/fuzzy-swaylock new file mode 100755 index 0000000..358230d --- /dev/null +++ b/.local/bin/fuzzy-swaylock @@ -0,0 +1,20 @@ +#!/bin/sh -e +# +# Show a pixelated screenshot as background image of i3lock +# +# See +# Copied from +# + +screenshot="${TMPDIR:-/tmp}/fuzzy-swaylock.png" + +grim "$screenshot" + +case $1 in + "37c3") mogrify -scale 10% -scale 500% -dither FloydSteinberg -colors 32 -scale 200% "$screenshot" + ;; + *) mogrify -scale 10% -scale 1000% "$screenshot" + ;; +esac + +exec swaylock -i "$screenshot" From 228a2d7f84c78c4ab09304b71c7d038bf6b6ffbd Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 19 Sep 2024 00:19:29 +0200 Subject: [PATCH 60/70] workspaces: Extract workspace config Extract the configuration for workspaces so it is contained in a specific file. --- .config/sway/config | 38 -------------------------------- .config/sway/config.d/workspaces | 37 +++++++++++++++++++++++++++++++ .gitignore.d/sway | 1 + 3 files changed, 38 insertions(+), 38 deletions(-) create mode 100644 .config/sway/config.d/workspaces diff --git a/.config/sway/config b/.config/sway/config index 10e6c6d..6e9ef16 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -85,44 +85,6 @@ bindsym $mod+Shift+Down move down bindsym $mod+Shift+Up move up bindsym $mod+Shift+Right move right -# -# Workspace setup -# -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" - -# Switch to workspace -bindsym $mod+1 workspace number $ws1 -bindsym $mod+2 workspace number $ws2 -bindsym $mod+3 workspace number $ws3 -bindsym $mod+4 workspace number $ws4 -bindsym $mod+5 workspace number $ws5 -bindsym $mod+6 workspace number $ws6 -bindsym $mod+7 workspace number $ws7 -bindsym $mod+8 workspace number $ws8 -bindsym $mod+9 workspace number $ws9 -bindsym $mod+0 workspace number $ws10 - -# Move focused container to workspace -bindsym $mod+Shift+1 move container to workspace number $ws1 -bindsym $mod+Shift+2 move container to workspace number $ws2 -bindsym $mod+Shift+3 move container to workspace number $ws3 -bindsym $mod+Shift+4 move container to workspace number $ws4 -bindsym $mod+Shift+5 move container to workspace number $ws5 -bindsym $mod+Shift+6 move container to workspace number $ws6 -bindsym $mod+Shift+7 move container to workspace number $ws7 -bindsym $mod+Shift+8 move container to workspace number $ws8 -bindsym $mod+Shift+9 move container to workspace number $ws9 -bindsym $mod+Shift+0 move container to workspace number $ws10 - # # Resizing containers: # diff --git a/.config/sway/config.d/workspaces b/.config/sway/config.d/workspaces new file mode 100644 index 0000000..f631673 --- /dev/null +++ b/.config/sway/config.d/workspaces @@ -0,0 +1,37 @@ +# +# Workspace setup +# +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# Switch to workspace +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +# Move focused container to workspace +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 diff --git a/.gitignore.d/sway b/.gitignore.d/sway index e0c3f31..af41fb2 100644 --- a/.gitignore.d/sway +++ b/.gitignore.d/sway @@ -11,6 +11,7 @@ !/.config/sway/config.d/dunst !/.config/sway/config.d/media !/.config/sway/config.d/screenlock +!/.config/sway/config.d/workspaces !/.gitignore.d !/.gitignore.d/sway !/.local From e857d100d8575bbeb64fa9126965d9b74c6e9e6b Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 19 Sep 2024 00:21:45 +0200 Subject: [PATCH 61/70] workspaces: Add 0th, 11th and 12th workspaces --- .config/sway/config.d/workspaces | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/sway/config.d/workspaces b/.config/sway/config.d/workspaces index f631673..4560d67 100644 --- a/.config/sway/config.d/workspaces +++ b/.config/sway/config.d/workspaces @@ -1,6 +1,7 @@ # # Workspace setup # +set $ws0 "0" set $ws1 "1" set $ws2 "2" set $ws3 "3" @@ -11,8 +12,11 @@ set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" +set $ws11 "11" +set $ws12 "12" # Switch to workspace +bindsym $mod+grave workspace number $ws0 bindsym $mod+1 workspace number $ws1 bindsym $mod+2 workspace number $ws2 bindsym $mod+3 workspace number $ws3 @@ -23,8 +27,11 @@ bindsym $mod+7 workspace number $ws7 bindsym $mod+8 workspace number $ws8 bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 +bindsym $mod+minus workspace number $ws11 +bindsym $mod+equal workspace number $ws12 # Move focused container to workspace +bindsym $mod+Shift+grave move container to workspace number $ws0 bindsym $mod+Shift+1 move container to workspace number $ws1 bindsym $mod+Shift+2 move container to workspace number $ws2 bindsym $mod+Shift+3 move container to workspace number $ws3 @@ -35,3 +42,5 @@ bindsym $mod+Shift+7 move container to workspace number $ws7 bindsym $mod+Shift+8 move container to workspace number $ws8 bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 +bindsym $mod+Shift+underscore move container to workspace number $ws11 +bindsym $mod+Shift+plus move container to workspace number $ws12 From 713b4592703efa23a3c906ba07e9b0b7ddd0a5df Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 24 Oct 2024 11:41:21 +0200 Subject: [PATCH 62/70] config: Remove beginning comments --- .config/i3/config | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index a321e9b..edd7447 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,14 +1,3 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - set $mod Mod4 font pango:monospace 8 From 28a3cea50efbaaff9143e25935d2f2755dd38fcd Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 27 Oct 2024 09:54:27 +0100 Subject: [PATCH 63/70] screens: Add screens 0, 11 and 12 Screen 0 is on '`', 11 on '-' and 12 on '='. --- .config/i3/config | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 6694785..2c43e0c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -102,6 +102,7 @@ bindsym $mod+q focus child # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. +set $ws0 "0" set $ws1 "1" set $ws2 "2" set $ws3 "3" @@ -112,8 +113,11 @@ set $ws7 "7" set $ws8 "8" set $ws9 "9" set $ws10 "10" +set $ws11 "11" +set $ws12 "12" # switch to workspace +bindsym $mod+grave workspace $ws0 bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 @@ -124,8 +128,11 @@ 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+grave move container to workspace $ws0 bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+2 move container to workspace $ws2 bindsym $mod+Shift+3 move container to workspace $ws3 @@ -136,6 +143,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 @@ -246,14 +255,16 @@ bar { } } +workspace $ws0 output $screen0 workspace $ws1 output $screen0 workspace $ws2 output $screen0 workspace $ws3 output $screen0 workspace $ws4 output $screen0 workspace $ws5 output $screen0 - -workspace $ws10 output $screen1 -workspace $ws9 output $screen1 -workspace $ws8 output $screen1 -workspace $ws7 output $screen1 workspace $ws6 output $screen1 +workspace $ws7 output $screen1 +workspace $ws8 output $screen1 +workspace $ws9 output $screen1 +workspace $ws10 output $screen1 +workspace $ws11 output $screen1 +workspace $ws12 output $screen1 From 7457ee307e9b054e64b964b64bfcae3e9ba21e89 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 29 Oct 2024 20:25:20 +0100 Subject: [PATCH 64/70] i3: Remove heading comments --- .config/i3/config | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 2c43e0c..e7d8f87 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,14 +1,3 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - -# i3 config file (v4) -# -# Please see https://i3wm.org/docs/userguide.html for a complete reference! - set $mod Mod4 font pango:monospace 8 From ab5dca873c0d3765f30adeeb984ddc9cc380dafa Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 31 Oct 2024 21:19:37 +0100 Subject: [PATCH 65/70] workspaces: Move workspaces config into its own file --- .config/i3/config | 60 +---------------------------- .config/i3/config.d/workspaces.conf | 59 ++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 59 deletions(-) create mode 100644 .config/i3/config.d/workspaces.conf diff --git a/.config/i3/config b/.config/i3/config index e7d8f87..679f9db 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -89,52 +89,6 @@ bindsym $mod+a focus parent # focus the child container bindsym $mod+q focus child -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -set $ws0 "0" -set $ws1 "1" -set $ws2 "2" -set $ws3 "3" -set $ws4 "4" -set $ws5 "5" -set $ws6 "6" -set $ws7 "7" -set $ws8 "8" -set $ws9 "9" -set $ws10 "10" -set $ws11 "11" -set $ws12 "12" - -# switch to workspace -bindsym $mod+grave workspace $ws0 -bindsym $mod+1 workspace $ws1 -bindsym $mod+2 workspace $ws2 -bindsym $mod+3 workspace $ws3 -bindsym $mod+4 workspace $ws4 -bindsym $mod+5 workspace $ws5 -bindsym $mod+6 workspace $ws6 -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+grave move container to workspace $ws0 -bindsym $mod+Shift+1 move container to workspace $ws1 -bindsym $mod+Shift+2 move container to workspace $ws2 -bindsym $mod+Shift+3 move container to workspace $ws3 -bindsym $mod+Shift+4 move container to workspace $ws4 -bindsym $mod+Shift+5 move container to workspace $ws5 -bindsym $mod+Shift+6 move container to workspace $ws6 -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 @@ -244,16 +198,4 @@ bar { } } -workspace $ws0 output $screen0 -workspace $ws1 output $screen0 -workspace $ws2 output $screen0 -workspace $ws3 output $screen0 -workspace $ws4 output $screen0 -workspace $ws5 output $screen0 -workspace $ws6 output $screen1 -workspace $ws7 output $screen1 -workspace $ws8 output $screen1 -workspace $ws9 output $screen1 -workspace $ws10 output $screen1 -workspace $ws11 output $screen1 -workspace $ws12 output $screen1 +include ~/.config/i3/config.d/*.conf diff --git a/.config/i3/config.d/workspaces.conf b/.config/i3/config.d/workspaces.conf new file mode 100644 index 0000000..a0cd82a --- /dev/null +++ b/.config/i3/config.d/workspaces.conf @@ -0,0 +1,59 @@ +# create workspace names +set $ws0 "0" +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" +set $ws11 "11" +set $ws12 "12" + +# switch to workspace +bindsym $mod+grave workspace $ws0 +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +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+grave move container to workspace $ws0 +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +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 + +# put workspaces on fixed screens +workspace $ws0 output $screen0 +workspace $ws1 output $screen0 +workspace $ws2 output $screen0 +workspace $ws3 output $screen0 +workspace $ws4 output $screen0 +workspace $ws5 output $screen0 +workspace $ws6 output $screen1 +workspace $ws7 output $screen1 +workspace $ws8 output $screen1 +workspace $ws9 output $screen1 +workspace $ws10 output $screen1 +workspace $ws11 output $screen1 +workspace $ws12 output $screen1 From 0f4249c84402d6763b66d42a1600a08d065a4401 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 26 Jan 2025 14:36:15 +0100 Subject: [PATCH 66/70] Fix scratchpad keybindings When they were introduced due to the switch to sway, they conflicted with the workspace setup. --- .config/sway/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 11cf6fe..0f2afed 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -65,11 +65,11 @@ bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. # You can send windows there and get them back later. # Move the currently focused window to the scratchpad -bindsym $mod+Shift+minus move scratchpad +bindsym $mod+delete move scratchpad # Show the next scratchpad window or hide the focused scratchpad window. # If there are multiple scratchpad windows, this command cycles through them. -bindsym $mod+minus scratchpad show +bindsym $mod+insert scratchpad show # # Moving around: From 6bd589e725f8f0e23cd3e9510fe8fdc257ebca11 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 26 Jan 2025 14:38:25 +0100 Subject: [PATCH 67/70] Update fullscreen toggling of windows keybinding --- .config/sway/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index 0f2afed..7f11138 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -39,7 +39,7 @@ bindsym $mod+h splith bindsym $mod+v splitv # toggle fullscreen mode -bindsym $mod+c fullscreen toggle +bindsym $mod+c fullscreen # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking From ae8de34f698a30ca93910626800b6fb0fbf71b19 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 26 Jan 2025 14:39:53 +0100 Subject: [PATCH 68/70] Extend keybindings for handling tiling/floating modes --- .config/sway/config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index 7f11138..7a40065 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -46,7 +46,10 @@ bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout toggle split -# toggle tiling / floating +# toggle the current focus between tiling and floating mode +bindsym $mod+Shift+space floating toggle + +# swap focus between the tiling area and the floating area bindsym $mod+space focus mode_toggle # focus the parent container From 02a9c369407a6365b68d12f272052a947918dbe3 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 26 Jan 2025 14:40:42 +0100 Subject: [PATCH 69/70] workspaces: Set output screen of workspaces --- .config/sway/config.d/10-workspaces.conf | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.config/sway/config.d/10-workspaces.conf b/.config/sway/config.d/10-workspaces.conf index 4560d67..41f3b7f 100644 --- a/.config/sway/config.d/10-workspaces.conf +++ b/.config/sway/config.d/10-workspaces.conf @@ -1,5 +1,5 @@ # -# Workspace setup +# Setup workspaces # set $ws0 "0" set $ws1 "1" @@ -15,6 +15,21 @@ set $ws10 "10" set $ws11 "11" set $ws12 "12" +# Bin workspaces to specific screens +workspace $ws0 output $screen0 +workspace $ws1 output $screen0 +workspace $ws2 output $screen0 +workspace $ws3 output $screen0 +workspace $ws4 output $screen0 +workspace $ws5 output $screen0 +workspace $ws6 output $screen1 +workspace $ws7 output $screen1 +workspace $ws8 output $screen1 +workspace $ws9 output $screen1 +workspace $ws10 output $screen1 +workspace $ws11 output $screen1 +workspace $ws12 output $screen1 + # Switch to workspace bindsym $mod+grave workspace number $ws0 bindsym $mod+1 workspace number $ws1 From badc087a80869b65cf86a2e8c14d8ed791810552 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 26 Jan 2025 15:31:02 +0100 Subject: [PATCH 70/70] i3status-rs: Improve net block format --- .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 d07d1fd..7e1b313 100644 --- a/.config/i3status-rust/config.toml +++ b/.config/i3status-rust/config.toml @@ -23,12 +23,12 @@ driver = "pulseaudio" [[block]] block = "net" device = "enp9s0" -format = " $icon $ip $graph_down $speed_down^icon_net_down $graph_up $speed_up^icon_net_up " +format = " $icon $ip $graph_down $speed_down ^icon_net_down $graph_up $speed_up ^icon_net_up " [[block]] block = "net" device = "enp0s31f6" -format = " $icon $ip $graph_down $speed_down^icon_net_down $graph_up $speed_up^icon_net_up " +format = " $icon $ip $graph_down $speed_down ^icon_net_down $graph_up $speed_up ^icon_net_up " [[block]] block = "disk_space"