-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plugin-scripts): Add recommended package for system76-power scripts
- Loading branch information
Showing
9 changed files
with
85 additions
and
2 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
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,4 @@ | ||
/usr/lib/pop-shell/scripts/graphics-compute.sh | ||
/usr/lib/pop-shell/scripts/graphics-discrete.sh | ||
/usr/lib/pop-shell/scripts/graphics-hybrid.sh | ||
/usr/lib/pop-shell/scripts/graphics-integrated.sh |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
schemas/org.gnome.shell.extensions.pop-shell.gschema.xml usr/share/glib-2.0/schemas | ||
keybindings/*.xml usr/share/gnome-control-center/keybindings | ||
usr/ |
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 |
---|---|---|
|
@@ -5,11 +5,14 @@ | |
#export DH_VERBOSE=1 | ||
|
||
BASEDIR=debian/pop-shell/usr/share/gnome-shell/extensions/[email protected] | ||
DESTDIR=debian/tmp | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_install: | ||
make install-system76-plugins DESTDIR=$(DESTDIR) | ||
dh_movefiles | ||
dh_install | ||
rm -rf $(BASEDIR)/schemas | ||
|
||
|
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,16 @@ | ||
#!/bin/sh | ||
# | ||
# name: Switch to Compute Graphics | ||
# icon: preferences-system-symbolic | ||
# description: Use integrated GPU for display; discrete for CUDA / OpenCL | ||
# keywords: compute graphics switch nvidia | ||
|
||
gnome-terminal -- sh -c ' | ||
if system76-power graphics compute; then | ||
echo "Succesfully switched. You may now reboot" | ||
else | ||
echo "Failed to switch\nPress key to exit" | ||
fi | ||
read x | ||
' |
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,16 @@ | ||
#!/bin/sh | ||
# | ||
# name: Switch to NVIDIA Graphics | ||
# icon: preferences-system-symbolic | ||
# description: Use NVIDIA GPU for display and applications | ||
# keywords: nvidia graphics switch | ||
|
||
gnome-terminal -- sh -c ' | ||
if system76-power graphics nvidia; then | ||
echo "Succesfully switched. You may now reboot" | ||
else | ||
echo "Failed to switch\nPress key to exit" | ||
fi | ||
read x | ||
' |
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,16 @@ | ||
#!/bin/sh | ||
# | ||
# name: Switch to Hybrid Graphics | ||
# icon: preferences-system-symbolic | ||
# description: Use integrated GPU for display; applications may request discrete | ||
# keywords: integrated graphics switch intel nvidia hybrid | ||
|
||
gnome-terminal -- sh -c ' | ||
if system76-power graphics hybrid; then | ||
echo "Succesfully switched. You may now reboot" | ||
else | ||
echo "Failed to switch\nPress key to exit" | ||
fi | ||
read x | ||
' |
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,16 @@ | ||
#!/bin/sh | ||
# | ||
# name: Switch to Integrated Graphics | ||
# icon: preferences-system-symbolic | ||
# description: Use integrated GPU for display and applications | ||
# keywords: integrated graphics switch intel | ||
|
||
gnome-terminal -- sh -c ' | ||
if system76-power graphics integrated; then | ||
echo "Succesfully switched. You may now reboot" | ||
else | ||
echo "Failed to switch\nPress key to exit" | ||
fi | ||
read x | ||
' |