Manjaro Linux Forum

Support for Community Editions => Others => i3 => Topic started by: oberon on 26. September 2015, 11:53:36

Title: tweaking i3
Post by: oberon on 26. September 2015, 11:53:36
@irenicus9 pointed out that this board should have a thread about customizing i3 to encourage people to come up and share with their own ideas and tweaks.
I would like to start out with the usage of Compton:
The current ISO comes with Compton preinstalled and configured only for the sake of real transparency and the reason for that is practically only because there is a Conky, too. Would there not be a Conky in the background urxvt's built in fake transparency would do the job just fine, but since it's not real transparency the Conky would disappear behind transparent windows and you will suddenly see an empty wallpaper there ...  ::)
In the config I had turned off shadows, blurring and fading completely.

Intrigued by the other Compton thread I have now come back to try the other functions of Compton again, too.
For a start I am using most of the settings of @irenicus9 's original config (http://pastebin.com/JLfjCwqP)
Unfortunately Compron's shadows are a real problem with Conky... ???
I have added
Code: [Select]
shadow-exclude = [ "class_g ?= 'Conky'" ]; In other environment that works fine, but it depends on the Conky config also. The only setting for own_window_type that works in i3 is 'override' because neither of the other options (normal, desktop, dock, panel) will make you happy, I promise! :o :P
Any ideas? If not, that means you will have to decide: Conky or shadows, or ... ... Conky with shadows ... ;) >:D
Title: Re: tweaking i3
Post by: Airblader on 26. September 2015, 16:37:29
Here's my compton config: https://github.com/Airblader/dotfiles-manjaro/blob/master/.compton.conf

It contains a few tricks that I'll happily explain later on when I have time. :)
Title: Re: tweaking i3
Post by: Airblader on 26. September 2015, 20:02:34
Here it goes!

