diff --git a/.config/i3/config##class.arch_desktop b/.config/i3/config##class.arch_desktop index 528efc1..dcff29f 100644 --- a/.config/i3/config##class.arch_desktop +++ b/.config/i3/config##class.arch_desktop @@ -83,7 +83,7 @@ bindsym $mod+Ctrl+KP_Page_Up exec $myTerm -e wopr report.xml bindsym $mod+Home exec "autorandr -c" # toggle polybar -bindsym $mod+Shift+f exec "polybar-msg cmd toggle" +# bindsym $mod+Shift+f exec "polybar-msg cmd toggle" # make screenshot bindsym $mod+Print exec "flameshot full -c" @@ -313,7 +313,7 @@ bindsym $mod+Ctrl+Shift+$alt+l exec --no-startup-id light-locker-command -l # Set shut down, restart bindsym $mod+Shift+Ctrl+$alt+h exec --no-startup-id systemctl hibernate -bindsym $mod+Shift+Ctrl+$alt+s exec --no-startup-id systemctl suspend +bindsym $mod+Shift+Ctrl+$alt+s exec --no-startup-id systemctl suspend-then-hibernate # set lock combination for i3lock bindsym $mod+Ctrl+l exec --no-startup-id i3lock -c 000000 @@ -368,7 +368,7 @@ exec --no-startup-id numlockx on # Autostart applications -exec_always --no-startup-id $HOME/.config/polybar/launch.sh +#exec_always --no-startup-id $HOME/.config/polybar/launch.sh exec --no-startup-id nextcloud exec --no-startup-id mullvad-vpn exec --no-startup-id redshift ~/.config/redshift/redshift.conf @@ -492,3 +492,20 @@ mode "$mode_gaps_outer" { bindsym Escape mode "default" } +bar { + font pango:MesloLGS NF 11 + position top + status_command /usr/bin/i3status-rs $HOME/.config/i3status-rust/config.toml + tray_output primary + colors { + separator #ffffff + background #424242 + statusline #424242 + } +} + +# config for i3block +#bar { +# status_command i3blocks +# +#} diff --git a/.config/i3status-rust/config.toml b/.config/i3status-rust/config.toml new file mode 100644 index 0000000..43e507d --- /dev/null +++ b/.config/i3status-rust/config.toml @@ -0,0 +1,113 @@ +icons_format = "{icon}" + +[theme] +theme = "slick" +#[theme.overrides] +#idle_bg = "#222222" +#separator_bg = "#222222" + +[icons] +icons = "material-nf" + +[[block]] +block = "focused_window" +[[bloack.format]] +full = " $title.str(max_w:15) " +short = " $title.str(max_w:10) " + + +[[block]] +block = "cpu" +interval = 1 +format = " $icon $utilization" +format_alt = " $icon $frequency $boost" + +[[block]] +block = "temperature" +interval = 1 +format = " $icon $max" + + +[[block]] +block = "memory" +format = " $icon $mem_total_used_percents.eng(w:4)" +format_alt = " $icon $mem_total_used_percents.eng(w:2) S:$swap_used_percents.eng(w:2) " + +[[block]] +block = "disk_space" +path = "/" +info_type = "available" +alert_unit = "GB" +interval = 60 +warning = 20.0 +alert = 10.0 +format = " / $available.eng(w:2) " + +[[block]] +block = "custom" +command = '''echo iGPU: `sudo intel_gpu_top -l | head -n4 | tail -n1 | awk '{print $9 "%"}'`''' +interval = 5 + +[[block]] +block = "nvidia_gpu" +interval = 1 +format = "dGPU:$utilization $temperature $clocks" + + +[[block]] +block = "sound" +driver = "pulseaudio" +device_kind = "sink" +format = " $icon { $volume|} " +[[block.click]] +button = "left" +cmd = "pavucontrol" + +[[block]] +block = "sound" +driver = "pulseaudio" +device_kind = "source" +format= " $icon " + +[[block.click]] +button = "left" +cmd = "pactl set-source-mute @DEFAULT_SOURCE@ toggle" + + +[[block]] +block = "net" +format = " $icon {$signal_strength $ssid |Wired connection} ^icon_net_up$speed_up ^icon_net_down$speed_down " + +[[block]] +block = "vpn" +driver = "mullvad" +interval = 10 +format_connected = "VPN: $icon " +format_disconnected = "VPN: $icon " +state_connected = "good" +state_disconnected = "critical" + +[[block]] +block = "external_ip" +format = " $city.str(max_w:3):$country_code" +interval = 60 + +[[block]] +block = "battery" +device = "BAT0" +interval = 1 +format = " $icon $percentage {$power:$time|}" +full_format = " $icon $percentage" +charging_format = " $icon $percentage {$power:$time}" +missing_format = "" +good= 100 +warning= 40 +critical= 20 + + +[[block]] +block = "time" +interval = 1 +format = " $timestamp.datetime(f:'%a %d/%m %R:%S') " + +