Giter VIP home page Giter VIP logo

awesome-wm-nice's People

Contributors

mut-ex avatar pablo1107 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

awesome-wm-nice's Issues

Gdk.lua bug - Nice not working

Hello, I'm running the awesome-git version with nice (or at least, trying to), but unfortunately the following error occurs:

/usr/share/lua/5.4/override/Gdk.lua: 23 bad argument #1 to 'registerlock' (userdata expected, got nil)

Any ideas on how to fix it?
Running lastest Manjaro
Awesome Version:

awesome v4.3
Compiled against Lua 5.5.5 (running with 0.9.2)
LGI version: 0.9.2

attemp to index a nil value (field 'names')

adding nice to my awesomewm configuration gives me this error

2020-09-01 14:50:26 W: awesome: luaA_dofunction:78: error while running function!
stack traceback:
	/home/fsinft/.config/awesome/nice/init.lua:313: in upvalue 'create_titlebar_button'
	/home/fsinft/.config/awesome/nice/init.lua:485: in upvalue 'create_titlebar_items'
	/home/fsinft/.config/awesome/nice/init.lua:660: in field 'add_window_decorations'
	/home/fsinft/.config/awesome/nice/init.lua:837: in function </home/fsinft/.config/awesome/nice/init.lua:813>
	[C]: in method 'emit_signal'
	/usr/share/awesome/lib/awful/rules.lua:697: in function 'awful.rules.execute'
	/usr/share/awesome/lib/awful/rules.lua:494: in function 'awful.rules.apply'
error: /home/fsinft/.config/awesome/nice/init.lua:313: attempt to index a nil value (field 'names')

