awesome-wm

How to update time in lua to reflect system timezone change during execution?

夙愿已清 提交于 2019-12-13 14:33:14
问题 Problem I want to modify the awful.widget.textclock widget in awesome-wm to immediately reflect a change in the system timezone. This widget and all of the awesome-wm config is written in lua. Currently, if the system timezone is changed the widget continues to display the time according to the timezone set at runtime. The widget uses the os.time function to retrieve the time, but this does not match the system time. Solution as provided below lua script: local tz=require"luatz"; require

Let awesome wm use only a part of the screen

倖福魔咒の 提交于 2019-12-13 07:03:51
问题 Is there a way to let awesome wm use only a certain part of the screen? say, from pixel 50x50 to pixel 500x500. The rest should be just black and totally unused. In other words this would be imitating having a smaller display or so. would be nice to hear some advice. 回答1: I believe all window managers take over the entire X server display. However, you could create a nested X server inside a window and run Awesome inside of that. There is an example of this on the Awesome wiki. 回答2: Yes,

How to make mouse events propagate to widgets in `scroll` containers?

泄露秘密 提交于 2019-12-13 03:53:45
问题 So I know that on the official documentation it says Please note that mouse events do not propagate to widgets inside of the scroll container. But what I'm trying to do is exactly that: How can I make mouse events propagate through this widget? Is there a way? What I'm trying to do is make a "to-do app" built into awesome. But for that I actually need to have items (which will be the tasks I want to get done) So I want to have a menu with widgets inside it that are rows, so that I can use it

Always-on-top window and keeping focus, on AwesomeWM

孤人 提交于 2019-12-12 10:58:12
问题 I am running a script which creates and closes several windows, hence, I added to my rc.lua a way to keep the window where I am working always on top: awful.key({ modkey, "Control" }, "space", function(c) awful.client.floating.toggle() c.ontop = not c.ontop end), The problem is:when the new window is created, I lose the focus, which passes to the new window. Is there a way to make that the previous toggle not only keep the window on top, but also with the focus until I toggle it again? 回答1:

AwesomeWM client created/removed callback

隐身守侯 提交于 2019-12-12 03:13:29
问题 I am using awesome WM and I want to run a lua function after a client is created/deleted. Specifically, I want to change the name of a tag to the name of one of the clients that are on the tag. I do this with a timer, but I think the best way to do this would be to register a callback function to awesomeWM that it will invoke when a client is created/removed. Are there some hooks/callbacks that I can implement to tell awesome to do this for me? --------------------------------------------

How to make awesome wm look awesome?

我的未来我决定 提交于 2019-12-11 16:58:35
问题 I have awesome installed both on Ubuntu 17.10 and Debian 9. Awesome under Ubuntu looks like Ubuntu default theme; awesome under Debian looks like MATE (I have multiple window managers installed but it seems MATE is default). My questions are: If there would be no desktop environment installed, how awesome will look? Is it still be able to render gui applications? Let's say, I am interested in Arch Linux. Is it possible to make context menu look like default awesome menu? It is very fast and,

Awesome window manager doesn't react on clicks at toolbar when Caps Lock is on

喜欢而已 提交于 2019-12-10 20:23:27
问题 The title pretty much explains it. I use Caps Lock to change layouts, setting it with awful.util.spawn_with_shell("setxkbmap -layout 'us, ru' -option 'grp:caps_toggle'") in awesome's rc.lua, if that has anything to do with the issue. When Caps is on, neither tag tabs nor window tabs get selected when I click on them. Any ideas why is it this way? Update: Versions of dependencies. user@desktop:~$ dpkg -l | grep -E "(libc6)|(libcairo2)|(libdbus-1-3)|(libev4)|(libglib2.0-0)|(libimlib2)|(liblua5

Sample SDL program gives an empty window

给你一囗甜甜゛ 提交于 2019-12-09 19:12:16
问题 config: archlinux with awesome desktop environment I just installed sdl2, and tried to run this sample code: https://github.com/xyproto/hello_sdl2/blob/master/c%2B%2B/main.cpp The result is an empty window (I can see my console through it) in the middle of the screen. Even when I hit mod4+Enter, it doesn't tile up nicely with the others. Why is that? (I updated my system, reinstalled sdl2. I also couldn't find any relevant hit browsing google.) 回答1: All windowing systems require you to handle

Sample SDL program gives an empty window

笑着哭i 提交于 2019-12-04 14:19:47
config: archlinux with awesome desktop environment I just installed sdl2, and tried to run this sample code: https://github.com/xyproto/hello_sdl2/blob/master/c%2B%2B/main.cpp The result is an empty window (I can see my console through it) in the middle of the screen. Even when I hit mod4+Enter, it doesn't tile up nicely with the others. Why is that? (I updated my system, reinstalled sdl2. I also couldn't find any relevant hit browsing google.) All windowing systems require you to handle messages by pumping a message queue. See this chapter for some SDL specific examples but the essence is

Awesome WM: what do the icons of the title bar mean?

落爺英雄遲暮 提交于 2019-12-03 02:32:47
can someone tell me what is the meaning of the icons in the title bar? A rocket, a plus, a star.. Im very curious. Look at the file names of the icons. The first component describes the meaning: https://github.com/awesomeWM/awesome/tree/master/themes/default/titlebar The plus is for sticky windows. These are windows which are visible on all tags (normally windows are only visible if one of their tags is selected). The star is for ontop. These windows ignore the normal stacking order and are ontop of everything else. The rocket is for maximized windows. These windows ignore the current layout