Skip to content

Commit

Permalink
Config update
Browse files Browse the repository at this point in the history
Lock mouse kill function for 'game' tag.
Submodule update.
  • Loading branch information
worron committed Apr 11, 2020
1 parent cb4fb7e commit 4c63471
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
2 changes: 1 addition & 1 deletion redflat
9 changes: 8 additions & 1 deletion shade/ruby/keys-config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1000,11 +1000,18 @@ function hotkeys:init(args)

-- Mouse buttons
--------------------------------------------------------------------------------
local function game_safe_kill(c)
local current_tag = awful.screen.focused().selected_tag
if current_tag and current_tag.name and current_tag.name:lower() ~= "game" then
c:kill()
end
end

self.mouse.client = awful.util.table.join(
awful.button({}, 1, function (c) client.focus = c; c:raise() end),
awful.button({}, 2, awful.mouse.client.move),
awful.button({ env.mod }, 3, awful.mouse.client.resize),
awful.button({}, 8, function(c) c:kill() end)
awful.button({}, 8, game_safe_kill)
)

-- Set root hotkeys
Expand Down
34 changes: 18 additions & 16 deletions themes/colorless/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,24 @@ function theme:init()
-- Menu config
--------------------------------------------------------------------------------
self.menu = {
border_width = 4, -- menu border width
screen_gap = self.useless_gap + self.border_width, -- minimal space from screen edge on placement
height = 32, -- menu item height
width = 250, -- menu item width
icon_margin = { 8, 8, 8, 8 }, -- space around left icon in menu item
ricon_margin = { 9, 9, 9, 9 }, -- space around right icon in menu item
nohide = false, -- do not hide menu after item activation
auto_expand = true, -- show submenu on item selection (without item activation)
auto_hotkey = false, -- automatically set hotkeys for all menu items
select_first = true, -- auto select first item when menu shown
hide_timeout = 1, -- auto hide timeout (auto hide disables if this set to 0)
font = self.fonts.menu, -- menu font
submenu_icon = self.icon.submenu, -- icon for submenu items
keytip = { geometry = { width = 400 } }, -- hotkeys helper settings
shape = nil, -- wibox shape
svg_scale = { false, false }, -- use vector scaling for left, right icons in menu item
border_width = 4, -- menu border width
screen_gap = self.useless_gap + self.border_width, -- minimal space from screen edge on placement
height = 32, -- menu item height
width = 250, -- menu item width
icon_margin = { 8, 8, 8, 8 }, -- space around left icon in menu item
ricon_margin = { 9, 9, 9, 9 }, -- space around right icon in menu item
nohide = false, -- do not hide menu after item activation
auto_expand = true, -- show submenu on item selection (without item activation)
auto_hotkey = false, -- automatically set hotkeys for all menu items
select_first = true, -- auto select first item when menu shown
hide_timeout = 1, -- auto hide timeout (auto hide disables if this set to 0)
font = self.fonts.menu, -- menu font
submenu_icon = self.icon.submenu, -- icon for submenu items
keytip = { geometry = { width = 400 } }, -- hotkeys helper settings
shape = nil, -- wibox shape
shape = nil, -- wibox shape
action_on_release = false, -- active menu item on mouse release instead of press
svg_scale = { false, false }, -- use vector scaling for left, right icons in menu item
}

self.menu.color = {
Expand Down

0 comments on commit 4c63471

Please sign in to comment.