Code: [Select]
shadow-exclude = [ "class_g" = 'Dmenu'" ]
This is to suppress shadows on dmenu which can look pretty good depending on how you use it.

Code: [Select]
shadow-exclude = [ "class_g" = 'i3-frame'" ]
Disables shadows on i3 frame windows. For example, if you want the window decorations to not cast shadows. It's a matter of taste, but you have the option. Note that this won't work until you have i3 4.11 or later.

Code: [Select]
shadow-exclude = [ "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ]
Disable shadows on hidden windows. Windows in i3 are hidden if they are in a stacked or tabbed container, but not currently the active one in that container. Setting this is really useful to prevent shadows "stacking up" in such containers – without this, the more tabs you have open, the stronger the shadow is (which is ugly).

Code: [Select]
shadow-exclude = [ "_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'" ]
Disable shadows on sticky windows, which is only available with i3 4.11 or later. Also a matter of taste, but I like sticky windows to be more plain.

Code: [Select]
opacity-rule = [
  "93:class_g = 'URxvt' && !_NET_WM_STATE@:32a",
  "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
  "75:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'"
];

This does a few things at once. With this config, my urxvt terminals are slightly transparent, but only if they aren't fullscreened, sticky or hidden. Any hidden window is made completely transparent, which is *really* cool, again, for stacked/tabbed containers. Try opening a browser and a transparent terminal in a stacked container and without this, you notice that the browser is visible behind the terminal. With this, the browser will be invisible. Also for stacked terminals this is super useful as text from the other terminal "shining through" can be really confusing.

Lastly, it gives sticky windows some transparency. Just because I like it as this way I have some view on what is underneath that window.
Title: Re: tweaking i3
Post by: oberon on 26. September 2015, 21:08:31
Cool! Thank you very much!
Would you by any chance also have an idea how to address Conky? It has its own window, but what is it (class? name?) Or how to find out? xprop doesn't work on conky... ???
Title: Re: tweaking i3
Post by: Airblader on 26. September 2015, 23:48:26
xprop does work, but it seems that when using override redirect, conky doesn't set any window properties (which is why the xprop output is empty). I don't see why that makes sense. You should file a bug against conky and explain that window hints are useful even if the window isn't managed (for example for compton, xdotool, …).

There's the workaround to manually set the class on the conky windows, but I failed to find a way to automate this (and I tried going through /proc/…/environ as well) because conky just sets absolutely nothing, which is ridiculous and wrong. And having to do it by hand on every boot isn't exactly a great option.

conky is clearly to blame here because it operates under a wrong assumption.
Title: Re: tweaking i3
Post by: Airblader on 26. September 2015, 23:54:52
I've reported it at https://github.com/brndnmtthws/conky/issues/150.
Title: Re: tweaking i3
Post by: Airblader on 27. September 2015, 00:07:14
One possible workaround in the meantime is to match

Code: [Select]
shadow-exclude = [ "override_redirect" = "true" ]
In fact you could also call this a solution. It can (and will) match more windows than just conky, but this could even be what a user wants.
Title: Re: tweaking i3
Post by: oberon on 27. September 2015, 00:45:41
One possible workaround in the meantime is to match
Code: [Select]
shadow-exclude = [ "override_redirect" = "true" ]
Brilliant, thank you so much for this! :)
Just the quotes are not right like that. It needs to be:
Code: [Select]
[ "override_redirect = true" ]
Title: Re: tweaking i3
Post by: oberon on 27. September 2015, 01:15:13
It can (and will) match more windows than just conky, but this could even be what a user wants.
Hm, in fact it seems to match all windows here ... ???
At least as soon as this is applied I don't get any shadows at all, while Compton does not throw any error about that line.
Also a strange thing happens: As soon as I do not exclude dmenu-shadows urxvt becomes a lot less transparent :o
Title: Re: tweaking i3
Post by: Airblader on 27. September 2015, 13:26:34
Yeah. I have no idea why this happens, to be honest. Maybe a compton bug? Or maybe due to i3's weird ways of doing framing? This works for me, but of course matches differently:

Code: [Select]
"override_redirect = 1 && !WM_CLASS@:s"
Of course once conky resolves the bug, this stops working, though nothings stops you from already also matching on class_g = Conky.
Title: Re: tweaking i3
Post by: irenicus09 on 27. September 2015, 22:13:14
@oberon: I just saw your post, and I'm really happy to see that you took the initiative to get us going. I hope to contribute too from time to time and hopefully if we do well it might draw the attention of more i3 users.

 Thanks again oberon :)
Title: Re: tweaking i3
Post by: oberon on 27. September 2015, 23:38:41
Code: [Select]
"override_redirect = 1 && !WM_CLASS@:s"
Yes, that works! Brilliant, thanks! :)
Title: Re: tweaking i3
Post by: oberon on 28. September 2015, 12:47:42
Cool thing is that when you use a little bit longer shadows they are even visible for the 2px windowframes 8)

(http://imgur.com/td89COwl.png)

Awesome! ;D
So since I finally know how to shadow-exclude Conky ::) this can be included in the 15.09 release which is being built right now and I have also preconfigured a tiny bit of fading but commented out by default. I just like to show off how snappy and lightning fast this i3 is on manjaro 8)
Here's the new compton.conf (https://raw.githubusercontent.com/manjaro/manjaro-tools-iso-profiles/master/i3/i3-overlay/etc/skel/.config/compton.conf)
Title: Re: tweaking i3
Post by: Airblader on 28. September 2015, 13:02:48
Cool :) I'd really recommend putting my opacity rule for hidden windows in there as well. It's almost mandatory if you use shadows ;)
Title: Re: tweaking i3
Post by: oberon on 28. September 2015, 13:04:43
Ah. Damn, I forgot that :o ::)
Yes, will add it :)
Title: Re: tweaking i3
Post by: oberon on 29. September 2015, 07:49:51
Fixed it and the ISOs are currently uploading  8)
Btw, there was a little typo in shadow-exclude = [ "class_g" = 'i3-frame'" ]
One extra quote after class_g that needs to be left out! ;)

