manjaro awesome too large xfce icons

I installed manjaro awesome and everything works fine, except that I have very large and colorful icons which apparently come from the xfce desktop environment.

Also, I believe, they force a larger height of the entire upper bar than necessary.

How can I change them to custom png images? I tried setting path for theme.widget-vol myself but that didnt work =/

right click on the applet that holds those icons,
you should be able to go to settings and change the size

i had the same issue when running on intel gpu, i adjusted it by setting a dpi option line to a xorg configuration.

i never even considered this and im kicking myself for it, good observation. and even more strange, if i start awesome on the intel gpu i get a different set of icons than i do if i start awesome on the nvidia. :man_facepalming:

the intel looking larger than on nvidia is a normal occurance so it never even crossed my mind. (still doesnt explain the icons being different) :man_shrugging:

i'll take a look now and see if scaling down the icon size has an effect on the bar size which i think your spot on with that one. :+1:

I think you mean the system tray in the upper right corner. That is not a part of xfce, but the system tray implementation of awesome in a wibar, if you set the size of the wibar, the icons of the systemtray are scaled accordingly. At least thats the case in my case.
You can do that with beautiful.wibar_height = <size> (e.g. I use for <size> 24 for 24 pixels) before you create the wibar (best you do this at the theme definitions)
https://awesomewm.org/doc/api/classes/awful.wibar.html#beautiful.wibar_height
There is also a forced_height property in the api, but I have to look up how that is set :thinking: : https://awesomewm.org/apidoc/widgets/wibox.widget.systray.html

1 Like

im apparently blind, i looked for something like this and couldnt find it :man_facepalming: . theres still a couple things i cant really figure out, but wibar height = :ballot_box_with_check: thanks.

1 Like

thank you guys. So I have to insert this line myself then? It does not exist already in my config.

Also, what about the icons themselves? I have a minimalistic set of symbols from my old config that I would like to reuse, if only I knew how. awesome seems to grap stuff from the /usr/share/awesome directories e.g. for the screen layout images in the upper right corner while I managed to set the wallpaper to a file located within the local awesome folder, which is where also my desired icon set resides

My theme file (cesious) is posted below

--[[
    Cesious Awesome WM theme
    Created by Culinax
    Modified by Thanos Apostolou
--]]

local themes_path = require("gears.filesystem").get_themes_dir()
theme = {}

theme.font              = "Noto Sans Regular 10"
theme.notification_font = "Noto Sans Bold 14"

theme.bg_normal   = "#1A1A1A"
theme.bg_focus    = "#1A1A1A"
theme.bg_urgent   = "#1A1A1A"
theme.bg_minimize = "#101010"
theme.bg_systray  = theme.bg_normal

theme.fg_normal   = "#ffffff"
theme.fg_focus    = "#00a1c6"
theme.fg_urgent   = "#af012b"
theme.fg_minimize = "#ffffff"

theme.border_width  = 1
theme.border_normal = "#000000"
theme.border_focus  = "#00a1c6"
theme.border_marked = "#16A085"

theme.titlebar_bg_focus = theme.bg_normal
theme.titlebar_bg_normal = theme.bg_normal
theme.titlebar_fg_focus = theme.bg_normal

theme.hotkeys_modifiers_fg = "#2EB398"

theme.widget_vol = themes_path .. "cesious/taglist/squarefw.png"
--theme.widget_ac = themes_path .. "cesious/icons_powerarrow-dark/ac.png"
--theme.widget_battery = themes_path .. "cesious/icons/mem.png"

theme.tasklist_disable_icon = true
theme.tasklist_plain_task_name = true

-- Display the taglist squares
theme.taglist_squares_sel   = themes_path .. "cesious/taglist/squarefw.png"
theme.taglist_squares_unsel = themes_path .. "cesious/taglist/squarew.png"

theme.wallpaper = "~/.config/awesome/themes/cesious/awesome-scrabble.png"

