This commit is contained in:
sezanzeb 2020-10-31 14:02:59 +01:00
parent 86ecc3d394
commit ab1aca7939
9 changed files with 35 additions and 38 deletions

View File

@ -1,7 +1,4 @@
# setxkbmap-gtk
This in a very early stage. But due to having all my vacation distributed until the end of the year it will probably
be easily finished this year.
# Key Mapper
GUI tool to map input buttons to e.g. change the thumb keys of the razor naga mouse or any keyboard to something
different. It should not be device specific, any input device supported by Linux plug and play will likely

View File

@ -1,22 +1,22 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# setxkbmap-gtk - GTK based GUI for device specific keyboard mappings
# key-mapper - GTK based GUI for device specific keyboard mappings
# Copyright (C) 2020 sezanzeb <proxima@hip70890b.de>
#
# This file is part of setxkbmap-gtk.
# This file is part of key-mapper.
#
# setxkbmap-gtk 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.
#
# setxkbmap-gtk 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 setxkbmap-gtk. If not, see <https://www.gnu.org/licenses/>.
# along with key-mapper. If not, see <https://www.gnu.org/licenses/>.
"""User Interface."""
@ -38,7 +38,7 @@ from setxkbmapgtk.logger import logger, update_verbosity, log_info
class Window:
"""User Interface."""
def __init__(self):
gladefile = os.path.join(get_data_path(), 'setxkbmap-gtk.glade')
gladefile = os.path.join(get_data_path(), 'key-mapper.glade')
builder = Gtk.Builder()
builder.add_from_file(gladefile)
builder.connect_signals(self)

View File

@ -1,6 +1,6 @@
[Desktop Entry]
Type=Application
Name=setxkbmap-gtk
Name=key-mapper
Icon=mouse
Exec=setxkbmapgtk-gtk
Terminal=false

View File

@ -1,25 +1,25 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# setxkbmap-gtk - GTK based GUI for device specific keyboard mappings
# key-mapper - GTK based GUI for device specific keyboard mappings
# Copyright (C) 2020 sezanzeb <proxima@hip70890b.de>
#
# This file is part of setxkbmap-gtk.
# This file is part of key-mapper.
#
# setxkbmap-gtk 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.
#
# setxkbmap-gtk 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 setxkbmap-gtk. If not, see <https://www.gnu.org/licenses/>.
# along with key-mapper. If not, see <https://www.gnu.org/licenses/>.
"""Logging setup for setxkbmap-gtk."""
"""Logging setup for key-mapper."""
import os

View File

@ -1,22 +1,22 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# setxkbmap-gtk - GTK based GUI for device specific keyboard mappings
# key-mapper - GTK based GUI for device specific keyboard mappings
# Copyright (C) 2020 sezanzeb <proxima@hip70890b.de>
#
# This file is part of setxkbmap-gtk.
# This file is part of key-mapper.
#
# setxkbmap-gtk 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.
#
# setxkbmap-gtk 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 setxkbmap-gtk. If not, see <https://www.gnu.org/licenses/>.
# along with key-mapper. If not, see <https://www.gnu.org/licenses/>.
"""Helperfunctions to find device ids, names, and to load configs."""

View File

@ -1,22 +1,22 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# setxkbmap-gtk - GTK based GUI for device specific keyboard mappings
# key-mapper - GTK based GUI for device specific keyboard mappings
# Copyright (C) 2020 sezanzeb <proxima@hip70890b.de>
#
# This file is part of setxkbmap-gtk.
# This file is part of key-mapper.
#
# setxkbmap-gtk 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.
#
# setxkbmap-gtk 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 setxkbmap-gtk. If not, see <https://www.gnu.org/licenses/>.
# along with key-mapper. If not, see <https://www.gnu.org/licenses/>.
import DistUtilsExtra.auto

View File

@ -1,25 +1,25 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# setxkbmap-gtk - GTK based GUI for device specific keyboard mappings
# key-mapper - GTK based GUI for device specific keyboard mappings
# Copyright (C) 2020 sezanzeb <proxima@hip70890b.de>
#
# This file is part of setxkbmap-gtk.
# This file is part of key-mapper.
#
# setxkbmap-gtk 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.
#
# setxkbmap-gtk 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 setxkbmap-gtk. If not, see <https://www.gnu.org/licenses/>.
# along with key-mapper. If not, see <https://www.gnu.org/licenses/>.
"""Sets up setxkbmap-gtk for the tests and runs them."""
"""Sets up key-mapper for the tests and runs them."""
import sys

View File

@ -1,22 +1,22 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# setxkbmap-gtk - GTK based GUI for device specific keyboard mappings
# key-mapper - GTK based GUI for device specific keyboard mappings
# Copyright (C) 2020 sezanzeb <proxima@hip70890b.de>
#
# This file is part of setxkbmap-gtk.
# This file is part of key-mapper.
#
# setxkbmap-gtk 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.
#
# setxkbmap-gtk 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 setxkbmap-gtk. If not, see <https://www.gnu.org/licenses/>.
# along with key-mapper. If not, see <https://www.gnu.org/licenses/>.
import unittest