btw @Airblader, when is i3 4.11 to be expected and can we test it already? Is there a secret PKGBUILD somewhere?  >:D
Title: Re: tweaking i3
Post by: Airblader on 29. September 2015, 07:58:19
4.11 will ship very soon ;) You can always just use the next branch of i3. Releasing i3 just means merging that into master. So for example just install i3-git.
Title: Re: tweaking i3
Post by: oberon on 29. September 2015, 11:45:10
4.11 will ship very soon ;) You can always just use the next branch of i3. Releasing i3 just means merging that into master. So for example just install i3-git.
(http://oliviacunning.files.wordpress.com/2012/11/depositphotos_12221489_m.jpg)
Title: Re: tweaking i3
Post by: Airblader on 30. September 2015, 09:15:47
It has just been released. :)
Title: Re: tweaking i3
Post by: oberon on 30. September 2015, 12:13:22
It has just been released. :)
Supercool! 8)
I am already toggling sticky ;D
Code: [Select]
bindsym $mod+Shift+s sticky togglefun!
Congratulations and thanks, Airblader and everybody at i3!
Title: Re: tweaking i3
Post by: audiosl4ve on 13. October 2015, 18:58:56
hello folks first of all. I know i mught have couple of questions that are silly and can be found googleing but i tried and just well i can't somehow find them. So i need your help. I looked in all configs and didn't find what i was looking for or somehow missed that. So here we go :)

1. Can i somehow move my i3-bar on top?
2. Where can i configure i3-bar. What i want is to remove lan part from it and somehow fix battery status since it's not working (it says no battery all the time).
3. Where can i edit/remove conky's from desktop (the bottom left and top right ones)? .conkyrec is empty soo :S

That would be all for now. I know it might be silly but i'm still newbie to WMs. I edited configs a little to suite my tastes and added icons to workspaces but i want to do more! :D
here's a pic for you :)
Thanks a bunch!  ;D

(http://i.imgur.com/Rxpp7Jh.png)
Title: Re: tweaking i3
Post by: twodogsdave on 13. October 2015, 19:54:37
1) put i3 bar on top
put 'position top' in i3 config file under the 'bar' section.

2) look at your i3status.conf file
put a hash mark (#) in front of 'order' to not display a section.
ex: 
order += "cpu_usage"
# order += "load"
order += "disk /"
# order += "disk /home"
order += "wireless _first_"
order += "ethernet _first_"
order += "battery 0"
order += "tztime local"
# order += "ipv6"
# order += "run_watch DHCP"

3) uncomment the conky part in the i3 config file
# exec --no-startup-id ~/.conky/start_conky_grey

Hope this helps!
Title: Re: tweaking i3
Post by: audiosl4ve on 13. October 2015, 20:02:58
i would gladly say it helped but it didn't, even one bit xD

1. i searched my config too and i still haven't found something with bar and position. Here's my config: http://pastebin.com/Fcc1FD3V

2. searched im pcmanfm for i3status.conf and still couldn't find one. Am i that dumb or what? :O

3. it is uncommented like that and it still boots up. Well it's getting weird now xD

Thanks for your help tho
Title: Re: tweaking i3
Post by: oberon on 13. October 2015, 20:39:28
1. i searched my config too and i still haven't found something with bar and position. Here's my config: http://pastebin.com/Fcc1FD3V
The entry about i3bar starts in line 247 of your config
Remember that you have to reload the config to apply the settings (mod+Shift+c)
Quote
2. searched im pcmanfm for i3status.conf and still couldn't find one. Am i that dumb or what? :O
The default config is stored in /etc/i3status.conf. Best practice if you want to customize it is to copy and rename it to ~/.i3status.conf and edit that one. i3status will automatically use your custom file then.
Quote
3. it is uncommented like that and it still boots up. Well it's getting weird now xD
When I look at your config: only the grey conky is commented out! Comment out line 274 and conky will not start next time. With
Code: [Select]
pkill conkyyou can stop it right away in the current session :)
Title: Re: tweaking i3
Post by: audiosl4ve on 13. October 2015, 20:52:14
Thanks! I did what i needed with 1 and 2! Now for the 3rd one. I killed it manually but i want to kill only bottom one? Are they together as one conky? :D
Title: Re: tweaking i3
Post by: twodogsdave on 13. October 2015, 22:02:31
(http://i.imgur.com/Rxpp7Jh.png)

Hey, audiosl4ve.  Sorry, not too familiar with fonts, but I saw your config in pastebin and was wondering what font do I install to get my bar to look like yours (the workspace names)?  Thanks.
Title: Re: tweaking i3
Post by: audiosl4ve on 13. October 2015, 22:03:31
just copy paste icon from here to text editor and voila :)

