-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add brightness control with ddccontrol * Add brightness control with brightnessctl * Add option to hide apps from /usr/share/applications * Add option to hide volume icon * Misc fixes and improvements
- Loading branch information
Showing
12 changed files
with
706 additions
and
190 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
WESTON_VER=13 | ||
WESTON_VER=14 | ||
|
||
cd `dirname $0` | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 @@ | ||
#!/bin/bash | ||
|
||
stringContains() { [ -z "${2##*$1*}" ]; } | ||
|
||
if [[ -z "$1" ]]; then | ||
echo "no brightnessctl device" | ||
exit; | ||
fi | ||
|
||
OUT=`brightnessctl --device ${1} i 2>/dev/null` | ||
|
||
OUT=${OUT##*Current} | ||
|
||
OUT=${OUT##*\(} | ||
OUT=${OUT%\%*} | ||
|
||
BRIGHTNESS=$OUT | ||
|
||
printf $BRIGHTNESS > $HOME/.cache/wayward-brightness | ||
|
||
exit; | ||
|
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,19 @@ | ||
#!/bin/bash | ||
|
||
stringContains() { [ -z "${2##*$1*}" ]; } | ||
|
||
if [[ -z "$1" ]]; then | ||
echo "no i2c number" | ||
exit; | ||
fi | ||
|
||
OUT=`ddccontrol -r 0x10 dev:/dev/i2c-${1} 2>/dev/null | grep -i Control ` | ||
|
||
OUT=${OUT##*Control} | ||
|
||
OUT=${OUT#*/} | ||
BRIGHTNESS=${OUT%/*} | ||
|
||
printf $BRIGHTNESS > $HOME/.cache/wayward-brightness | ||
exit; | ||
|
File renamed without changes.
Oops, something went wrong.