From f5612f081db0dc69f5c0ebc69e67fa3b098a9ad9 Mon Sep 17 00:00:00 2001 From: delta Date: Fri, 12 May 2023 16:18:24 +0200 Subject: restructure services, add get_essid to quarrel.native and other wip work --- .config/awesome/ui/decorations/init.lua | 2 +- .config/awesome/ui/decorations/titlebar.lua | 84 ---------------------------- .config/awesome/ui/decorations/wallpaper.lua | 3 +- 3 files changed, 3 insertions(+), 86 deletions(-) delete mode 100644 .config/awesome/ui/decorations/titlebar.lua (limited to '.config/awesome/ui/decorations') diff --git a/.config/awesome/ui/decorations/init.lua b/.config/awesome/ui/decorations/init.lua index 9493a67..5b33dc3 100644 --- a/.config/awesome/ui/decorations/init.lua +++ b/.config/awesome/ui/decorations/init.lua @@ -1,2 +1,2 @@ -require "ui.decorations.titlebar" require "ui.decorations.wallpaper" +-- require "ui.decorations.clippy" diff --git a/.config/awesome/ui/decorations/titlebar.lua b/.config/awesome/ui/decorations/titlebar.lua deleted file mode 100644 index ab96457..0000000 --- a/.config/awesome/ui/decorations/titlebar.lua +++ /dev/null @@ -1,84 +0,0 @@ -local awful = require "awful" -local cfg = require "misc.cfg" -local gears = require "gears" -local qvars = require "quarrel.vars" -local rubato = require "lib.rubato" -local wibox = require "wibox" - -local function button(color, color_focus, callback) - local widget = wibox.widget { - widget = wibox.container.background, - forced_height = qvars.button_size, - forced_width = qvars.button_size, - bg = color, - shape = qvars.shape, - buttons = { callback } - } - - widget:connect_signal("mouse::enter", function() - local timed = rubato.timed { - duration = 0.1, - intro = 0.05, - pos = qvars.button_size, - subscribed = function(pos) - widget.forced_width = pos - end - } - - timed.target = qvars.button_size * 2 - widget.bg = color_focus - end) - - widget:connect_signal("mouse::leave", function() - local timed = rubato.timed { - duration = 0.1, - intro = 0.05, - pos = qvars.button_size * 2, - subscribed = function(pos) - widget.forced_width = pos - end - } - - timed.target = qvars.button_size - widget.bg = color - end) - - return widget -end - -client.connect_signal("request::titlebars", function(c) - if not cfg.draw_titlebar then return end - - local titlebar = awful.titlebar(c, { - position = "top", - size = qvars.button_size + qvars.padding * 2 - }) - - awful.titlebar.enable_tooltip = false - - titlebar.widget = { - widget = wibox.container.margin, - margins = qvars.padding, - { - nil, - nil, - { - button(qvars.colors.green, qvars.colors.bright.green, awful.button({}, 1, function() - c.maximized = not c.maximized - end)), - button(qvars.colors.yellow, qvars.colors.bright.yellow, awful.button({}, 1, function() - gears.timer.delayed_call(function() - c.minimized = true - end) - end)), - button(qvars.colors.red, qvars.colors.bright.red, awful.button({}, 1, function() - c:kill() - end)), - - spacing = qvars.padding, - layout = wibox.layout.fixed.horizontal - }, - layout = wibox.layout.align.horizontal - } - } -end) diff --git a/.config/awesome/ui/decorations/wallpaper.lua b/.config/awesome/ui/decorations/wallpaper.lua index e1323b8..dbe54ee 100644 --- a/.config/awesome/ui/decorations/wallpaper.lua +++ b/.config/awesome/ui/decorations/wallpaper.lua @@ -25,7 +25,8 @@ screen.connect_signal("request::wallpaper", function(s) }, "\n") } -- { - -- image = gfs.get_configuration_dir() .. "assets/nightmare_fuel.png", + -- -- image = gfs.get_configuration_dir() .. "assets/nightmare_fuel.png", + -- image = "/home/delta/Desktop/offline vs online.jpg", -- resize = true, -- widget = wibox.widget.imagebox, -- }, -- cgit v1.2.3