http://fortawesome.github.io/Font-Awesome/cheatsheet/
Title: Re: tweaking i3
Post by: oberon on 15. October 2015, 02:17:25
Thanks! I did what i needed with 1 and 2! Now for the 3rd one. I killed it manually but i want to kill only bottom one? Are they together as one conky? :D
No, they are actually two separate conkies.
The scripts start_conky_grey and ..._green are located in /usr/bin/ There you can comment out the shortcut one :)
As you will see there, the conky config files live in /usr/share/conky/

have fun! :)
Title: Re: tweaking i3
Post by: Belemrys on 16. October 2015, 19:56:37
No, they are actually two separate conkies.
The scripts start_conky_grey and ..._green are located in /usr/bin/ There you can comment out the shortcut one :)
As you will see there, the conky config files live in /usr/share/conky/

have fun! :)

Worked perfectly for me! Why don't we get a conky manager? I feel like you include it in your Fluxbox ISO...
Title: Re: tweaking i3
Post by: paolo on 25. October 2015, 18:30:36
hello !
thanks to the suggestion of Oberon and Twodogsdave I make some small modification to my laptop... but my laptop can use 2 battery   ::)
I make a modification in etc/i3status.conf but the first battery is showed, and for the second battery I can only see ¨No battery¨
Code: [Select]
# 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 = yes
        interval = 5
color_good = "#2ECC71"
        color_bad = "#E74C3C"
# color_degraded = " "
}

order += "cpu_usage"
# order += "load"
order += "disk /"
# order += "disk /home"
order += "wireless _first_"
order += "ethernet _first_"
order += "battery 1"
order += "battery 2"
order += "tztime local"
# order += "ipv6"
# order += "run_watch DHCP"
# order += "run_watch VPN"

cpu_usage {
format = " cpu  %usage "
}
load {
format = " load %1min "
# max_threshold = 0.3
}
disk "/" {
# format = " hdd %avail "
format = " ⛁ %avail "
}
disk "/home" {
format = " /home %avail "
}
wireless _first_ {
# format_up = "W: (%quality at %essid) %ip"
format_up = "  %essid %quality "
format_down = " no wlan "
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = " lan: %ip %speed "
format_down = " no lan "
}
battery 1 {
# format = "%status %percentage %remaining %emptytime"
format = " %status %percentage"
format_down = "No battery"
last_full_capacity = true
integer_battery_capacity = true
# status_chr = ""
status_chr = "⚡"
status_bat = ""
# status_bat = "bat"
# status_bat = "☉"
# status_full = ""
status_full = "☻"
        low_threshold = 15
threshold_type = time
}
battery 2 {
# format = "%status %percentage %remaining %emptytime"
format = " %status %percentage"
format_down = "No battery"
last_full_capacity = true
integer_battery_capacity = true
# status_chr = ""
status_chr = "⚡"
status_bat = ""
# status_bat = "bat"
# status_bat = "☉"
# status_full = ""
status_full = "☻"
        low_threshold = 15
threshold_type = time
}
tztime local {
#        format = "%Y-%m-%d %H:%M:%S"
format = " %d.%m. %H:%M "
}

# run_watch DHCP {
#         pidfile = "/var/run/dhclient*.pid"
# }
# run_watch VPN {
#         pidfile = "/var/run/vpnc/pid"
# }
As you can see in the file the batterys are called ¨ battery 1¨ e ¨battery 2¨, in the screeshot in xfce-battery-settings the batterys are called ¨Battery_BAT1¨ e ¨ Battery_BAT0¨  :o
If in the file I write ¨battery 0¨ i3bar show only 1 battery
Can someone help me please ?


Title: Re: tweaking i3
Post by: oberon on 25. October 2015, 21:57:56
So if you use "battery 0" and "battery 1" what do you get exactly?
Title: Re: tweaking i3
Post by: paolo on 26. October 2015, 08:54:22
if I use battery 0 and battery 1 in i3bar is showed only one battery whit his percentage
Edit: typo
Title: Re: tweaking i3
Post by: paolo on 27. October 2015, 14:20:55
Bump!  :)

