hotkey to remove borders in awesome, some minor tweaks and additions
This commit is contained in:
parent
0801e3ba93
commit
a333f045ea
1 changed files with 17 additions and 7 deletions
14
rc.lua
14
rc.lua
|
@ -429,6 +429,14 @@ clientkeys = awful.util.table.join(
|
||||||
|
|
||||||
-- Window properties
|
-- Window properties
|
||||||
awful.key({ 'Mod1', }, 'Return', function (c) c.fullscreen = not c.fullscreen end),
|
awful.key({ 'Mod1', }, 'Return', function (c) c.fullscreen = not c.fullscreen end),
|
||||||
|
awful.key({ modkey, }, 'b',
|
||||||
|
function (c)
|
||||||
|
if c.border_width ~= 0 then
|
||||||
|
c.border_width = 0
|
||||||
|
else
|
||||||
|
c.border_width = beautiful.border_width
|
||||||
|
end
|
||||||
|
end),
|
||||||
awful.key({ modkey, 'Shift' }, 't', function (c) c.ontop = not c.ontop end),
|
awful.key({ modkey, 'Shift' }, 't', function (c) c.ontop = not c.ontop end),
|
||||||
awful.key({ modkey, 'Shift' }, 's', function (c) c.sticky = not c.sticky end),
|
awful.key({ modkey, 'Shift' }, 's', function (c) c.sticky = not c.sticky end),
|
||||||
awful.key({ modkey, 'Shift' }, 'f', awful.client.floating.toggle ),
|
awful.key({ modkey, 'Shift' }, 'f', awful.client.floating.toggle ),
|
||||||
|
@ -556,7 +564,7 @@ awful.rules.rules = {
|
||||||
properties = { size_hints_honor = false }
|
properties = { size_hints_honor = false }
|
||||||
},
|
},
|
||||||
-- Specific desktops rules: place windows only on specific tags by default
|
-- Specific desktops rules: place windows only on specific tags by default
|
||||||
-- tag 2: games = maximized
|
-- tag 4: games = maximized
|
||||||
{
|
{
|
||||||
rule_any = {
|
rule_any = {
|
||||||
instance = {
|
instance = {
|
||||||
|
@ -566,7 +574,8 @@ awful.rules.rules = {
|
||||||
},
|
},
|
||||||
properties = {
|
properties = {
|
||||||
border_width = 0,
|
border_width = 0,
|
||||||
tag = tags[1][2]
|
maximized = true,
|
||||||
|
tag = tags[1][4]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
-- tag 4: steam and games
|
-- tag 4: steam and games
|
||||||
|
@ -586,6 +595,7 @@ awful.rules.rules = {
|
||||||
'Cities In Motion.bin',
|
'Cities In Motion.bin',
|
||||||
'ck2',
|
'ck2',
|
||||||
'csgo_linux',
|
'csgo_linux',
|
||||||
|
'DefenseGrid2',
|
||||||
'deponia_tcj',
|
'deponia_tcj',
|
||||||
'dota_linux',
|
'dota_linux',
|
||||||
'game.x86_64',
|
'game.x86_64',
|
||||||
|
|
Loading…
Reference in a new issue