From a7c79cb5a04562be10347856642a80f0c4be89fc Mon Sep 17 00:00:00 2001 From: delta Date: Fri, 17 Apr 2026 08:10:30 +0200 Subject: sync --- .config/awesome/misc/keys.lua | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to '.config/awesome/misc/keys.lua') diff --git a/.config/awesome/misc/keys.lua b/.config/awesome/misc/keys.lua index b7dc4c4..9a5e481 100644 --- a/.config/awesome/misc/keys.lua +++ b/.config/awesome/misc/keys.lua @@ -2,7 +2,10 @@ local awful = require "awful" local backlight = require "services.backlight" local beautiful = require "beautiful" local cfg = require "misc.cfg" -local fresnel = require "ui.fresnel" +local fresnel = { show = function() end} +if awesome.release ~= "somewm" then + fresnel = require "ui.fresnel" +end local gtable = require "gears.table" local gtimer = require "gears.timer" local insightful = require "ui.insightful" @@ -13,6 +16,7 @@ local playerctl = require "services.playerctl" local powermenu = require "ui.powermenu" local qbind = require "quarrel.bind" local dnd = require "services.dnd" +-- local osd = require "ui.osd" local recording = { false, "" } @@ -28,6 +32,17 @@ client.connect_signal("request::default_mousebindings", function() group = "client", desc = "raise client", }, + qbind { + mods = qbind.mods.M, + triggers = qbind.btns.middle, + press = function(c) + c:activate { + context = "mouse_click", + } + end, + group = "client", + desc = "raise client", + }, qbind { mods = qbind.mods.M, triggers = qbind.btns.left, @@ -115,6 +130,15 @@ awful.keyboard.append_global_keybindings { group = "awesome", desc = "toggle insightful", }, + -- qbind { + -- mods = qbind.mods.M, + -- triggers = "u", + -- press = function() + -- osd:toggle() + -- end, + -- group = "awesome", + -- desc = "toggle osd", + -- }, qbind { mods = qbind.mods.M, triggers = "space", @@ -229,7 +253,7 @@ awful.keyboard.append_global_keybindings { mods = qbind.mods.M, triggers = "Return", press = function() - awful.spawn(cfg.terminal) + awful.spawn("xdg-terminal-exec") end, group = "launcher", desc = "launch terminal", @@ -293,7 +317,7 @@ awful.keyboard.append_global_keybindings { else recording[1] = true recording[2] = os.getenv "HOME" .. "/Videos/" .. os.date "%Y%m%d_%H%M%S" .. ".mp4" - awful.spawn("giph --format mp4 --framerate 30 " .. recording[2]) + awful.spawn("giph -a --format mp4 --framerate 30 " .. recording[2]) naughty.notification { app_name = "Giph", title = "Recording started", -- cgit v1.2.3