I edit my 2 latest post because of some typo
Title: Re: tweaking i3
Post by: paolo on 02. November 2015, 16:08:43
cough cough ... bump  :D
Title: Re: tweaking i3
Post by: audiosl4ve on 02. November 2015, 19:40:06
cough cough ... bump  :D

i can't see baterry % at all :P
Title: Re: tweaking i3
Post by: mxx on 02. November 2015, 20:25:42
i can't see baterry % at all :P
You probably have to add path to i3status.conf. Usually the battery path is something like /sys/class/power_supply/BAT1/uevent  but it can be BAT0. Try
Code: [Select]
cat /sys/class/power_supply/BAT1/uevent
and
Code: [Select]
cat /sys/class/power_supply/BAT0/uevent
to see which one works.
Title: Re: tweaking i3
Post by: audiosl4ve on 03. November 2015, 12:56:49
okay so i've ran and it seems that BAT0 is the one that is active or right. So i've went into /etc/i3status.conf and changed baterry 1 to 0, restarted i3 but nothings changed. Do i need to put the whole path to battery or?
here's pastebin (http://pastebin.com/XMN4sBL3)
Title: Re: tweaking i3
Post by: sebrei on 05. November 2015, 18:30:22
You have to change it in the "order section" of your config file as well. I made the same mistake.... ;-)
Title: Re: tweaking i3
Post by: audiosl4ve on 05. November 2015, 20:06:16
umm what config, i don't get it  :o
Sry i'm little new to all this, although i really love i3  8)
Title: Re: tweaking i3
Post by: joshuadunamis on 05. November 2015, 20:31:02
I taken, renamed and placed at the right position, the most files from https://github.com/manjaro/manjaro-tools-iso-profiles/tree/master/i3/i3-overlay/etc/skel

Now I can login on i3 and it works almost fine. I have two issues:

1) The MOD+Enter do not open a terminal.. there is only a busy cursor and nothing happens!!!

2) If I close my laptop's lid it doesn't go in standby mode.. after I re-open I have righti lock screen and I have to put my password (that's ok)

What have I to change in config files?
Title: Re: tweaking i3
Post by: gordy on 05. November 2015, 21:45:06
joshuadunamis: check your config under terminal. The official release uses rxvt terminal. If you are using something else, mod+enter wont open terminal. If that is the case replace 'i3-sensible-terminal' with the terminal you use.
Title: Re: tweaking i3
Post by: oberon on 05. November 2015, 21:49:07
Right. The latest release actually launches a little script for urxvt to use the daemon.
Just leave the config as it is and create an executable file in /usr/local/bin named terminal, containing this:
Code: [Select]
#!/bin/sh
urxvtc $@
if [ $? -eq 2 ]; then
  urxvtd -q -o -f
  urxvtc $@
fi

8)
Title: Re: tweaking i3
Post by: joshuadunamis on 05. November 2015, 21:49:16
joshuadunamis: check your config under terminal. The official release uses rxvt terminal. If you are using something else, mod+enter wont open terminal. If that is the case replace 'i3-sensible-terminal' with the terminal you use.

Thanks gordy, I was just writing I did that a few of minutes ago and now it works well. In the config file there was "terminal" and I changed in "urxvt". It now works!!!

Now I'm finding the solution of the lid problem... I am looking in the official i3 guide ...
Title: Re: tweaking i3
Post by: joshuadunamis on 05. November 2015, 21:57:49
Right. The latest release actually launches a little script for urxvt to use the daemon.
Just leave the config as it is and create an executable file in /usr/local/bin named terminal, containing this:
Code: [Select]
#!/bin/sh
urxvtc $@
if [ $? -eq 2 ]; then
  urxvtd -q -o -f
  urxvtc $@
