aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/misc/keys.lua
diff options
context:
space:
mode:
authordelta <darkussdelta@gmail.com>2023-05-21 10:12:46 +0200
committerdelta <darkussdelta@gmail.com>2023-05-21 10:12:46 +0200
commitf42a3a2cc941e34dd938b1e6bc24785a44781db2 (patch)
treebec91db370c7bcd5be2bb614d2d315a32c751215 /.config/awesome/misc/keys.lua
parentf5612f081db0dc69f5c0ebc69e67fa3b098a9ad9 (diff)
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 <darkussdelta@gmail.com>
Diffstat (limited to '.config/awesome/misc/keys.lua')
-rw-r--r--.config/awesome/misc/keys.lua19
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"
}
}