I tried commenting out the default client.connect_signal("request::titlebars"... entirely and only awful.titlebar(c) : setup but no change.

Nice is stop working with new GDK updates in arch

Hi mut-ex,
nice is not work now. The arch began to cast new spells with GTK 40. Some packages are on 40 version now. And it seems that it kills your module. This is from my both stations with awesome-git aur version which using nice module.
The stacktrace is below.

error while running function!
stack traceback:
[C]: in function 'lgi.corelgilua51.registerlock'
/usr/share/lua/5.3/lgi/override/Gdk.lua:23: in main chunk
[C]: in function 'require'
/usr/share/lua/5.3/lgi/namespace.lua:183: in function 'lgi.namespace.require'
(...tail calls...)
/home/box/.config/awesome/nice/init.lua:57: in main chunk
[C]: in function 'require'
/home/box/.config/awesome/rc.lua.test:35: in main chunk
error: /usr/share/lua/5.3/lgi/override/Gdk.lua:23: bad argument #1 to 'registerlock' (userdata expected, got nil)
error while running function!
stack traceback:
/home/box/.config/awesome/nice/init.lua:79: in main chunk
[C]: in function 'require'
/home/box/.config/awesome/rc.lua:35: in main chunk
error: /home/box/.config/awesome/nice/init.lua:79: attempt to call a nil value (field 'init')

Scroll-up/down the window shade feature doesn't work anymore in master branch

Feature Window Shade:
Scroll-up with your mouse over the titlebar to "roll-up" the window shade. Scroll-down over the titlebar, or left-click to "roll-down" the window shade

It doesn't work anymore in my last tests. I tried to activate feature too with parameter win_shade_enabled = true, but without success.

In addition, is it possible to change behaviour, to MOVE roll-up window WITHOUT roll-down. It means to keep window still roll-up when you are moving the window. Not to roll-down it when I try to move it....just idea.

error with Gdk requirement from lgi and math.pow problem

issue

which

  • after recent update (Archlinux and Fedora-34 both distro), i got an error with Gdk requirement at init.lua line 38
  • and also an error with 'pow' who did attempt for a 'nil' upvalue inside file colors.lua line 92

how to fix

  • change this line 38 in init.lua by:
local gdk = lgi.require('Gdk', '3.0')
  • use of caret instead of math.pow in colors.lua (and comment use of local pow that doesn't make sense in the code):
return u <= 0.0031308 and 25 * u / 323 or ((200 * u + 11) / 211) ^ (12 / 5)

PS

I use this with lua-5.4

No window titlebars

Rules:

awful.rules = {
        { rule = {}, properties = { titlebars_enabled = true } }
}

Nice init:

nice{
        titlebar_font = 'DejaVuSansMono Nerd Font Mono 10'
}

GTK4 supported?

Recently installed GTK4 due to some app needed it as dependency, and now I'm getting when trying to require nice in my rc.lua
image
awesome/nice/init.lua:79: attempt to call a nil value (field 'init')
I'm sure that it is somehow related to GTK4, and when I deleting GTK4 nice is working nice 😄

However when GTK4 installed, I just commenting require nice in rc.lua and all working as expected. I tried to understand whether GTK4 supported or not, but can't find any sign. Maybe there's some option to force use GTK3 (which was working totally fine with awesome and nice)
my ~/.config/gtk-3.0/settings.ini ~/.config/gtk-4.0/settings.ini contains information from readme. Tried to remove last one 4.0 but didn't make anything, still can't load with nice enabled in rc.lua

awesome v4.3-1360-gc539e0e43 (Too long)
 • Compiled against Lua 5.4.4 (running with 0.9.2)
 • API level: 4
 • D-Bus support: yes
 • xcb-errors support: no
 • execinfo support: yes
 • xcb-randr version: 1.6
 • LGI version:  0.9.2
 • Transparency enabled: yes
 • Custom search paths: no

And I'm using latest git master nice with commit 810aa72

Does anyone successfully use nice with GTK4? Is there any recipe? Either tell me what I'm missing or it is not supported, thanks

Feature Request: Add adjustable bottom radius

per title says, or if its less inconvenient, make all borders read from same variable? i tried adapating the code, but i definitely sux at programming and could only get it right if i increased the full line too :(

Typelib file for namespace 'Gdk' (any version) not found

I got this error when nice is importing lgi.Gdk. I'm running NixOS and it's probably because of some weird wrapping missing the dependency needed here.

error ...9jf60-lua5.2-lgi-0.9.2-1/share/lua/5.2/lgi/namespace.lua:158: Typelib file for namespace 'Gdk' (any version) not found

Possibility to change color for state buttons

Is is possible to change the color for state buttons (not just tooltip) in the awesomewm: sticky mode, onTop mode, floating mode?
Changing of colors for hover mouse mode for close, minimize and maxime works nice ;-)

Titlebars default modification destroys your settings.

I found the problem after first usage that your titlebars are not used.
Because in standard configuration rc.lua is modification of titlebars which delete your titlebars and settings:
For example:
client.connect_signal("request::titlebars", function(c)
this configuration change your modification.
Please add to your installation notes, that the changes of titlebars in lua code has to be commented/not used. Because your settings replace these modifications.
In any cases, nice works for NICE! Thanks!

math.pow vs ^

Still, math.pow give me an error (colors.lua at line 92).
Because the Lua version i'm using (5.4.4 from Fedora-34 repos) is asking for ^ instead of math.pow.
There is a pull request there speaking again about that: PR

Equivalent in KDE

Sorry to write this in the form of an issue, however this issue can be closed very fast.

Do you know of an equivalent window-decoration in KDE? The closest thing I've found are the hello window-decorations; however they don't have dynamic-adaptation of the titlebar-color.

Otherwise I think I would have to switch to awesome. 😄 🚀

Small, minor, unimportant "optimisation"

Hi,

I just randomly looked through this and found this code:

-- Converts the given hex color to normalized rgba
local function hex2rgb(color)
color = color:gsub("#", "")
local strlen = color:len()
if strlen == 6 then
return tonumber("0x" .. color:sub(1, 2)) / 255,
tonumber("0x" .. color:sub(3, 4)) / 255,
tonumber("0x" .. color:sub(5, 6)) / 255, 1
end
if strlen == 8 then
return tonumber("0x" .. color:sub(1, 2)) / 255,
tonumber("0x" .. color:sub(3, 4)) / 255,
tonumber("0x" .. color:sub(5, 6)) / 255,
tonumber("0x" .. color:sub(7, 8)) / 255
end
end

I think this can be replaced with gears.color.parse_color(). Feel free to decide if you like that or not and just close this issue. I just wanted to let you know about it.

Also: Nice work. Looks really good.

Nice to have according to standard titlebar behaviours

There is just two nice to have features which can improve your NICE titlebar ;-)
I'm using in standard title bar this configuration:
-- buttons for the titlebar
local buttons = {
awful.button({ }, 1, function()
c:activate { context = "titlebar", action = "mouse_move" }
end),
awful.button({ }, 2, function()
c:activate { context = "titlebar", action = "mouse_resize"}
end),
}

The mouse_move feature is supported by your solution, but mouse_resizing doesn't work because you are using popup menu for coloring feature. Can you add posibility to configure mouse buttons? For example:
left mouse button (1) - for window movement
middle mouse button (2) - for popup coloring feature
right mouse button (3) - resizing window

Is it possible to make the top edge like left/right/bottom? (3D decoration only, no titlebar)

I have tried removing all titlebar items and lowering titlebar_height to a small value like 4-5, but the top edge's rendering is simply different from the rest so it doesn't achieve a nice seamless look no matter what.

local nice = require("nice")
nice {
	titlebar_height = 4,
	titlebar_items = { 
		left = {},
		middle = {},
		right = {}
	}
}

image

Is there a built-in way to achieve this that I might have missed?
Thanks!

nice not working

image

ill get errors when i got over the titlebar of gnome-screenshot

distro: arch linux
nice: latest

Missing titlebars

I just installed the nice version for Awesome 4.3 (which I am using). I am on Manjaro Linux, and my titlebars are gone. I followed the README exactly. I don't know what went wrong here. I didn't change any files of awesome, except the init.lua because of issue #24.

Weird bottom margin when trying to disable titlebar on maximize

I'm trying to hide the titlebar when the window is maximized so I can have full real state when I need it, or fancy titlebars when I don't.

In my rc.lua I have this code:

client.connect_signal("request::geometry", function(c)
  if c.maximized then
      awful.titlebar.hide(c)
  else
      awful.titlebar.show(c)
  end 
end)

The undesired behavior:

image
image

titlebars_buttons_svg_enabled ?

I don't know if it sounds similar to you to as it sounds it to me it would be really important and nice if there are SVGs inside those circular buttons.
features like

  1. titlebars_buttons_hovered_show_svg = boolean ( right now just color shade changes and tooltip shows up)
  2. Or maybe some option for showing svg always.
  3. Or SVG only and show like simple X for close button and when hovered it would become white svg on red color.

Rounded shape on fullscreen

Screenshot_2022-05-30-07-26-57_1920x1080
Screenshot_2022-05-30-07-27-29_1920x1080
Screenshot_2022-05-30-07-33-45_1920x1080

When client is maximized, corners of the window isn't rounded, but on fullscreen, the corners is rounded.
This however isn't an issue if u maximized a window, then fullscreen it.

Transparent, nonfunctional titlebars.

I installed nice on my awesomeWM configuration recently, but the titlebars aren't working correctly. I have titlebars_enabled set to true in my rules, other titlebar-related pieces of code in my rc.lua commented out. My issue is that the titlebars are appearing, with slight shadows behind them, but they are completely transparent and do not function. I'm using awesomeWM 4.3, lua 5.3, and ibhagwan's picom fork.
niceerr

awesome v4.3 issue with nice

Following instructions for the stable version of 'nice' for awesome v4.3 I get this error message after reloading my config:

Oops, an error happened!
/usr/share/lua/5.3./lgi/override/Gdk.lua:23: bad argument #1 to 'registerlock' (userdata expected, got nil)

and

Oops, there were errors during startup!
error while running function!
stack traceback:
    [C]: in function 'lgi.corelgilua51.registerlock'
           /usr/share/lua/5.3./lgi/override/Gdk.lua:23: in main chunk
    [C]: in function 'require'
          /usr/share/lua/5.3./lgi/namespace.lua:183: in function 'lgi.init.require'
          (...tail calls...)
          /home/bogfoot/.config/awesome/nice/init.lua:57: in main chunk
    [C]: in function 'require'
           /home/bogfoot/.config/awesome/rc.lua:70: in main chunk
error: /usr/share/lua/5.3/lgi/override/Gdk.lua:23: bad argument #1 to 'registerlock' (userdata expected, got nil)

Same thing happens when using the 'unstable' version.

I commented out the part in the config mentioning request::titlebars and called the default function

...
local nice = require("nice")
...
beautiful.init(...)
nice()
...

like this.

awesome --version returns

awesome v4.3 (Too long)
 • Compiled against Lua 5.3.6 (running with Lua 5.3)
 • D-Bus support: ✔
 • execinfo support: ✔
 • xcb-randr version: 1.6
 • LGI version: 0.9.2

Distro is Ubuntu 22.10.

Shadows not painted.

I tried my previous settings of shadows, and your described shadow configuration in picom, but the shadows are not painted anymore if the nice() is initialized. If the feature is not activated, the shadows are painted.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.