diff options
Diffstat (limited to '.config/awesome/misc/keys.lua')
-rw-r--r-- | .config/awesome/misc/keys.lua | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/.config/awesome/misc/keys.lua b/.config/awesome/misc/keys.lua index 432f3eb..646be52 100644 --- a/.config/awesome/misc/keys.lua +++ b/.config/awesome/misc/keys.lua @@ -1,12 +1,13 @@ local awful = require "awful" +local beautiful = require "beautiful" local cfg = require "misc.cfg" local fresnel = require "ui.fresnel" local gtimer = require "gears.timer" local insightful = require "ui.insightful" local naughty = require "naughty" +local playerctl = require "services.playerctl" local qbind = require "quarrel.bind" local qvars = require "quarrel.vars" -local playerctl = require "services.playerctl" local recording = { false, "" } @@ -120,7 +121,6 @@ awful.keyboard.append_global_keybindings { }, qbind:new { - mods = {}, triggers = "XF86AudioMute", press = function() awful.spawn("wpctl set-mute @DEFAULT_SINK@ toggle") @@ -129,7 +129,6 @@ awful.keyboard.append_global_keybindings { desc = "mute" }, qbind:new { - mods = {}, triggers = { { "XF86AudioRaiseVolume", true }, { "XF86AudioLowerVolume", false } @@ -145,7 +144,6 @@ awful.keyboard.append_global_keybindings { desc = "increase/decrease volume" }, qbind:new { - mods = {}, triggers = { { "XF86AudioNext", true }, { "XF86AudioPrev", false } @@ -161,7 +159,6 @@ awful.keyboard.append_global_keybindings { desc = "previous/next song" }, qbind:new { - mods = {}, triggers = "XF86AudioPlay", press = function() playerctl:play_pause() @@ -171,7 +168,6 @@ awful.keyboard.append_global_keybindings { }, qbind:new { - mods = {}, triggers = { { "XF86MonBrightnessUp", true }, { "XF86MonBrightnessDown", false } @@ -198,7 +194,6 @@ awful.keyboard.append_global_keybindings { }, qbind:new { - mods = {}, triggers = "Print", press = function() local date = os.date("%Y%m%d_%H%M%S") @@ -283,5 +278,15 @@ awful.keyboard.append_global_keybindings { press = awful.tag.viewnext, group = "tag", desc = "switch to next" + }, + qbind:new { + mods = qvars.mods.MC, + triggers = "x", + press = function() + local tag = awful.screen.focused().selected_tag + tag.master_width_factor = cfg.tags[tonumber(tag.name)].master_width_factor or beautiful.master_width_factor + end, + group = "tag", + desc = "reset master width" } } |