Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keys format fix #2

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ bh_unicode_properties.cache
GitHub.sublime-settings

# End of https://www.gitignore.io/api/linux,sublimetext,lua
n
config.lua
146 changes: 102 additions & 44 deletions rc/key_bindings/default/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,76 +30,134 @@ module.init = function(config)
local keys = {}
keys.global = {
awesome = {
['lua execute prompt'] = {{config.modkey}, 'x'},
['quit awesome'] = {{config.modkey, 'Shift'}, 'q'},
['reload awesome'] = {{config.modkey, 'Control'}, 'r'},
['show help'] = {{config.modkey}, 's'},
['show main menu'] = {{config.modkey}, 'w'}
['lua execute prompt'] = {
{config.modkey}, 'x'
},
['quit awesome'] = {
{config.modkey, 'Shift'}, 'q'
},
['reload awesome'] = {
{config.modkey, 'Control'}, 'r'
},
['show help'] = {
{config.modkey}, 's'
},
['show main menu'] = {
{config.modkey}, 'w'
}
},
client = {
['focus next by index'] = {{config.modkey}, 'j'},
['focus previous by index'] = {{config.modkey}, 'k'},
['go back'] = {{config.modkey}, 'Tab'},
['jump to urgent client'] = {{config.modkey}, 'u'},
['restore minimized'] = {{config.modkey, 'Control'}, 'n'},
['focus next by index'] = {
{config.modkey}, 'j'
},
['focus previous by index'] = {
{config.modkey}, 'k'
},
['go back'] = {
{config.modkey}, 'Tab'
},
['jump to urgent client'] = {
{config.modkey}, 'u'
},
['restore minimized'] = {
{config.modkey, 'Control'}, 'n'
},
['swap with next client by index'] = {
{config.modkey, 'Shift'},
'j'
{config.modkey, 'Shift'}, 'j'
},
['swap with previous client by index'] = {
{config.modkey, 'Shift'},
'k'
{config.modkey, 'Shift'}, 'k'
}
},
launcher = {
['open a terminal'] = {{config.modkey}, 'Return'},
['run prompt'] = {{config.modkey}, 'r'},
['show the menubar'] = {{config.modkey}, 'p'}
['open a terminal'] = {
{config.modkey}, 'Return'
},
['run prompt'] = {
{config.modkey}, 'r'
},
['show the menubar'] = {
{config.modkey}, 'p'
}
},
layout = {
['decrease master width factor'] = {{config.modkey}, 'h'},
['decrease master width factor'] = {
{config.modkey}, 'h'
},
['decrease the number of columns'] = {
{config.modkey, 'Control'},
'l'
{config.modkey, 'Control'}, 'l'
},
['decrease the number of master clients'] = {
{config.modkey, 'Shift'},
'l'
{config.modkey, 'Shift'}, 'l'
},
['increase master width factor'] = {
{config.modkey}, 'l'
},
['increase master width factor'] = {{config.modkey}, 'l'},
['increase the number of columns'] = {
{config.modkey, 'Control'},
'h'
{config.modkey, 'Control'}, 'h'
},
['increase the number of master clients'] = {
{config.modkey, 'Shift'},
'h'
{config.modkey, 'Shift'}, 'h'
},
['select next'] = {
{config.modkey}, 'space'
},
['select next'] = {{config.modkey}, 'space'},
['select previous'] = {{config.modkey, 'Shift'}, 'space'}
['select previous'] = {
{config.modkey, 'Shift'}, 'space'
}
},
screen = {
['focus the next screen'] = {{config.modkey, 'Control'}, 'j'},
['focus the previous screen'] = {{config.modkey, 'Control'}, 'k'}
['focus the next screen'] = {
{config.modkey, 'Control'}, 'j'
},
['focus the previous screen'] = {
{config.modkey, 'Control'}, 'k'
}
},
tag = {
['go back'] = {{config.modkey}, 'Escape'},
['view next'] = {{config.modkey}, 'Right'},
['view previous'] = {{config.modkey}, 'Left'}
['go back'] = {
{config.modkey}, 'Escape'
},
['view next'] = {
{config.modkey}, 'Right'
},
['view previous'] = {
{config.modkey}, 'Left'
}
}
}
keys.client = {
client = {
['(un)maximize horizontally'] = {{config.modkey, 'Shift'}, 'm'},
['(un)maximize vertically'] = {{config.modkey, 'Control'}, 'm'},
['(un)maximize'] = {{config.modkey}, 'm'},
['close'] = {{config.modkey, 'Shift'}, 'c'},
['minimize'] = {{config.modkey}, 'n'},
['move to master'] = {{config.modkey, 'Control'}, 'Return'},
['move to screen'] = {{config.modkey}, 'o'},
['toggle floating'] = {{config.modkey, 'Control'}, 'space'},
['toggle fullscreen'] = {{config.modkey}, 'f'},
['toggle keep on top'] = {{config.modkey}, 't'}
['(un)maximize horizontally'] = {
{config.modkey, 'Shift'}, 'm'
},
['(un)maximize vertically'] = {
{config.modkey, 'Control'}, 'm'
},
['(un)maximize'] = {
{config.modkey}, 'm'
},
['close'] = {
{config.modkey, 'Shift'}, 'c'
},
['minimize'] = {
{config.modkey}, 'n'
},
['move to master'] = {
{config.modkey, 'Control'}, 'Return'
},
['move to screen'] = {
{config.modkey}, 'o'
},
['toggle floating'] = {
{config.modkey, 'Control'}, 'space'
},
['toggle fullscreen'] = {
{config.modkey}, 'f'
},
['toggle keep on top'] = {
{config.modkey}, 't'
}
}
}
return keys
Expand Down
111 changes: 78 additions & 33 deletions rc/key_bindings/extra/keys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,65 +30,110 @@ module.init = function(config)
local keys = {}
keys.global = {
awesome = {
['lua execute prompt'] = {{config.modkey, config.altkey}, 'r'},
['lock screen'] = {{config.modkey}, 'q'},
['Mac OSX like \'Exposé\' view'] = {{config.modkey}, 'e'},
['toggle wibox'] = {{config.modkey, 'Shift'}, 'b'}
['lua execute prompt'] = {
{config.modkey, config.altkey}, 'r'
},
['lock screen'] = {
{config.modkey}, 'q'
},
['Mac OSX like \'Exposé\' view'] = {
{config.modkey}, 'e'
},
['toggle wibox'] = {
{config.modkey, 'Shift'}, 'b'
}
},
client = {
['decrement useless gaps'] = {{config.altkey, 'Control'}, '-'},
['increment useless gaps'] = {{config.altkey, 'Control'}, '+'}
['decrement useless gaps'] = {
{config.altkey, 'Control'}, '-'
},
['increment useless gaps'] = {
{config.altkey, 'Control'}, '+'
}
},
launcher = {
['launch Browser'] = {{config.modkey}, 'b'},
['launch org capture'] = {{config.modkey}, 'a'},
['launch rofi'] = {{config.modkey}, 'space'}
['launch Browser'] = {
{config.modkey}, 'b'
},
['launch org capture'] = {
{config.modkey}, 'a'
},
['launch rofi'] = {
{config.modkey}, 'space'
}
},
layout = {
['select next'] = {{config.modkey, 'Shift'}, 'space'},
['select next'] = {
{config.modkey, 'Shift'}, 'space'
},
['select previous'] = {
{config.modkey, 'Control', 'Shift'},
'space'
{config.modkey, 'Control', 'Shift'}, 'space'
}
},
screenshot = {
['capture a screenshot of active window'] = {{'Control'}, 'Print'},
['capture a screenshot of selection'] = {{'Shift'}, 'Print'}
['capture a screenshot of active window'] = {
{'Control'}, 'Print'
},
['capture a screenshot of selection'] = {
{'Shift'}, 'Print'
}
},
tag = {
['add new tag'] = {{config.modkey, 'Shift'}, 'n'},
['delete tag'] = {{config.modkey, 'Shift'}, 'd'},
['fork tag'] = {{config.modkey, 'Shift'}, 'f'},
['move tag to the left'] = {{config.modkey, 'Shift'}, 'Left'},
['move tag to the right'] = {{config.modkey, 'Shift'}, 'Right'},
['rename tag'] = {{config.modkey, 'Shift'}, 'r'}
['add new tag'] = {
{config.modkey, 'Shift'}, 'n'
},
['delete tag'] = {
{config.modkey, 'Shift'}, 'd'
},
['fork tag'] = {
{config.modkey, 'Shift'}, 'f'
},
['move tag to the left'] = {
{config.modkey, 'Shift'}, 'Left'
},
['move tag to the right'] = {
{config.modkey, 'Shift'}, 'Right'
},
['rename tag'] = {
{config.modkey, 'Shift'}, 'r'
}
},
theme = {
['decrease dpi'] = {{config.modkey, config.altkey, 'Control'}, '-'},
['increase dpi'] = {{config.modkey, config.altkey, 'Control'}, '+'},
['decrease dpi'] = {
{config.modkey, config.altkey, 'Control'}, '-'
},
['increase dpi'] = {
{config.modkey, config.altkey, 'Control'}, '+'
},
['set dark colorscheme'] = {
{config.modkey, config.altkey, 'Control'},
'd'
{config.modkey, config.altkey, 'Control'}, 'd'
},
['set light colorscheme'] = {
{config.modkey, config.altkey, 'Control'},
'l'
{config.modkey, config.altkey, 'Control'}, 'l'
},
['set mirage colorscheme'] = {
{config.modkey, config.altkey, 'Control'},
'm'
{config.modkey, config.altkey, 'Control'}, 'm'
}
},
widgets = {
['toggle desktop widget visibility'] = {
{config.modkey, config.altkey, 'Shift'},
'w'
{config.modkey, config.altkey, 'Shift'}, 'w'
},
['toggle wibar widgets'] = {{config.modkey, 'Shift'}, 'w'},
['update widgets'] = {{config.modkey, 'Shift'}, 'u'}
['toggle wibar widgets'] = {
{config.modkey, 'Shift'}, 'w'
},
['update widgets'] = {
{config.modkey, 'Shift'}, 'u'
}
}
}
keys.client = {
client = {
['close'] = {
{config.modkey}, 'x'
}
}
}
keys.client = {client = {['close'] = {{config.modkey}, 'x'}}}
return keys
end

Expand Down