aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/misc/keys.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome/misc/keys.lua')
-rw-r--r--.config/awesome/misc/keys.lua30
1 files changed, 27 insertions, 3 deletions
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, "" }
@@ -30,6 +34,17 @@ client.connect_signal("request::default_mousebindings", function()
},
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,
press = function(c)
c:activate {
@@ -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",