From f42a3a2cc941e34dd938b1e6bc24785a44781db2 Mon Sep 17 00:00:00 2001 From: delta Date: Sun, 21 May 2023 10:12:46 +0200 Subject: major update of awesome config add new icons, switch over to using stylesheets instead of gears.color.recolor_image, add a music widget to the panel, optimize services in common.lua, fix the application lense filtering and increase the update rate of services in common.lua Signed-off-by: delta --- .config/awesome/misc/keys.lua | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to '.config/awesome/misc/keys.lua') 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" } } -- cgit v1.2.3