-- You can use your own layout icons like this:
theme.layout_fairh      = themes_path .. "cesious/layouts/fairh.png"
theme.layout_fairv      = themes_path .. "cesious/layouts/fairv.png"
theme.layout_floating   = themes_path .. "cesious/layouts/floating.png"
theme.layout_magnifier  = themes_path .. "cesious/layouts/magnifier.png"
theme.layout_max        = themes_path .. "cesious/layouts/max.png"
theme.layout_fullscreen = themes_path .. "cesious/layouts/fullscreen.png"
theme.layout_tilebottom = themes_path .. "cesious/layouts/tilebottom.png"
theme.layout_tileleft   = themes_path .. "cesious/layouts/tileleft.png"
theme.layout_tile       = themes_path .. "cesious/layouts/tile.png"
theme.layout_tiletop    = themes_path .. "cesious/layouts/tiletop.png"
theme.layout_spiral     = themes_path .. "cesious/layouts/spiral.png"
theme.layout_dwindle    = themes_path .. "cesious/layouts/dwindle.png"
theme.layout_cornernw   = themes_path .. "cesious/layouts/cornernw.png"
theme.layout_cornerne   = themes_path .. "cesious/layouts/cornerne.png"
theme.layout_cornersw   = themes_path .. "cesious/layouts/cornersw.png"
theme.layout_cornerse   = themes_path .. "cesious/layouts/cornerse.png"

--theme.awesome_icon = themes_path .. "cesious/icons/manjaro64.png"

-- Define the icon theme for application icons. If not set then the icons 
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
theme.icon_theme = "Arc-Maia"

return theme

update:
weird! I changed the wibar height to 20 and the icons do not only change in size but are also displayed now in a simplistic white. I can live with that =) but dont understand it

That is because they are derived from the set global icon-theme. An icon-theme can have different icons for different pixel-sizes (e.g. the folder-icon of the papirus-dark theme is white for anything smaller than 22 pixels and colored above)

They are derived from the icon-theme. I think you could change them by using xdg-icon-resource to add your custom icons for your user: https://wiki.archlinux.org/index.php/Icons However, I have never done this and do not know how well this works and what additionally needs to be done.
An alternative could also be to create a custom icon theme in ~/.icons or ~/.local/share/icons, which inherits the theme you would like to use and overwrites the icons you want to change.
Here, is what I found on creating icon-themes and the explanation for inheritance:
https://www.linux.org/threads/creating-icon-themes.11826/
https://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#file_formats

@Sewing31 , you can grab icon packs and place them in /usr/share/icons

~ >>> ls -la /usr/share/icons                                                                           
total 144
drwxr-xr-x  25 root root  4096 Aug 22 17:23 .
drwxr-xr-x 329 root root 12288 Aug 22 07:42 ..
drwxr-xr-x  15 root root  4096 Mar 23 14:11 Adwaita
drwxr-xr-x  12 root root  4096 Jul 12 17:27 Arc
drwx------   6 dglt dglt  4096 Aug 22 17:27 candy-icons
drwxr-xr-x   2 root root  4096 Mar 17 15:48 default
drwxr-xr-x  11 root root  4096 Jul  7 23:27 Enlightenment-X
drwxr-xr-x   5 root root  4096 Aug 18 07:03 ePapirus
drwxr-xr-x  10 root root  4096 Jul 12 17:27 Faba
drwxr-xr-x  10 root root  4096 Apr 16 10:19 gnome
drwxr-xr-x  26 root root  4096 Aug 22 06:42 hicolor
drwxr-xr-x   9 root root  4096 Nov  7  2018 HighContrast
-rw-r--r--   1 root root 12989 Mar 17  2016 logo_green.png
-rw-r--r--   1 root root 10957 Mar 17  2016 logo_grey.png
-rw-r--r--   1 root root   626 Mar 17  2016 logo_solarized.png
drwxr-xr-x  20 root root  4096 Jul 12 17:27 Moka
drwxr-xr-x  10 root root  4096 Aug 18 07:03 Papirus
drwxr-xr-x   2 root root  4096 Aug 22 16:55 Papirus-Adapta-Maia
drwxr-xr-x   2 root root  4096 Jul 27 08:21 Papirus-Adapta-Nokto-Maia
drwxr-xr-x   6 root root  4096 Aug 18 07:03 Papirus-Dark
drwxr-xr-x   3 root root  4096 Jul 27 08:21 Papirus-Dark-Maia
drwxr-xr-x   5 root root  4096 Aug 18 07:03 Papirus-Light
drwxr-xr-x   3 root root  4096 Jul 27 08:21 Papirus-Light-Maia
drwxr-xr-x   8 root root  4096 Jul 27 08:21 Papirus-Maia
drwxr-xr-x   3 root root  4096 Mar 17 15:42 scalable
drwxr-xr-x   3 root root  4096 Mar 20 15:09 ubuntu-mono-dark
drwxr-xr-x   3 root root  4096 Nov  7  2018 xcursor-breeze
drwxr-xr-x   3 root root  4096 Nov  7  2018 xcursor-breeze-snow
~ >>>      

each folder is it's owm icon theme, theres icons themes in the aur and other places

thank you guys

2 Likes

Forum kindly sponsored by Bytemark