sb: use gammastep on wayland
This commit is contained in:
parent
4537d3777f
commit
b318bc2ee4
1 changed files with 14 additions and 1 deletions
15
.aliases.sh
15
.aliases.sh
|
@ -8,7 +8,13 @@ export HISTSIZE=100
|
||||||
bindkey "^[[1;5C" forward-word
|
bindkey "^[[1;5C" forward-word
|
||||||
bindkey "^[[1;5D" backward-word
|
bindkey "^[[1;5D" backward-word
|
||||||
|
|
||||||
function screen_brightness() {
|
function screen_brightness_wlroots() {
|
||||||
|
brightness="${1:-1}"
|
||||||
|
temp="${2:-6500}"
|
||||||
|
|
||||||
|
gammastep -b "$brightness" -O "$temp"
|
||||||
|
}
|
||||||
|
function screen_brightness_x11() {
|
||||||
redshift -x
|
redshift -x
|
||||||
|
|
||||||
brightness="${1:-1}"
|
brightness="${1:-1}"
|
||||||
|
@ -19,6 +25,13 @@ function screen_brightness() {
|
||||||
|
|
||||||
redshift -O "$temp"
|
redshift -O "$temp"
|
||||||
}
|
}
|
||||||
|
function screen_brightness() {
|
||||||
|
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
||||||
|
screen_brightness_x11 "$@"
|
||||||
|
else
|
||||||
|
screen_brightness_wlroots "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
alias sb=screen_brightness
|
alias sb=screen_brightness
|
||||||
|
|
||||||
function upload() {
|
function upload() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue