-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Woomymy/master
Add password-less changes support, localisation support and other changes
- Loading branch information
Showing
20 changed files
with
774 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Extension built ZIP | ||
*.zip | ||
|
||
# Compliled GSChema | ||
gschemas.compiled | ||
|
||
# L10N | ||
*.mo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "subprojects/blueprint-compiler"] | ||
path = subprojects/blueprint-compiler | ||
url = https://gitlab.gnome.org/jwestman/blueprint-compiler.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Required by ideapad_controls gnome extension | ||
z /sys/bus/platform/drivers/ideapad_acpi/*/conservation_mode 0664 root ideapad_laptop | ||
z /sys/bus/platform/drivers/ideapad_acpi/*/camera_power 0664 root ideapad_laptop | ||
Z /sys/bus/platform/drivers/ideapad_acpi/*/fan_mode 0664 root ideapad_laptop | ||
z /sys/bus/platform/drivers/ideapad_acpi/*/fn_lock 0664 root ideapad_laptop | ||
z /sys/bus/platform/drivers/ideapad_acpi/*/touchpad 0664 root ideapad_laptop | ||
z /sys/bus/platform/drivers/ideapad_acpi/*/usb_charging 0664 root ideapad_laptop | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
EXTENSION_ZIP := ideapad-controls@azzamalsharafi.gmail.com.shell-extension.zip | ||
TMPFILES_CONF := 99-ideapad.conf | ||
|
||
subprojects: | ||
@git submodule update --resursive | ||
|
||
template.ui: subprojects | ||
@./subprojects/blueprint-compiler/blueprint-compiler.py compile template.blp > template.ui | ||
|
||
$(EXTENSION_ZIP): template.ui | ||
@gnome-extensions pack ./ \ | ||
--extra-source=template.ui \ | ||
--extra-source=optionsUtils.js \ | ||
--extra-source=aggregateMenu.js \ | ||
--extra-source=quickSettingsMenu.js \ | ||
--extra-source=common.js \ | ||
--extra-source=icons/ \ | ||
--extra-source=LICENSE.md \ | ||
--podir=po \ | ||
--force | ||
|
||
translations: | ||
@xgettext \ | ||
--files-from=po/POTFILES \ | ||
--output=po/ideapat-controls.pot \ | ||
--from-code=UTF-8 \ | ||
--add-comments \ | ||
--keyword=_ \ | ||
--keyword=C_:1c,2 | ||
|
||
install: $(EXTENSION_ZIP) | ||
@echo "Installing extension" | ||
gnome-extensions install --force $(EXTENSION_ZIP) | ||
@echo "Extension installed" | ||
|
||
tmpfiles-install: $(TMPFILES_CONF) | ||
@echo "Installing tmpfiles.d configuration" | ||
cp -v $(TMPFILES_CONF) /etc/tmpfiles.d/$(TMPFILES_CONF) | ||
@echo "Installed tmpfiles.d configuration. Reboot or run 'systemd-tmpfiles --create' to make it effective" | ||
|
||
clean: | ||
rm -f $(EXTENSION_ZIP) template.ui | ||
|
||
all: install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
template.blp | ||
aggregateMenu.js | ||
common.js | ||
extension.js | ||
optionsUtils.js | ||
prefs.js | ||
quickSettingsMenu.js |
Oops, something went wrong.