A couple of questions regarding customization of the i3 bar

Hi,

I have tried, to the best of my ability ( :innocent:) to figure things out about configuring i3 but some perhaps obvious things for more advanced users are still escaping me.

Here are a couple of them:

  1. I would like for the workspaces to be shown only with numbers
  2. I would like to put som space between the icons on the tray

I would appreciate your guidance to achieve this.

look @ line 291 ( think ) in i3 config … save a copy of config

then `

set $ws1 “1”
set $ws2 “2”
set $ws3 “3”
set $ws4 “4”
set $ws5 “5”
set $ws6 “6”
set $ws7 “7”
set $ws8 “8”`

look like you have font missing or play around :face_with_hand_over_mouth:

EDit… tray i no sure ( never use + no use i3blocks ) my guess it be set in i3block config

2 Likes

@Shjim you were faster than me
I was just about to write the same thing :sweat_smile:

1 Like

am not quite sure it’s been a long time since I’ve tried i3blocks
try to comment to two line
in your i3wm config

#tray_output primary
#tray_padding 0
2 Likes

This worked perfectly!
Thank you so much @Shjim!

:sweat_smile:

Playing around, for sure :blush:
How could you tell that fonts are missing?

Would you mind having a look?

i3blocks.conf
# i3blocks config file changed for EndeavourOS-i3 setup

# source is available here:
# https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/.config/i3/i3blocks.conf
# Maintainer: joekamprad [joekamprad@endeavouros.com]
# Former Visual Designer: Florent Valetti [@FLVAL EndeavourOS]
# created for i3wm setup on EndeavourOS
# https://endeavouros.com

# cheatsheet for icon fonts used on the block-bar:
# https://fontawesome.com/v4.7/cheatsheet/

# --> to update this run the following command:
# wget --backups=1 https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/main/.config/i3/i3blocks.conf -P ~/.config/i3/

# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks


# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent

# Global properties
#
# The top properties below are applied to every block, but can be overridden.
separator=false
markup=pango

#[terminal]
#full_text= 
#color=#807dfe
#command=xfce4-terminal

#[browser]
#full_text= 
#color=#ff7f81
#command=firefox

#[files]
#full_text= 
#color=#7f3fbf
#command=thunar ~/

#[mail]
#full_text= 
#color=#dbcb75
#command=thunderbird

#[simple-2]
#full_text=: :
#color=#717171

# Disk usage
#
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
[disk]
label=   
instance=/
command=~/.config/i3/scripts/disk
interval=30

# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
[memory]
label= 
command=~/.config/i3/scripts/memory
interval=2

[cpu_usage]
label= 
command=~/.config/i3/scripts/cpu_usage
#min_width=CPU: 100.00%
interval=2

[CPU-temperature]
label=
command=~/.config/i3/scripts/temperature
interval=30
#T_WARN=70
#T_CRIT=90
#SENSOR_CHIP=""
# where SENSOR_CHIP can be find with sesnors output
# can be used also for GPU temperature or other temperature sensors lm-sensors detects.

# showing name of connected network (enable for wifi use)
#[net]
#label=
#command=echo "$(LANG=C nmcli d | grep connected  | awk '{print $4}')"
#interval=30

#[bandwidth]
#command=~/.config/i3/scripts/bandwidth2
#interval=persist

# Battery indicator
#
# The battery instance defaults to 0.
#[battery]
#command=~/.config/i3/scripts/battery.sh
# change this to battery-pinebook-pro.sh if you are running on pinebook-pro
#label= 
#instance=1
#interval=30

#[simple-2]
#full_text=: :
#color=#717171

[pavucontrol]
full_text=
command=pavucontrol

[volume-pulseaudio]
command=~/.config/i3/scripts/volume
instance=Master
interval=1

[keybindings]
full_text=
command=~/.config/i3/scripts/keyhint.sh

[time]
#label= 
command=date '+%a %d %b %H:%M'
interval=1

[shutdown_menu]
full_text=   
command=~/.config/i3/scripts/powermenu

#[simple-2]
#full_text=: :
#color=#717171
/etc/i3status.conf

`# i3status configuration file.

see “man i3status” for documentation.

It is important that this file is edited as UTF-8.

The following line should contain a sharp s:

ß

If the above line is not correctly displayed, fix your editor first!

general {
colors = true
interval = 5
}

#order += “ipv6”
#order += “wireless first
#order += “ethernet first
order += “battery all”
order += “disk /”
order += “load”
order += “memory”
order += “tztime local”

#wireless first {

format_up = “W: (%quality at %essid) %ip”

format_down = “W: down”

#}

#ethernet first {

format_up = “E: %ip (%speed)”

format_down = “E: down”

#}

battery all {
format = “%status %percentage %remaining”
}

disk “/” {
format = “%avail”
}

load {
format = “%1min”
}

memory {
format = “%used | %available”
threshold_degraded = “1G”
format_degraded = “MEMORY < %available”
}

tztime local {
format = “%Y-%m-%d %H:%M”
}`

change padding …

normal EOS i3 block have icon . so = you delete font or play around . i see you play now :+1:

EDit … Best way learn :+1: remember bkup before try change

be careful not to use nerd font when using i3block or i3status

2 Likes

Thanks @archlinux for the sugeestion!
Unfortunately that didn’t seem to be working.
I could live with how it is but would be nice to have a couple of pixels space between them. Aesthetically more balanced.

did you restart i3?

This^^ :sweat_smile:

Sure, I will make backups. Some damage might have been done already though. However things seems to be working alright.

Yes. After saving file, Shift+$mod+r
Also logged out and back in.

will you put your i3 config
so i can try?

1 Like

@archlinux
look like @pebcak use this

1 Like

yes i now this config
but maybe it was his own

okay i’m trying eos default config
but i have many nerd font installed :sweat_smile:
but i will try

1 Like

Yes, it is the one from EnOS.

are you use i3status or i3blocks?

Yes.
Those were set up when I installed EnOS. I posted them a bit further up.

Here:

I have changed those somewhat but I didn’t see anything regarding the systray.

Since we are at it… I tried to download the eos i3wm theming and everything seems to work.

The $ws1 has a symbol for terminal instead of the number, but I like to have something like:

“1:>_”

Oddly when I add “1:”, it does not appear in the bar.

Just "1" should work without :

That’s quite nice but I prefer not having any specific workspace tied to an app.

3 Likes