From 890115310f13877b8896c8afb9d12bcfe1daaa05 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 3 Jun 2018 00:39:15 +0200 Subject: [PATCH 01/27] update to recent package config --- .config/i3/config | 77 ++++++++++++++++++++++++++--------------------- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index a9608fc..f1221f4 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,13 +1,13 @@ # 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 somewhen, delete +# Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # -# + # i3 config file (v4) # -# Please see http://i3wm.org/docs/userguide.html for a complete reference! +# Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 @@ -36,7 +36,7 @@ bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Shift+Return exec em # kill focused window -bindsym $mod+Shift+Q kill +bindsym $mod+Shift+q kill # start dmenu (a program launcher) bindsym $mod+d exec dmenu_run @@ -63,12 +63,12 @@ bindsym $mod+h split h bindsym $mod+v split v # enter fullscreen mode for the focused container -bindsym $mod+f fullscreen +bindsym $mod+f fullscreen toggle -# change container layout (stacked, tabbed, default) +# change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed -bindsym $mod+e layout default +bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle @@ -82,29 +82,42 @@ 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 1 -bindsym $mod+2 workspace 2 -bindsym $mod+3 workspace 3 -bindsym $mod+4 workspace 4 -bindsym $mod+5 workspace 5 -bindsym $mod+6 workspace 6 -bindsym $mod+7 workspace 7 -bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 +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 1 -bindsym $mod+Shift+2 move container to workspace 2 -bindsym $mod+Shift+3 move container to workspace 3 -bindsym $mod+Shift+4 move container to workspace 4 -bindsym $mod+Shift+5 move container to workspace 5 -bindsym $mod+Shift+6 move container to workspace 6 -bindsym $mod+Shift+7 move container to workspace 7 -bindsym $mod+Shift+8 move container to workspace 8 -bindsym $mod+Shift+9 move container to workspace 9 -bindsym $mod+Shift+0 move container to workspace 10 +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 @@ -113,7 +126,7 @@ bindsym $mod+Shift+c reload bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exit +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'" # resize window (you can also use the mouse for that) mode "resize" { @@ -127,7 +140,9 @@ mode "resize" { # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" + bindsym $mod+r mode "default" } + bindsym $mod+r mode "resize" # colors & style @@ -153,9 +168,3 @@ bar { #client.orientation #ff0000 } } - -# exec ssh-agent -# exec gpg-agent -# exec xset -b -# exec xrandr --output VGA-2 --auto --right-of VGA-1 -# exec feh --bg-scale ~/bg.jpg From 3fd107946037d9bfa3a31268b4d8c1905765145f Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 9 Nov 2019 18:13:07 +0100 Subject: [PATCH 02/27] adopt to desktop --- .config/i3status/config | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.config/i3status/config b/.config/i3status/config index 14486d1..fac6e98 100644 --- a/.config/i3status/config +++ b/.config/i3status/config @@ -3,33 +3,19 @@ general { interval = 1 } -# order += "ipv6" -order += "ethernet eth0" -order += "wireless wlan0" -order += "battery 0" +# order += "ipv6 enp0s31f6" +order += "ethernet enp0s31f6" order += "cpu_usage" order += "load" order += "volume master" order += "tztime home" order += "tztime utc" -ethernet eth0 { +ethernet enp0s31f6 { format_up = "E: %ip (%speed)" format_down = "E: down" } -wireless wlan0 { - format_up = "W: %quality@%ip" - format_down = "W: down" -} - -battery 0 { - last_full_capacity = true - format = "%status %percentage %remaining %consumption" ## %emptytime" - path = "/sys/class/power_supply/BAT%d/uevent" - low_threshold = 20 -} - cpu_usage { format = "C: %usage" } From 780e09095db0c25c943b5c75d1b5b03862a2986a Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 10 Jul 2019 23:40:14 +0200 Subject: [PATCH 03/27] floating window size --- .config/i3/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index f1221f4..ac73044 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -145,6 +145,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 9a666a1d5dc3a530e95939f51067a1abf9f2a4e8 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 9 Nov 2019 18:36:00 +0100 Subject: [PATCH 04/27] add font and urxvt --- .config/i3/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index ac73044..6897e76 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -11,6 +11,8 @@ 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" { @@ -30,7 +32,7 @@ bindsym $mod+Pause mode "$mode_system" floating_modifier $mod # start a terminal -bindsym $mod+Return exec i3-sensible-terminal +bindsym $mod+Return exec urxvt # start emacs bindsym $mod+Shift+Return exec em From e6bff9aa5afa46cd2e5876dac420b150217b1667 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 9 Nov 2019 19:03:11 +0100 Subject: [PATCH 05/27] flip resize keys --- .config/i3/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 6897e76..f16eb2c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -135,8 +135,8 @@ mode "resize" { # These bindings trigger as soon as you enter the resize mode bindsym Right resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 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 # back to normal: Enter or Escape From 62292a168af3a6f3615a0a8351054377397091a7 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 12 Nov 2019 12:39:27 +0100 Subject: [PATCH 06/27] fix i3bar --- .config/i3/config | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index f16eb2c..8f4048f 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -160,12 +160,12 @@ client.unfocused #000000 #005500 #000000 #ff0000 # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command i3status --config ~/.config/i3status/config - position top - tray_output primary - workspace_buttons yes - mode hide - modifier $mod + status_command i3status --config ~/.config/i3status/config + position top + tray_output primary + workspace_buttons yes + mode dock + modifier $mod colors { statusline #00ff00 From 43a9e2f49b8b1d2cd37f34e4befd9d5f90a65342 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 12 Nov 2019 17:26:53 +0100 Subject: [PATCH 07/27] use defined workspaces per screen --- .config/i3/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index 8f4048f..b966571 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -174,3 +174,6 @@ bar { #client.orientation #ff0000 } } + +workspace $ws10 output DisplayPort-3 +workspace $ws1 output DisplayPort-2 From b19a693fb08e39eb1d0b0ad9ff5084563b0bab42 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 15 Nov 2019 15:52:57 +0100 Subject: [PATCH 08/27] add dm-tool user switcher shortcut --- .config/i3/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index b966571..1c89087 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -130,6 +130,9 @@ bindsym $mod+Shift+r restart # 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'" +# 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 From 127e346631a4aec32f643146301f5275480b6a63 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 16 Nov 2019 16:14:10 +0100 Subject: [PATCH 09/27] add i3-run --- .gitignore.d/i3 | 2 ++ bin/i3-run | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 bin/i3-run diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 index 8f02c8d..3bd0a13 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/i3 @@ -1,4 +1,6 @@ * +!/bin +!/bin/i3-run !/.config !/.config/i3 !/.config/i3/config diff --git a/bin/i3-run b/bin/i3-run new file mode 100644 index 0000000..1baee9a --- /dev/null +++ b/bin/i3-run @@ -0,0 +1,9 @@ +#!/bin/sh + +# stolen from https://r0tty.org/git/dotfiles/i3 + +# Make i3 spawn a program, in the current working directory. This is +# useful for running GUI apps from a terminal without cluttering the +# terminal with their output. + +exec i3-msg -t command exec "cd '$(pwd)' && $@" From 957a010e6602418f44b9394f97363d8655949633 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 22 Nov 2019 13:50:00 +0100 Subject: [PATCH 10/27] use internal graphics --- .config/i3/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 1c89087..71e9804 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -178,5 +178,5 @@ bar { } } -workspace $ws10 output DisplayPort-3 -workspace $ws1 output DisplayPort-2 +workspace $ws10 output HDMI-2 +workspace $ws1 output DP-1 From ae193cf41c67353f14eedcacbbd08a5a4157a37d Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 3 Dec 2019 20:57:14 +0100 Subject: [PATCH 11/27] add fuzzy-i3lock --- .gitignore.d/i3 | 1 + bin/fuzzy-i3lock | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100755 bin/fuzzy-i3lock diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 index 3bd0a13..4dce7a8 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/i3 @@ -1,5 +1,6 @@ * !/bin +!/bin/fuzzy-i3lock !/bin/i3-run !/.config !/.config/i3 diff --git a/bin/fuzzy-i3lock b/bin/fuzzy-i3lock new file mode 100755 index 0000000..ae4b552 --- /dev/null +++ b/bin/fuzzy-i3lock @@ -0,0 +1,13 @@ +#!/bin/sh -e +# +# Show a pixelated screenshot as background image of i3lock +# +# See +# Copied from +# + +screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png" + +scrot "$screenshot" +mogrify -scale 10% -scale 1000% "$screenshot" +exec i3lock -i "$screenshot" From c3c5536e80b615683cf58ef4eb6382e822a19fff Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 3 Dec 2019 23:30:15 +0100 Subject: [PATCH 12/27] make i3-run executable --- bin/i3-run | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 bin/i3-run diff --git a/bin/i3-run b/bin/i3-run old mode 100644 new mode 100755 From 038e8ae38bdf7b32ee0c5997fd67bda4553a962c Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 4 Dec 2019 22:31:08 +0100 Subject: [PATCH 13/27] add fuzzy-i3lock to i3 config --- .config/i3/config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index 71e9804..fe55cac 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -37,6 +37,9 @@ bindsym $mod+Return exec urxvt # start emacs bindsym $mod+Shift+Return exec em +# lock screen +bindsym $mod+l exec fuzzy-i3lock + # kill focused window bindsym $mod+Shift+q kill @@ -131,7 +134,7 @@ bindsym $mod+Shift+r restart 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'" # open login screen on another vt (virtual terminal) -bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" +bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter & fuzzy-i3lock" # resize window (you can also use the mouse for that) mode "resize" { From 580db66f32d3874aecfc37e7efa04dcc9cc1c739 Mon Sep 17 00:00:00 2001 From: finga Date: Thu, 19 Dec 2019 18:31:53 +0100 Subject: [PATCH 14/27] remove fuzzy-i3lock when changing user --- .config/i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index fe55cac..0b97f9a 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -134,7 +134,7 @@ bindsym $mod+Shift+r restart 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'" # open login screen on another vt (virtual terminal) -bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter & fuzzy-i3lock" +bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" # resize window (you can also use the mouse for that) mode "resize" { From 174f55cd1b3926317cebcbe06e582738e8cb6221 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 11 Jan 2020 17:11:46 +0100 Subject: [PATCH 15/27] move bin to .local --- {bin => .local/bin}/fuzzy-i3lock | 0 {bin => .local/bin}/i3-run | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename {bin => .local/bin}/fuzzy-i3lock (100%) rename {bin => .local/bin}/i3-run (100%) diff --git a/bin/fuzzy-i3lock b/.local/bin/fuzzy-i3lock similarity index 100% rename from bin/fuzzy-i3lock rename to .local/bin/fuzzy-i3lock diff --git a/bin/i3-run b/.local/bin/i3-run similarity index 100% rename from bin/i3-run rename to .local/bin/i3-run From af3383ac1f00b5bad484d38fbf08bb7504ffd024 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 11 Jan 2020 17:23:05 +0100 Subject: [PATCH 16/27] use i3status-rust --- .config/i3/config | 21 ++++++++++- .config/i3/status-rs.toml | 69 +++++++++++++++++++++++++++++++++++ .config/i3/status-rs_sec.toml | 52 ++++++++++++++++++++++++++ .gitignore.d/i3 | 11 +++--- 4 files changed, 147 insertions(+), 6 deletions(-) create mode 100644 .config/i3/status-rs.toml create mode 100644 .config/i3/status-rs_sec.toml diff --git a/.config/i3/config b/.config/i3/config index 0b97f9a..c1f5c48 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -166,12 +166,31 @@ client.unfocused #000000 #005500 #000000 #ff0000 # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command i3status --config ~/.config/i3status/config + status_command i3status-rs ~/.config/i3/status-rs.toml + font pango:DejaVu Sans Mono, forkawesome 8 position top tray_output primary workspace_buttons yes mode dock modifier $mod + output DP-1 + + colors { + statusline #00ff00 + focused_workspace #00cc00 #00ff00 #000000 + inactive_workspace #00cc00 #008b00 #cccccc + #client.orientation #ff0000 + } +} +bar { + status_command i3status-rs ~/.config/i3/status-rs_sec.toml + font pango:DejaVu Sans Mono, forkawesome 8 + position top + tray_output primary + workspace_buttons yes + mode dock + modifier $mod + output HDMI-2 colors { statusline #00ff00 diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml new file mode 100644 index 0000000..528482c --- /dev/null +++ b/.config/i3/status-rs.toml @@ -0,0 +1,69 @@ +icons = "awesome" + +[theme] +name = "solarized-dark" + +[theme.overrides] +idle_fg = "#00cc00" +idle_bg = "#222222" + +[[block]] +block = "maildir" +interval = 60 +inboxes = ["/home/finga/mail/onders.org/Inbox"] +threshold_warning = 1 +threshold_critical = 10 +display_type = "new" + +[[block]] +block = "net" +device = "enp0s31f6" +ip = true +graph_up = true +graph_down = true +interval = 5 +hide_inactive = false + +[[block]] +block = "memory" +display_type = "memory" +format_mem = "{Mup}%" +clickable = false + +[[block]] +block = "memory" +display_type = "swap" +format_swap = "{SUp}%" +clickable = false + +[[block]] +block = "cpu" +frequency = true +interval = 1 + +[[block]] +block = "temperature" +collapsed = false +interval = 10 +format = "{min}° min, {max}° max, {average}° avg" +chip = "*-isa-*" + +[[block]] +block = "load" +interval = 1 +format = "{1m} {5m} {15m}" + +[[block]] +block = "sound" + +[[block]] +block = "time" +interval = 1 +format = "%Y-%m-%d %a (%Z) %H:%M:%S" +timezone = "Europe/Vienna" + +[[block]] +block = "time" +interval = 1 +format = "(%Z) %H:%M:%S" +timezone = "Etc/UTC" diff --git a/.config/i3/status-rs_sec.toml b/.config/i3/status-rs_sec.toml new file mode 100644 index 0000000..d57c39e --- /dev/null +++ b/.config/i3/status-rs_sec.toml @@ -0,0 +1,52 @@ +icons = "awesome" + +[theme] +name = "solarized-dark" + +[theme.overrides] +idle_fg = "#00cc00" +idle_bg = "#222222" + +[[block]] +block = "memory" +display_type = "memory" +format_mem = "{Mup}%" +clickable = false + +[[block]] +block = "memory" +display_type = "swap" +format_swap = "{SUp}%" +clickable = false + +[[block]] +block = "cpu" +frequency = true +interval = 1 + +[[block]] +block = "temperature" +collapsed = false +interval = 10 +format = "{min}° min, {max}° max, {average}° avg" +chip = "*-isa-*" + +[[block]] +block = "load" +interval = 1 +format = "{1m} {5m} {15m}" + +[[block]] +block = "sound" + +[[block]] +block = "time" +interval = 1 +format = "%Y-%m-%d %a (%Z) %H:%M:%S" +timezone = "Europe/Vienna" + +[[block]] +block = "time" +interval = 1 +format = "(%Z) %H:%M:%S" +timezone = "Etc/UTC" diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 index 4dce7a8..cb6f044 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/i3 @@ -1,11 +1,12 @@ * -!/bin -!/bin/fuzzy-i3lock -!/bin/i3-run !/.config !/.config/i3 -!/.config/i3/config +!/.config/i3/* !/.config/i3status -!/.config/i3status/config +!/.config/i3status/* !/.gitignore.d !/.gitignore.d/i3 +!/.local +!/.local/bin +!/.local/bin/fuzzy-i3lock +!/.local/bin/i3-run From a36b38a3def6b82aea7f08a24827bf16bbed596a Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 11 Jan 2020 17:50:17 +0100 Subject: [PATCH 17/27] use pipe as separator --- .config/i3/status-rs.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml index 528482c..463bcff 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3/status-rs.toml @@ -6,6 +6,9 @@ name = "solarized-dark" [theme.overrides] idle_fg = "#00cc00" idle_bg = "#222222" +separator = "|" +separator_fg = "#00cc00" +separator_bg = "#222222" [[block]] block = "maildir" From 786b6118e441b524599c272f2f7c8ebf661bfd7e Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 29 Jan 2020 15:13:33 +0100 Subject: [PATCH 18/27] show barchart for cpu in i3status-rust --- .config/i3/status-rs.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml index 463bcff..88b6272 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3/status-rs.toml @@ -41,8 +41,8 @@ clickable = false [[block]] block = "cpu" -frequency = true interval = 1 +format = "{barchart} {utilization}% {frequency}GHz" [[block]] block = "temperature" From c8f0414b9b973ecc522ea48dd30b5dccea16d585 Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 3 Mar 2020 23:05:32 +0100 Subject: [PATCH 19/27] Remove i3-status config and update i3status-rs - add music - add seperator + color --- .config/i3/status-rs.toml | 7 ++++++ .config/i3/status-rs_sec.toml | 3 +++ .config/i3status/config | 42 ----------------------------------- 3 files changed, 10 insertions(+), 42 deletions(-) delete mode 100644 .config/i3status/config diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml index 88b6272..1d0f0ec 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3/status-rs.toml @@ -18,6 +18,13 @@ threshold_warning = 1 threshold_critical = 10 display_type = "new" +[[block]] +block = "music" +max_width = 42 +marquee_interval = 0 +marquee_speed = 0.3 +buttons = ["prev", "play", "next"] + [[block]] block = "net" device = "enp0s31f6" diff --git a/.config/i3/status-rs_sec.toml b/.config/i3/status-rs_sec.toml index d57c39e..79fbf80 100644 --- a/.config/i3/status-rs_sec.toml +++ b/.config/i3/status-rs_sec.toml @@ -6,6 +6,9 @@ name = "solarized-dark" [theme.overrides] idle_fg = "#00cc00" idle_bg = "#222222" +separator = "|" +separator_fg = "#00cc00" +separator_bg = "#222222" [[block]] block = "memory" diff --git a/.config/i3status/config b/.config/i3status/config deleted file mode 100644 index fac6e98..0000000 --- a/.config/i3status/config +++ /dev/null @@ -1,42 +0,0 @@ -general { - colors = true - interval = 1 -} - -# order += "ipv6 enp0s31f6" -order += "ethernet enp0s31f6" -order += "cpu_usage" -order += "load" -order += "volume master" -order += "tztime home" -order += "tztime utc" - -ethernet enp0s31f6 { - format_up = "E: %ip (%speed)" - format_down = "E: down" -} - -cpu_usage { - format = "C: %usage" -} - -load { - format = "%1min %5min %15min" -} - -volume master { - format = "♪: %volume" - device = "default" - mixer = "Master" - mixer_idx = 0 -} - -tztime home { - format = "%Y-%m-%d (%Z) %H:%M:%S" - timezone = "Europe/Vienna" -} - -tztime utc { - format = "(%Z) %H:%M:%S" - timezone = "Etc/UTC" -} From ca48058d3bf2d9a53cdc00363c3b628e722c16a1 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 7 Mar 2020 18:41:27 +0100 Subject: [PATCH 20/27] choose terminal and editor via env --- .config/i3/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index c1f5c48..2c9d566 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -32,10 +32,10 @@ bindsym $mod+Pause mode "$mode_system" floating_modifier $mod # start a terminal -bindsym $mod+Return exec urxvt +bindsym $mod+Return exec i3-sensible-terminal # start emacs -bindsym $mod+Shift+Return exec em +bindsym $mod+Shift+Return exec i3-sensible-editor # lock screen bindsym $mod+l exec fuzzy-i3lock From 9786ce48cf922d29f16736dd89265748e074428d Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 16 Mar 2020 16:25:51 +0100 Subject: [PATCH 21/27] fixed workspaces per screen --- .config/i3/config | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index 2c9d566..acf08c6 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -200,5 +200,14 @@ bar { } } -workspace $ws10 output HDMI-2 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 $ws10 output HDMI-2 +workspace $ws6 output HDMI-2 +workspace $ws7 output HDMI-2 +workspace $ws8 output HDMI-2 +workspace $ws9 output HDMI-2 From fa2184b884c3ccaf56c6ba4d45fd8dc6b39951ba Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 16 Mar 2020 16:32:29 +0100 Subject: [PATCH 22/27] Use shorter format strings for time --- .config/i3/status-rs.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml index 1d0f0ec..3d0fb60 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3/status-rs.toml @@ -69,11 +69,11 @@ block = "sound" [[block]] block = "time" interval = 1 -format = "%Y-%m-%d %a (%Z) %H:%M:%S" +format = "%F (%Z) %T" timezone = "Europe/Vienna" [[block]] block = "time" interval = 1 -format = "(%Z) %H:%M:%S" +format = "(%Z) %T" timezone = "Etc/UTC" From d82e2202da312dc7682e136c6406ea7be252288b Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 4 Apr 2020 16:41:25 +0200 Subject: [PATCH 23/27] Shorter refresh rate for maildir --- .config/i3/status-rs.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml index 3d0fb60..a339204 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3/status-rs.toml @@ -12,10 +12,8 @@ separator_bg = "#222222" [[block]] block = "maildir" -interval = 60 +interval = 15 inboxes = ["/home/finga/mail/onders.org/Inbox"] -threshold_warning = 1 -threshold_critical = 10 display_type = "new" [[block]] From 9321366677247fdc3e882739c40a64f7aeb89c46 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 11 Jul 2020 00:20:17 +0200 Subject: [PATCH 24/27] Use Emacs keybindings for navigation --- .config/i3/config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index acf08c6..fc74f1e 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -50,6 +50,11 @@ bindsym $mod+d exec dmenu_run 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 @@ -68,7 +73,7 @@ bindsym $mod+h split h bindsym $mod+v split v # enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle +bindsym $mod+Shift+f fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking From 5cdd3afc5f56dd403ba98d319713e871bf220840 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 5 Aug 2020 18:37:28 +0200 Subject: [PATCH 25/27] Add key bindings for window moving and fullscreen --- .config/i3/config | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/i3/config b/.config/i3/config index fc74f1e..a363a34 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -61,6 +61,11 @@ 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 @@ -73,7 +78,7 @@ bindsym $mod+h split h bindsym $mod+v split v # enter fullscreen mode for the focused container -bindsym $mod+Shift+f fullscreen toggle +bindsym $mod+g fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking From c15f56b1cca1e4727ab88c1b75bd257d6cbe02e1 Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 24 Oct 2020 11:16:39 +0200 Subject: [PATCH 26/27] Use more emacsic keybindings --- .config/i3/config | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index a363a34..b8dd005 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -78,7 +78,7 @@ bindsym $mod+h split h bindsym $mod+v split v # enter fullscreen mode for the focused container -bindsym $mod+g fullscreen toggle +bindsym $mod+c fullscreen toggle # change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking @@ -149,12 +149,16 @@ 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+p resize shrink height 10 px or 10 ppt + bindsym $mod+n 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" From 3aea5c709eaee023304a392ff6a31e2bccd33aab Mon Sep 17 00:00:00 2001 From: finga Date: Sat, 24 Oct 2020 11:17:24 +0200 Subject: [PATCH 27/27] Adapt i3-status-rs config to current version --- .config/i3/status-rs.toml | 33 +++++++++++++++++++++++++++------ .config/i3/status-rs_sec.toml | 3 +++ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/.config/i3/status-rs.toml b/.config/i3/status-rs.toml index a339204..12e8914 100644 --- a/.config/i3/status-rs.toml +++ b/.config/i3/status-rs.toml @@ -26,11 +26,33 @@ buttons = ["prev", "play", "next"] [[block]] block = "net" device = "enp0s31f6" -ip = true -graph_up = true -graph_down = true -interval = 5 -hide_inactive = false +# format = "{ip} {graph_down} {speed_down} {graph_up} {speed_up}" +format = "{graph_down} {speed_down} {graph_up} {speed_up}" + +# [[block]] +# block = "disk_space" +# path = "/" +# info_type = "used" +# format = "{path} {percentage}" + +# [[block]] +# block = "disk_space" +# path = "/home" +# info_type = "used" +# format = "{path} {percentage}" + +# [[block]] +# block = "disk_space" +# path = "/var" +# info_type = "used" +# warning = 20.0 +# format = "{path} {percentage}" + +# [[block]] +# block = "disk_space" +# path = "/tmp" +# info_type = "used" +# format = "{path} {percentage}" [[block]] block = "memory" @@ -52,7 +74,6 @@ format = "{barchart} {utilization}% {frequency}GHz" [[block]] block = "temperature" collapsed = false -interval = 10 format = "{min}° min, {max}° max, {average}° avg" chip = "*-isa-*" diff --git a/.config/i3/status-rs_sec.toml b/.config/i3/status-rs_sec.toml index 79fbf80..b53ffe5 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 = "uptime" + [[block]] block = "memory" display_type = "memory"