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
Section "Device" | |
Identifier "nvidia" | |
Driver "nvidia" | |
Option "Coolbits" "31" | |
EndSection |
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
#!/bin/sh | |
. "$PM_FUNCTIONS" | |
case "$1" in | |
true) | |
# Disable keyboard backlight, and set thermal control to silent | |
echo 0 > /sys/devices/platform/sony-laptop/kbd_backlight | |
echo silent > /sys/devices/platform/sony-laptop/thermal_control;; | |
false) |
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
--- /usr/lib/cryptsetup/cryptdisks-functions 2019-08-06 19:59:34.836001686 +0200 | |
+++ /usr/lib/cryptsetup/cryptdisks-functions-new 2019-08-06 19:59:19.824001638 +0200 | |
@@ -186,6 +186,13 @@ | |
log_action_end_msg 0 | |
} | |
_do_stop_callback() { | |
+ # No intentar detener el volumen encriptado que contiene un LV | |
+ # donde está montado /. Como / no se puede desmontar, el LV no se | |
+ # puede desactivar limpiamente, y tampoco se puede parar el volumen | |
+ # encriptado. Lo importante es que el sistema de ficheros se |
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
sh -c 'pactl set-sink-mute 0 toggle && ([ $(pactl list sinks | sed -n "/Mute: .*$/{s/^[[:space:]]*Mute: //;p};/^Sink #1$/q") = "no" ] && notify-send "Control de volumen" "Sonido no silenciado." --icon=audio-volume-medium || notify-send "Control de volumen" "Sonido silenciado." --icon=audio-volume-muted)' | |
sh -c 'pactl set-sink-volume 0 -2% && notify-send "Control de volumen" "Bajado volumen en un 2%." --icon=audio-volume-low' | |
sh -c 'pactl set-sink-volume 0 "+2%" && notify-send "Control de volumen" "Incrementado volumen en un 2%." --icon=audio-volume-high' |
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
#!/bin/sh | |
# Sale del script mostrando un mensaje de error, con un determinado | |
# código de error. | |
salirConError() { | |
printf '\n' | |
echo "! $1" 1>&2 | |
codigoError=$2 | |
if [ -z "$codigoError" -o $codigoError -eq 0 ]; then |
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
size_t FilesSelected(OPENFILENAME ofn, size_t bufferSize) | |
{ | |
// ofn.lpstrFile format: | |
// - If the user picks one file: folder\file\0\0 | |
// - If the user picks several files: folder\0file1\0file2\0fileN\0\0 | |
// This function assumes that input parameters are valid and is used just after GetOpenFileName returns with success. | |
size_t toret = 0; | |
BOOL bBufferEnd = FALSE; |
NewerOlder