forgot to change some alsacontrol stuff to key-mapper in comments

xkb
sezanzeb 4 years ago committed by sezanzeb
parent 4186473637
commit 0152e5acf5

@ -58,6 +58,10 @@ CTX_KEYCODE = 2
CTX_ERROR = 3
# TODO test on wayland
# TODO reorganize classes and files
class SingleKeyMapping:
"""A single, configurable key mapping."""
def __init__(self, device, delete_callback, keycode=None, character=None):
@ -454,6 +458,7 @@ if __name__ == '__main__':
if getpass.getuser() != 'root' and 'unittest' not in sys.modules.keys():
# TODO add a polkit thing like
# https://gitlab.manjaro.org/applications/pamac/-/tree/master/data/polkit
# does this require a dependency?
logger.error('Needs to run with sudo')
ErrorDialog(
'Error',

@ -1,22 +1,22 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# ALSA-Control - ALSA configuration interface
# key-mapper - GUI for device specific keyboard mappings
# Copyright (C) 2020 sezanzeb <proxima@hip70890b.de>
#
# This file is part of ALSA-Control.
# This file is part of key-mapper.
#
# ALSA-Control is free software: you can redistribute it and/or modify
# key-mapper is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ALSA-Control is distributed in the hope that it will be useful,
# key-mapper is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ALSA-Control. If not, see <https://www.gnu.org/licenses/>.
# along with key-mapper. If not, see <https://www.gnu.org/licenses/>.
"""Query settings."""

@ -44,7 +44,7 @@ def gtk_iteration():
def launch(argv=None, bin_path='bin/key-mapper-gtk'):
"""Start alsacontrol-gtk with the command line argument array argv."""
"""Start key-mapper-gtk with the command line argument array argv."""
print('\nLaunching UI')
if not argv:
argv = ['-d']
@ -63,8 +63,7 @@ def launch(argv=None, bin_path='bin/key-mapper-gtk'):
class Integration(unittest.TestCase):
"""For tests that use the window.
Try to modify the configuration and .asoundrc only by calling
functions of the window.
Try to modify the configuration only by calling functions of the window.
"""
@classmethod
def setUpClass(cls):

Loading…
Cancel
Save