switch to nouveau

auto-flake-update
Yorick van Pelt 2016-09-19 00:08:01 +02:00
parent 399c189fdd
commit 746ca3197d
3 changed files with 11 additions and 10 deletions

View File

@ -8,10 +8,10 @@
E_NOARGS=75 E_NOARGS=75
backlight_path=/sys/class/backlight/nvidia_backlight backlight_path=/sys/class/backlight/nv_backlight
usage() { usage() {
echo "Usage: brightne.sh [set|fix|up|down] arg between 0 and 1024" echo "Usage: brightne.sh [set|fix|up|down] arg between 0 and 1000"
} }
get_raw_maximum() { get_raw_maximum() {
@ -26,7 +26,7 @@ set_raw() {
echo $1 > $backlight_path/brightness echo $1 > $backlight_path/brightness
} }
# from 0-1024 to 0-max # from 0-1000 to 0-max
scale_to_bl() { scale_to_bl() {
get_raw_maximum get_raw_maximum
max=$? max=$?
@ -34,14 +34,14 @@ scale_to_bl() {
} }
scale_from_to() { scale_from_to() {
echo "$2 * $1 / 1024" | bc echo "$2 * $1 / 1000" | bc
} }
# from 0-max to 0-1024 # from 0-max to 0-1000
scale_from_bl() { scale_from_bl() {
get_raw_maximum get_raw_maximum
max=$? max=$?
echo "1024 * $1 / $max" | bc echo "1000 * $1 / $max" | bc
} }
off() { off() {

View File

@ -175,8 +175,8 @@ exec --no-startup-id ${xautolock}/bin/xautolock -time 15 -locker ${locker} -lock
'') + '' '') + ''
bindsym XF86MonBrightnessUp exec ${brightness}/bin/brightness up 50 bindsym XF86MonBrightnessUp exec ${brightness}/bin/brightness up 10
bindsym XF86MonBrightnessDown exec ${brightness}/bin/brightness down 50 bindsym XF86MonBrightnessDown exec ${brightness}/bin/brightness down 10
bindsym XF86AudioLowerVolume exec ${alsaUtils}/bin/amixer set Master 1%- bindsym XF86AudioLowerVolume exec ${alsaUtils}/bin/amixer set Master 1%-
bindsym XF86AudioRaiseVolume exec ${alsaUtils}/bin/amixer set Master 1%+ bindsym XF86AudioRaiseVolume exec ${alsaUtils}/bin/amixer set Master 1%+
bindsym XF86AudioMute exec ${alsaUtils}/bin/amixer set Master toggle bindsym XF86AudioMute exec ${alsaUtils}/bin/amixer set Master toggle

View File

@ -11,9 +11,10 @@ backend = "glx"
paint-on-overlay = true; paint-on-overlay = true;
glx-no-stencil = true; glx-no-stencil = true;
glx-no-rebind-pixmap = true; glx-no-rebind-pixmap = true;
glx-swap-method = -1;
# With newer NVIDIA drivers, this option is needed to prevent lags/flickering: # With newer NVIDIA drivers, this option is needed to prevent lags/flickering:
xrender-sync-fence = true; #xrender-sync-fence = true;
unredir-if-possible = true; unredir-if-possible = true;
vsync = "opengl-swc"; vsync = "opengl-oml";