fi
Ok thanks also to you oberon for this suggest and your great job on Manjaro i3!!! Yes I corrected now as you suggested and it works!
8)
Title: Re: tweaking i3
Post by: joshuadunamis on 05. November 2015, 22:24:07
I'm confused about the suspend-on-lid-closed issue.. In the previous configuration it worked. I found something about some similar issues on Ubuntu and i3 but solutions are very intrusive like "insert strange voices on systemd, or acpi". On Plasma 5 it works perfectly... on i3 it worked too before this update (and my previous config files). If I do $MOD+0 and then press "s" it go right in suspend mode!!! If I close the lid it does not it. But when I reopen it needs my password, so it recognize the lid closing. Why do not go in suspend mode anymore??
Title: Re: tweaking i3
Post by: joshuadunamis on 05. November 2015, 22:41:53
UPDATE: I forgotten to download and put on right place https://raw.githubusercontent.com/manjaro/manjaro-tools-iso-profiles/master/i3/i3-overlay/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml as I noticed after a while! Now suspend mode on lid closing works again.. yeah.. but now when I open again my lid it doesn't query me for my password..  >:D
Ok let's go to this issue problem.. the awersome of Linux.. Whether early or later the solution arrives...!!!
Title: Re: tweaking i3
Post by: joshuadunamis on 05. November 2015, 23:03:17
SOLVED: I simply found the solution on the ArchWiki:

https://wiki.archlinux.org/index.php/Xfce#Laptop_lid_settings_ignored

with this command:

Code: [Select]
$ xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false
Now the behaviour is perfect: when my laptop is on battery and I close the lid it goes in suspend mode and then asks me the password. When it is on AC it doesn't go in suspend mode (excet if I send it to..) and when I open the lid it asks the password too!

Everything solved. Now I do not disturb again. Those posts are for anyone meeting the same issues! Great appreciation for Manjaro Linux both in KDE Plasma 5 and in the i3 environment!!!
Title: Re: tweaking i3
Post by: paolo on 11. November 2015, 19:36:28
today I understand my error! in the files I must change the batteries names in "0" and"1" ...
Now in i3bar are showed 2 batteries percentage  :D
Thanks to you all for the help

Title: Re: tweaking i3
Post by: R.R.E.Designs on 11. November 2015, 20:19:44
Hello everyone.

I was thinking it would be great to expand the conky, since most computers today are at least dual core.

How could I do that? I have no idea about LUA scripting, but it shouldn't be too different to Python, I guess.  :-\
Title: Re: tweaking i3
Post by: Os Miridium on 23. December 2015, 14:36:22
Maybe I'm stupid for not finding any posts about this, but I just can't, so here's my qestion:
In Manjaro i3 the font that is used is currently specified in several different places in the i3 config file, many instances on the conky, the i3bar config and with lxappearence for applications and suchlike. For comfort, elegance and consistency I would like to be able to have a central point (preferably the i3 config) where I can easily chenge the font for i3bar and conky (lxappearance need not be included in this control). It should be possible to define a global "default font" variable in the i3 config, which is then passed on the conky and i3bar, right. I was wandering: has anyone done that already or is there a good reason why not? I don't want to reinvent the wheel but if there are no existing solutions out there I will try to construct a solution for this. Anyone think thats a good/bad idea?

