From c2b5eac3ba6ae6517cfbd76c88a2a639a5c1f3a0 Mon Sep 17 00:00:00 2001 From: Quentin Godefroid Date: Wed, 3 Jan 2024 13:44:02 +0100 Subject: [PATCH] add nano and update i3 status --- .gitignore | 1 + i3/.config/i3/config | 30 ++++++++++++------------- i3/.config/i3status/config | 46 ++++++++++++++------------------------ nano/.cache/nano/.keep | 0 4 files changed, 33 insertions(+), 44 deletions(-) create mode 100644 nano/.cache/nano/.keep diff --git a/.gitignore b/.gitignore index c6ef0d2..21ee720 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ git/.gitconfig-work home/ +nano/.cache/nano/* \ No newline at end of file diff --git a/i3/.config/i3/config b/i3/.config/i3/config index c4593c9..3017f2b 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -46,7 +46,7 @@ floating_modifier $mod # move tiling windows via drag & drop by left-clicking into the title bar, # or left-clicking anywhere into the window while holding the floating modifier. -tiling_drag modifier titlebar +# tiling_drag modifier titlebar # start a terminal bindsym $mod+Return exec /etc/profiles/per-user/hactario/bin/alacritty @@ -115,15 +115,15 @@ bindsym $mod+q focus parent # 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 $ws1 "1:Chat" +set $ws2 "2:Main" +set $ws3 "3:Console" set $ws4 "4" set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" -set $ws9 "9" +set $ws9 "9:Spotify" set $ws10 "10" # switch to workspace @@ -187,20 +187,20 @@ bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - font pango:Hack Nerd Font Mono, FontAwesome 8 + font pango:Hack Nerd Font Mono, FontAwesome 10 status_command i3status -c ~/.config/i3status/config position bottom workspace_buttons yes - tray_output none + # tray_output none colors { - background #282A36 - statusline #F8F8F2 - separator #44475A - focused_workspace #44475A #44475A #F8F8F2 - active_workspace #282A36 #44475A #F8F8F2 - inactive_workspace #282A36 #282A36 #BFBFBF - urgent_workspace #FF5555 #FF5555 #F8F8F2 - binding_mode #FF5555 #FF5555 #F8F8F2 + background #282A36 + statusline #F8F8F2 + separator #44475A + focused_workspace #44475A #44475A #F8F8F2 + active_workspace #282A36 #44475A #F8F8F2 + inactive_workspace #282A36 #282A36 #BFBFBF + urgent_workspace #FF5555 #FF5555 #F8F8F2 + binding_mode #FF5555 #FF5555 #F8F8F2 } bindsym --release button3 exec --no-startup-id import ~/screenshot-$(date +%F-%T).png } diff --git a/i3/.config/i3status/config b/i3/.config/i3status/config index 3ac0b9d..6a26f3c 100644 --- a/i3/.config/i3status/config +++ b/i3/.config/i3status/config @@ -11,35 +11,28 @@ general { color_good = "#a3be8c" color_degraded = "#ebcb8b" color_bad = "#bf616a" - separator = '  ' - # output_format = "i3bar" + separator = "" + output_format = "i3bar" interval = 5 } order += "ipv6" order += "wireless _first_" order += "ethernet _first_" -order += "battery all" -order += "disk /" +order += "disk /home" order += "load" order += "memory" -order += "tztime local" -order += "ipv6" -order += "disk /" order += "run_watch DHCP" order += "run_watch VPNC" order += "path_exists VPN" -order += "wireless wlan0" -order += "ethernet eth0" order += "battery 0" order += "cpu_temperature 0" -order += "memory" -order += "load" order += "tztime local" -order += "tztime berlin" +order += "tztime Montreal" +order += "tztime Brussels" wireless _first_ { - format_up = "W: (%quality at %essid) %ip" + format_up = "W: (%quality at %essid) %ip (%speed)" format_down = "W: down" } @@ -48,24 +41,11 @@ ethernet _first_ { format_down = "E: down" } -wireless wlan0 { - format_up = "W: (%quality at %essid, %bitrate) %ip" - format_down = "W: down" -} - -ethernet eth0 { - format_up = "E: %ip (%speed)" - format_down = "E: down" -} battery all { format = "%status %percentage %remaining" } -disk "/" { - format = "%avail" -} - load { format = "%1min" } @@ -106,9 +86,14 @@ tztime local { hide_if_equals_localtime = true } -tztime berlin { +tztime Brussels { format = "%Y-%m-%d %H:%M:%S %Z" - timezone = "Europe/Berlin" + timezone = "Europe/Brussels" +} +tztime Montreal { + format = "%H:%M %Z" + timezone = "America/Montreal" + hide_if_equals_localtime = true } load { @@ -117,7 +102,6 @@ load { cpu_temperature 0 { format = "T: %degrees °C" - path = "/sys/devices/platform/coretemp.0/temp1_input" } memory { @@ -130,6 +114,10 @@ disk "/" { format = "%free" } +disk "/home" { + format = "%free" +} + read_file uptime { path = "/proc/uptime" } diff --git a/nano/.cache/nano/.keep b/nano/.cache/nano/.keep new file mode 100644 index 0000000..e69de29