You are not logged in.

#1 2015-11-19 01:31:38

hhh
Meep!
Registered: 2015-09-17
Posts: 8,734
Website

Awesome Wm Tips & Help

I just started using it. Awesome window manager, it does both floating and tiling layouts, and uses human-readable lua files. It's pretty awesome. A few tips to get going will help, hopefully some experts will chime in and we can really get things rolling.

In Bunsen, install it via a terminal...

sudo apt install awesome

For some reason, the session *.desktop file for awesome is de-activated OOTB in jessie. Fix it by editing (as superuser) /usr/share/xsessions/awesome.desktop and set NoDisplay to false...

NoDisplay=false

Now you have an awesome session in lightdm, but it's pretty sparse. Let's set some autostart programs. First copy the default lua file to your home directory, create the folder if necessary. Copy /etc/xdg/awesome to ~/.config/awesome. Now edit ~/.config/awesome/rc.lua and logout to see the changes. Autostart by adding lines at the end of the file. I'm using jessie Xfce, change this for BunsenLabs Openbox (lxappearance instead of xfsettingsd, for example)...

-- autostart
awful.util.spawn_with_shell("xfce4-power-manager")
awful.util.spawn_with_shell("nitrogen --restore")
awful.util.spawn_with_shell("compton")
awful.util.spawn_with_shell("xfsettingsd")
awful.util.spawn_with_shell("xfce4-volumed")
awful.util.spawn_with_shell("syndaemon -i .5 -K -t -R -d")
awful.util.spawn_with_shell("audacious")
awful.util.spawn_with_shell("light-locker")

Offline

#2 2015-11-19 01:36:44

hhh
Meep!
Registered: 2015-09-17
Posts: 8,734
Website

Re: Awesome Wm Tips & Help

That should give you the idea. Set all the paths in ~/.config/awesome/rc.lua to your home directory so you can start customizing themes.

For some customizations I've had to directly edit /usr/share/awesome (naughty notification tweaks, for example), is there a way to redirect the path to a local folder so it doesn't get overwritten by a program update?

Offline

#3 2015-11-19 01:41:13

hhh
Meep!
Registered: 2015-09-17
Posts: 8,734
Website

Re: Awesome Wm Tips & Help

Oh yeah, pic or it didn't happen.

Screenshot_11182015_05_04_03_PM.jpg link

Offline

#4 2015-11-19 08:41:23

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: Awesome Wm Tips & Help

Thanks, hhh.

Lua... ouch... I don't feel it like specially human readable, LOL, anyway. I'll give it a try.

I love this command already wink

awful.util.

Offline

#5 2015-11-19 08:46:30

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: Awesome Wm Tips & Help

BTW, this might help too.

Thanks to mrneilypops for the hint.

Offline

#6 2015-11-19 19:02:16

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Awesome Wm Tips & Help

hhh wrote:

For some customizations I've had to directly edit /usr/share/awesome (naughty notification tweaks, for example), is there a way to redirect the path to a local folder so it doesn't get overwritten by a program update?

Use the Beautiful lau library and copy the theme to ~/.config/awesome/themes/<name of theme> and call the theme_path in your rc.lua


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#7 2015-11-19 21:53:13

hhh
Meep!
Registered: 2015-09-17
Posts: 8,734
Website

Re: Awesome Wm Tips & Help

Right, I've done that for the theme. But can I just copy /usr/share/awesome/lib to ~/.config/awesome as well in order to locally edit naughty.lua?

Offline

#8 2015-11-19 22:06:08

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Awesome Wm Tips & Help

^ I have no idea, sorry.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#9 2015-11-19 22:57:45

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,119

Re: Awesome Wm Tips & Help

hhh wrote:

I just started using it. Awesome window manager, it does both floating and tiling layouts, and uses human-readable lua files. It's pretty awesome. A few tips to get going will help, hopefully some experts will chime in and we can really get things rolling.

<snip>

Autostart by adding lines at the end of the file. I'm using jessie Xfce, change this for BunsenLabs Openbox (lxappearance instead of xfsettingsd, for example)...

-- autostart
awful.util.spawn_with_shell("xfce4-power-manager")
awful.util.spawn_with_shell("nitrogen --restore")
awful.util.spawn_with_shell("compton")
awful.util.spawn_with_shell("xfsettingsd")
awful.util.spawn_with_shell("xfce4-volumed")
awful.util.spawn_with_shell("syndaemon -i .5 -K -t -R -d")
awful.util.spawn_with_shell("audacious")
awful.util.spawn_with_shell("light-locker")

If I'm not mistaken, this method of autostarting apps will launch the app every time you restart/reconfigure awesome with the "modkey-control-r" (default) keybinding which isn't always convenient.

Awesome wm wiki - tips for autostarting apps