Os
Title: Re: tweaking i3
Post by: Airblader on 23. December 2015, 17:59:31
Unfortunately conky uses a different font format than i3 (which just uses pango, if pango is used) and so on. Also, if specified in the i3 config, you can only use it for anything starting from within there, which applies to i3bar and conky (if conky is started from there, I don't use manjaro-i3), but does not apply to the GTK settings and other places.
Title: Re: tweaking i3
Post by: Chrysostomus on 24. December 2015, 04:10:50
I think idea is good, but execution is difficult due to the syntax differences. However, writing font switcher menu that changes all those locations would not be very difficult. I have already a script that does similar to gtk themes. It is included in appearance menu of bmenu package. You can see the code here, it is very simple:
https://github.com/Chrysostomus/bmenu/blob/master/bin/appearance-menu (https://github.com/Chrysostomus/bmenu/blob/master/bin/appearance-menu)
Look at the choose_font and set_font functions. They have most things you need. You just need to one more function to convert the format for conky, and add few new lines in set_font functions.

This should
Title: Re: tweaking i3
Post by: Os Miridium on 24. December 2015, 12:29:56
Hi there,

Airblader: Not affecting GTK settings may even be a good thing in this case, because I often use one font for conky, i3bar etc (e.g. DejaVu Sans Mono for a "technical feeling") and another one (which is compatible but better suited for "normal text", like DejaVu Sans Condensed) for the GTK theme and I would think that others may go similar ways. Different font formats should not be a problem, should they? The Font Name format is the same, correct? E.g. "DeJaVuSansMono". And if I just create a variable like "DefaultFont" in the i3 config (from where i3bar an conky are indeed called), and pass that on to i3bar and conky, then it should be possible to change the font in all those places. I just have to find out how to pass variables correctly between those config files. GTK font controll in Manjaro i3 is done with lxappearence, which I think is quite good.

Chrysostomus: Hm, interesting alternative. Not really what I had in mind but that opens the possibility to changeing GTK settings as well in a way that all fonts are not necessarily the same but all compatible, like "all Dejavu Sans" but Mono for conky and Condensed in GTK. I'll have to put some thought and experimentation into getting that to work consistently but I'll give it a try. I'm affraid that working with LaTeX for years has made me a bit of a typesetting/font consistency nazi...

Happy holidays,
Os
Title: Re: tweaking i3
Post by: Chrysostomus on 24. December 2015, 14:51:20
Well personally I would keep gtk font changing separate from conky and i3bar. I like to use Terminus or Peep (or some other good bitmap font) for my panels and terminals, but gtk applications pretty much need xft fonts to look good. Just pointed out that the same code could easily be adapted to change different files. Just change the file name and see what is the actual line you wish to edit, and edit the searched text in command to match that.

One could also make it into longer dialog with
1) choose font (fuzzy find with fzf)
2) choose size
3) Do you want to set this font for gtk2?
4) Do you want to set this font for gtk3?
5) Do you want to set this font for i3bar?
6) Do you want to set this font for conky?

or something like that. Or if you want gui, it could be done with dmenu/zenity instead.
Title: Re: tweaking i3
Post by: oberon on 10. January 2016, 00:28:29
I was thinking it would be great to expand the conky, since most computers today are at least dual core.
How could I do that? I have no idea about LUA scripting, but it shouldn't be too different to Python, I guess.  :-\
Have a look at the template config file: /usr/share/doc/conky-1.10.1_pre/conky.conf
All Conky objects are listed and explained here: http://conky.sourceforge.net/variables.html
In the i3-edition you have conky-i3 installed by default. It is started from a tiny script: /usr/bin/start_conky_grey
and its config files reside in /usr/share/conky
Hope that helps! :)
Title: Re: tweaking i3
Post by: torvic9 on 13. January 2016, 11:07:38
Isn't /usr/share/conky a weird location to place a config file?
I was looking everywhere for the conky config in the most common locations, like /etc, /etc/skel, or /home/user/.config, but I didn't think of looking in /usr/share.
Is there a technical explanation why the config is located in there?
Title: Re: tweaking i3
Post by: oberon on 14. January 2016, 10:42:24
You are right. It is a weird place :P /etc/xdg/conky would probably the destination it should go.
conky-i3 being a package, the config cannot be installed on user level, /etc/skel will not work because of possible file conflicts with stuff originally installed by manjaro-tools (and in the future by the new desktop-settings packages).
But in any case, we can not change it now via package update, because it would break the existing installs with the start-scripts pointing to the current strange location ... So, next time! ;)
Title: Re: tweaking i3
Post by: Nick440 on 20. January 2016, 07:41:18
I've wondering if anyone knows of a way to add shortcuts to dmenu/rofi?
I tend to use a few chrome apps on all of my platforms (Inbox, Sunrise Calendar, Todoist) and usually would have shortcuts to these apps in my dock or on the desktop. I now have them in my /Desktop/ folder, but can't find a way to launch them with Rofi.
In a perfect world I could launch these apps with Rofi and have them open in a pre-determined workspace!
(Actually, native linux apps would be even better!)

Am I missing something simple?
Title: Marking i3 windows on the fly for quick navigation
Post by: boruch on 18. March 2016, 10:56:15
FYI, Here's a feature that I didn't catch existed in i3 - marking windows on the fly for the current session. Discussed here: http://www.slackword.net/?p=657
Title: Re: tweaking i3
Post by: R.R.E.Designs on 20. April 2016, 06:45:10
I finally managed to add each core % separate. And also changed the font. Couldn't be more satisfied.  8) 8) 8) 8) 8) 8) 8)


(http://i.xomf.com/bdwll.png)