Daniel Hahler blueyed

View awesome-autohide-tags.lua
1 2 3 4 5 6 7 8 9 10
-- Autohide tags with no clients. {{{
-- Based on eminent (https://github.com/guotsuan/eminent), without monkey-patching viewidx.
local function autohidetags(screen)
for k, t in ipairs(awful.tag.gettags(screen)) do
if t.selected or #t:clients() > 0 then
awful.tag.setproperty(t, "hide", false)
else
awful.tag.setproperty(t, "hide", true)
end
end
View awesome-debug-helpers.lua
1 2 3 4 5 6 7 8 9 10
-- Standard awesome library
local gears = require("gears")
 
local _dbus = dbus; dbus = nil
local naughty = require("naughty") -- XXX: if loaded (with dbus available), notifications do not go to dunst/notify-osd anymore
dbus = _dbus
 
-- Debug function. Set focusstyle.debug to activate it. {{{2
local gears = require("gears")
local bdebug_level = 10 -- display all
View opacity_init.lua
1 2 3 4 5 6 7 8 9 10
-- Opacity handling.
local M = {}
M = {
opacity_unfocused_screen = 0.98,
opacity_unfocused_screen_last_client = 1,
}
local locked_opacity = {}
 
local capi = {
client = client,
View awesome-request-activate.lua
1 2 3 4 5 6 7 8 9 10
local ewmh = require("awful.ewmh")
client.disconnect_signal("request::activate", awful.ewmh.activate)
client.connect_signal("request::activate", function(c)
if not c:isvisible() then
-- Meant to handle opening a link from somewhere.
-- Causes Firefox to steal the focus on other events though!
-- Would need some magic flag being set via open-in-running-browser.
-- if c.class == "Firefox" and c.type == "normal" then
-- awful.client.jumpto(c)
-- -- awful.tag.viewonly(c:tags()[1])
View put_client.lua
1 2 3 4 5 6 7 8 9 10
--- Put a client relatively on the screen's workarea (sets floating state).
-- @param c A client.
-- @param x X position multipler (0.5 for center).
-- @param y Y position multiplier (0.5 for center).
-- @param width Width multiplier.
-- @param width Height multiplier.
local put_client = function(c, x, y, width, height)
local wa = capi.screen[c.screen].workarea
 
local geo = {
View awesome-sloppy-focus-improved.lua
1 2 3 4 5 6 7 8 9 10
client.connect_signal("manage", function (c)
-- Enable sloppy focus
local sloppy_focus_last_coords = mouse.coords()
c:connect_signal("mouse::enter", function(c)
-- bnote("mouse::enter::focus", 2)
local coords = mouse.coords()
local last = sloppy_focus_last_coords
-- bnote("coords: " .. coords.x .. "/" .. coords.y )
-- bnote("last : " .. last.x .. "/" .. last.y )
if coords.x == last.x and coords.y == last.y then
View -
1 2 3 4 5 6 7 8 9
### Keybase proof
 
I hereby claim:
 
* I am blueyed on github.
* I am blueyed (https://keybase.io/blueyed) on keybase.
* I have a public key whose fingerprint is B5A6 C220 829F AE5D 69EB 9CA3 7C02 BF85 3FE6 3E00
 
To claim this, I am signing this object:
View awesome-new-request-activate.lua
1 2 3 4 5 6 7 8 9 10
client.connect_signal("request::activate", function(c)
if c:isvisible() then
client.focus = c
c:raise()
else
if not awesome_startup then
c.urgent = true
end
end
end)
View -
1 2 3 4 5 6 7 8 9
-- Rename tag
-- Reference: http://awesome.naquadah.org/doc/api/modules/awful.prompt.html
awful.key({ modkey, "Shift", }, "F2", function ()
awful.prompt.run({ prompt = "Rename tab: ", text = awful.tag.selected().name, },
mypromptbox[mouse.screen].widget,
function (s)
awful.tag.selected().name = s
end)
end),
View awesome-rename-tag.rc.lua
1 2 3 4 5 6 7 8
-- Rename tag
awful.key({ modkey, "Shift", }, "F2", function ()
awful.prompt.run({ prompt = "Rename tab: ", text = awful.tag.selected().name, },
mypromptbox[mouse.screen].widget,
function (s)
awful.tag.selected().name = s
end)
end),
Something went wrong with that request. Please try again.