You must unlearn what you have learned.
    -- yoda

Offline

#10 2015-11-20 12:37:46

hhh
Meep!
Registered: 2015-09-17
Posts: 8,734
Website

Re: Awesome Wm Tips & Help

Confirmed, thanks for the tip PackRat! Using a "run_once" script is described on the Awesome Wiki as well as other methods of autostarting programs.

http://awesome.naquadah.org/wiki/Autostart

I just disabled the restart key-combo in my rc.lua. tongue

Offline

#11 2015-11-20 12:49:25

hhh
Meep!
Registered: 2015-09-17
Posts: 8,734
Website

Re: Awesome Wm Tips & Help

hhh wrote:

But can I just copy /usr/share/awesome/lib to ~/.config/awesome as well in order to locally edit naughty.lua?

Doesn't seem to work. I'll just have to backup my changes.

Offline

#12 2015-11-20 17:59:33

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,119

Re: Awesome Wm Tips & Help

^ you mean it didn't see your edits?

you may need to change the appropriate lines like -

local naughty = require("naughty")

in your rc.lua to reflect the path to the new location.


You must unlearn what you have learned.
    -- yoda

Offline

#13 2015-11-21 00:22:59

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,119

Re: Awesome Wm Tips & Help

@hhh -

Is the awesome-extra package available in the debian stable repos? Worth an install if they are. The package provides a bunch of widgets to use with awesome. The most popular apppear to be the vicious widgets. Allows the user to output some system information to the wibox.

awesome wm with vicious widgets for system information -

November_1448065180_1600x900.jpg

note that the syntax for the widgets is different for awesome 3.4 and 3.5


You must unlearn what you have learned.
    -- yoda

Offline

#14 2016-06-18 08:34:45

ohnonot
...again
Registered: 2015-09-29
Posts: 4,165
Website

Re: Awesome Wm Tips & Help

i just started using awesome; i quite like it, but i find hard to find some sort of definite documentation. everything seems to be just floating around, and even the ever so eloquent archwiki is rather sparse this time.

https://wiki.archlinux.org/index.php/Awesome
http://new.awesomewm.org/apidoc/documen … AQ.md.html
https://awesomewm.org/wiki <== awesome devs say that this is largely outdated and to be replaced by - what?
http://new.awesomewm.org/doc/
https://wiki.gentoo.org/wiki/Awesome

this is all the useful stuff i found; what i wish for is something more tutorial-like, or a comprehensive list of features and how to use them...
and up-to-date, if possible?

Offline

#15 2017-07-30 14:00:27

timorton
New Member
Registered: 2017-07-30
Posts: 2

Re: Awesome Wm Tips & Help

I cant get awesome wm to work...

I installed awesome with sudo apt install awesome, then set NoDisplay to false in /usr/share/xsessions/awesome.desktop

but when I log out and in again, Openbox is still the wm and I dont seem to have the option to change it at the login screen, F1 just changes the font size...

Does anyone know how I can set the default wm to be awesome? Thanks

Offline

#16 2017-07-30 14:40:09

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Awesome Wm Tips & Help

timorton wrote:

Does anyone know how I can set the default wm to be awesome?

Revert your changes to the .dekstop file and instead select Awesome from the LightDM (login) screen — use the spanner icon at the top-right to change the WM (or DM).

If you prefer to run without a display manager then use:

sudo update-alternatives --config x-window-manager # maybe x-session-manager as well

Running `startx` or `xinit` will then load Awesome automatically (ie, without the need for ~/.xinitrc).


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#17 2017-07-30 16:48:40

timorton
New Member
Registered: 2017-07-30
Posts: 2

Re: Awesome Wm Tips & Help

I found out how to select awesome wm at the login screen, but it is bare. I still want things like Tint2, Conky and the right-click menu. I ran Tint2 and Conky but the settings are different, and Im not sure how to get the right-click menu back. Also these dont run from login, I have to start them manually.

Offline

#18 2017-07-30 17:23:13

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Awesome Wm Tips & Help

timorton wrote:

I still want things like Tint2, Conky and the right-click menu.

Autostart details are in the OP, please follow those instructions or use ~/.xsession, as I already explained.

See also https://wiki.archlinux.org/index.php/aw … n_programs

Use bl-conky-session --autostart & bl-tint2-session rather than tint2 & conky, as seen in the openbox autostart file:

https://github.com/BunsenLabs/bunsen-co … /autostart

The Awesome window manager has it's own right-click menu that can be configured as you want (no pipemenus though):

https://awesomewm.org/doc/api/libraries/menubar.html

https://awesomewm.org/apidoc/libraries/awful.menu.html

Last edited by Head_on_a_Stick (2017-07-30 18:33:43)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

Board footer

Powered by FluxBB