DESKTOP LIGHT
ESCRITORIO MÁS PEQUEÑO
i3 vine con manjaro y Archmerge y el gestor de ventanas tiny wm
magemagick is a collection of tools and libraries for many image formats. It is pre-installed in most distributions. You can check the availability of the binary needed by typing
$ which import
/usr/bin/import
Step 1: create shell script for making screenshots
First of all you will need to create a file with name screenshot.sh for example in /usr/local/bin/ directory. It should contain next lines:
#!/bin/bash
DATE=`date +%Y-%m-%d\ %H:%M:%S`
import -window root "$HOME/Desktop/screenshot $DATE.png"
What does this script do? First line of the script code assigns current date in format YYYY-mm-dd hh:mm:ss to DATE variable. Next line grabs the root window and writes a file named screenshot 'YYYY-mm-dd hh:mm:ss.png' to your ~/Desktop/ directory
Step 2: make script executable
$ sudo chmod a+x /usr/local/bin/screenshot.sh
That's all. Go next step.
Step 3: Make openbox run this script on pressing PrintScreen key
Edit file ~/.config/openbox/lxde-rc.xml and make sure to append there the following in the <keyboard> section:
<keybind key="Print">
<action name="Execute">
<command>screenshot.sh</command>
</action>
</keybind>
Now either relogin to load the new configuration or type:
$ openbox --reconfigure
OPENBOX
https://www.youtube.com/watch?v=haIbR8qLDBc
http://www.comoinstalarlinux.com/como-instalar-openbox-en-arch-linux-y-personalizarlo/
https://www.youtube.com/watch?v=5caYyDsuy8w
https://www.youtube.com/watch?v=r36U0A-XnjA
Durante la instalación de arch-chroot:
Haz propia la partición /home anterior.
Borra:rm -rv /home/tu-usuario/.bash_profile .Xauthority .local
Añade:
sudo chown -R manolo:users /home/manolo
Si algo no te funciona añade el grupo:
sudo gpasswd -a usario audio etc etc
Conéctate a la red con Netctl
Deshabilitar otros demonios como NetworkManager ModemManager y wicd, desistalar todas sus dependencias y reiniciar el pc, luego:
sudo pacman -S netctl wpa_supplicant && sudo systemctl enable netctl
sudo cp /etc/netctl/examples/wireless-wpa /etc/netctl/wifi
sudo cp /etc/netctl/examples/ethernet-dhcp /etc/netctl/cable
sudo netctl start wifi
sudo netctl start cable
Ver redes:
sudo wifi-menu
Poner sus respectivos nombres con
ip link
y añadir la contraseña del wifi.
Para activar el wifi finalmente escribe:
sudo wifi-menu -o
Si a posteriori quieres modificarlo, por ejemplo:
sudo netctl edit wifi
Activa Sudo
sudo nano /etc/sudoersDale seguridad
Quita los demonios que no se van a usar listándolos con:systemctl list-unit-files
Por ejemplo:
sudo systemctl disable remote-fs.target
Para tener la seguridad de que solo tu accedes al grupo Wheel
sudo nano /etc/pam.d/system-login
auth required pam_tally.so deny=5 unlock_time=6000000 onerr=succeed file=/var/log/faillog
Y también:
sudo nano /etc/pam.d/su
sudo nano /etc/pam.d/su-l
Descomenta este texto de ambos:
auth required pam_wheel.so use_uid
Instala yaourt
sudo nano /etc/pacman.conf
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
sudo pacman -Sy yaourt
Instala openbox y otros
yaourt -S obmenu-generator ufw xorg-xinit xorg-server openbox firefox xfce4-terminal thunar leafpadsudo ufw enable
sudo ufw logging full
sudo ufw status verbose
man ufw
Logueate con xinitrc
cp /etc/X11/xinit/xinitrc ~/.xinitrc
cp /etc/X11/xinit/xserverrc ~/.xinitrrc
nano .xinitrc
#exec xterm -geometry 80x66+0+0 -name login
exec openbox-session
startx
cp /etc/skel/.bash_profile ~/
nano .bash_profile
[ -z "$DISPLAY" -a "$(fgconsole)" -eq 1 ] && exec startx
Pon el teclado en español:
sudo nano /etc/X11/xorg.conf.d/01-keyboard-layout.conf
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "es,us"
Option "XkbModel" "pc104"
Option "XkbVariant" "deadtilde,dvorak"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
Configura openbox
mkdir -p .config/openbox
cp -p /etc/xdg/openbox/* ~/.config/openbox
Instala todos los programas que necesites, desde, hasta tint2:
sudo nano /etc/yaourtrc
NOCONFIRM=1
UP_NOCONFIRM=1
BUILD_NOCONFIRM=1
PU_NOCONFIRM=1
EDITFILES=0
NOENTER=1
EXPORTDIR=/home/tu-usuario/Programas/Yaourt
EXPORT=1
EXPORTSRC=0
yaourt -S lxrandr python2-gnomekeyring alsa-utils recordmydesktop compton xorg-xset volumeicon xarchiver system-config-printer hplip blueman lm_sensors conky obmenu-generator feh lxterminal tumbler leafpad tint2 deadbeef mcomix xine-ui dvdauthor pcmanfm jdownloader2 pepper-flash cronie shalarm fuse-emulator-sdl sdl2-jstest-git joyutils yabause-qt openmsx gcc imagination downgrade youtube-dl-gui-git antimicro ecm-tools fuse-emulator-sdl arnold lib32-openal lib32-openssl s prboom-plus timidity++ timidity-freepats hheretic wget python2-opengl multilib/lib32-mpg123 extra/pyqt4-common extra/python-pyqt4 extra/python2-pyqt4 extra/python2-sip lib32-alsa-lib lib32-alsa-plugins mplayer qmc2 wine winetricks mupen64plus scummvm dosbox qt5-base libcdio zlib gcc sdl lib32-sdl lib32-glew lib32-zlib libmpeg2 sdl2_ttf sdl_ttf expat fontconfig lib32-libxinerama sdl qt4 gcc git hardinfo mednafen midori gimp wget dosfstools xorg-xkill ntfs-3g cups bluez-utils gst-libav ttf-droid ttf-liberation ttf-freefont hunspell-es artwiz-fonts gvfs firefox rtorrent gvfs-mtp wget python2-opengl multilib/lib32-mpg123 extra/pyqt4-common extra/python-pyqt4 extra/python2-pyqt4 extra/python2-sip lib32-libpulse mplayer qmc2 wine winetricks mupen64plus scummvm dosbox qt5-base libcdio zlib gcc sdl lib32-sdl lib32-glew lib32-zlib libmpeg2 sdl2_ttf sdl_ttf expat fontconfig lib32-libxinerama sdl qt4 gcc git hardinfo mednafen midori kdenlive gimp wget dosfstools xorg-fonts ttf-freefont hunspell-es dosfstools ntfs-3g gvfs gvfs-afc udev gpicview gparted guvcview p7zip unrar gnome-mplayer unzip libreoffice-es acetoneiso2 jre8-openjdk jre8-openjdk-headless doom3-bin qemu iat xorg-xinit xorg-server chromium xorg-server xorg-xinit reflector --needed --noconfirm
O bien estos pocos programas:
yaourt -S lxrandr alsa-utils compton xorg-xset volumeicon xarchiver system-config-printer hplip blueman obmenu-generator feh leafpad tint2 deadbeef mcomix pepper-flash cronie shalarm snes9x downgrade youtube-dl-gui-git mpv dosfstools xorg-xkill ntfs-3g cups bluez-utils wget gvfs gvfs-afc udev gpicview guvcview unrar unzip reflector libreoffice-es gst-libav ttf-droid ttf-liberation ttf-freefont hunspell-es artwiz-fonts
Cambia la resolución con lxrandr
Buscala en .config/autostart y crea el documento xrandr.sh
sh -c 'xrandr --output HDMI2 --mode 1280x720'
chmod +x /home/usuario/.config/autostart/xrandr.sh
Y dile al texto .config/openbox/autostart donde está, así:
/home/usuario/.config/autostart/xrandr.sh &
El penúltimo, justo antes de
conky -b &
Genera las entradas en el lanzador para cada programa:
En el propio menu del lanzador o:obmenu-generator -p -i
#openbox --reconfigure
Programas necesarios al inicio:
nano .config/openbox/autostart
#(sleep 3s && nm-applet) &
xset -b &
conky -b &
#nm-applet &
#(sleep 3s && nm-applet) &
#(sleep 3s && conky) &
tint2 &
sh ~/.fehbg &
pkill gvfsd-metadata &
volumeicon &
compton -b &
Cierra sesión para que surja efecto
Sonido por HDMI con alsa-utils y .asoundrc
Se consigue configruando ~/.asoundrc y si quieres puedes copiarla a /etc/asound.confPáginas webs usadas:
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture/Troubleshooting#HDMI_Output_does_not_work
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture_(Espa%C3%B1ol)
http://alsa.opensrc.org/How_to_use_softvol_to_control_the_master_volume
1) Hay que usar como esclavo (slave) de, dmix a, softvol añadiendo su nombre en pcm, para poder reproducir varias aplicaciones a la vez. Y poner ambos como es esclavos de pcm.!default .
Para buscar informacińo sorbre el tema, busca en google:
.asoundrc only one application
aplay -l
Elige la targeta y la salida en la sección de pcm "hw:0,3"
nano .asoundrc
pcm.!default {
type plug
slave.pcm "dmixer"
slave.pcm "newdevice"
}
pcm.dmixer {
type dmix
ipc_key 1024
slave {
pcm "hw:0,3"
period_time 0
period_size 1024
buffer_size 4096
rate 44100
}
bindings {
0 0
1 1
}
}
ctl.dmixer {
type hw
card 0
}
pcm.newdevice {
type softvol
slave {
pcm "dmixer"
}
control {
name "Master"
card 0
}
max_dB 10.0
min_dB -51.0
}
2) Puedes ampliarlo si este te quieres tener control sobre la salida analógica también:
pcm.!default {
type plug
slave.pcm "dmixer"
slave.pcm "newdevice"
}
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid 0
ipc_perm 0660
slave {
pcm "hw:0,3"
period_time 0
period_size 1024
buffer_size 4096
rate 44100
}
bindings {
0 0
1 1
}
}
ctl.dmixer {
type hw
card 0
}
pcm.newdevice {
type softvol
slave {
pcm "hw:0,3"
}
control {
name "Master"
card 0
}
max_dB 10.0
min_dB -51.0
}
pcm.dsp {
type plug
slave.pcm "dmix"
}
3) Emula souround con solo hardware stereo con 4 canales
pcm.ch40dup {
type route
slave.pcm dmixer
slave.channels 4
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
}
4) O este otro con 5 canales
pcm.ch51dup {
type route
slave.pcm dmixer
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.5
ttable.1.4 0.5
}
5) Grabar Sonido interno y micrófono:
pcm.usb
{
type hw
card U0x46d0x81d (reemplázalo con el nombre del cámara, con arecord -l)
}
pcm.!default
{
type asym
playback.pcm
{
type plug
slave.pcm "dmix"
}
capture.pcm
{
type plug
slave.pcm "usb"
}
}
Reemplace «U0x46d0x81d» con el nombre de la tarjeta del dispositivo de captura en ALSA. Es posible utilizar la orden arecord -L para listar todos los dispositivos de captura detectados por ALSA.
El micrófono interno no funciona
En primer lugar, asegúrese, en almixer, de que todos los niveles del volumen, en la sección de grabación, están activados. Para obtener un nuevo ajuste del volumen, llamado Capture, que registre el micrófono interno, vuelva a añadir una nueva opción al archivo /etc/sound.conf y recargue el módulo snd-*. Por ejemplo, para snd-hda-intel, añada:
options snd-hda-intel enable_msi=1
Recargando el módulo (como se indica abajo), activará el nuevo ajuste del volumen de grabación (Capture) y luego pruebe.
# rmmod snd-hda-intel && modprobe snd-hda-intel
Sonido para wine y otros:
https://bbs.archlinux.org/viewtopic.php?id=145505
https://dl.dropboxusercontent.com/u/18371907/asoundrc
pcm.wine {
type plug
# Output directly, for performance
#slave.pcm "hw:0"
slave.pcm "surround20"
}
Grabar audio con cam y pantalla.
https://trac.ffmpeg.org/wiki/Capture/ALSALos números designan:
1,0 son Card y Device respectívamente
Número de los dispositivos:
aplay -l
Mis dispositivos:
0,3 Hdmi
1,0 Analógico
1,1 Analógico/digital
Nombre de los dispositivos:
aplay -L
Solo dispositivos grabación:
arecord -l
1,0 Analógico
1,2 Analógico
2,0 Cam
Grabarlos:
ffmpeg -f alsa -i plughw:1,0 -t 30 out.wav
ffmpeg -f alsa -i plughw:1,2 -t 30 out.wav
CAM, con retraso.
Soporte de vídeo de la cam:
ffplay -f video4linux2 -list_formats all /dev/video0
Comprueba que funciona:
ffplay -f video4linux2 -framerate 30 -video_size hd720 /dev/video0
Graba video:
ffmpeg -f video4linux2 -input_format yuyv422 -i /dev/video0 out.mp4
Grabar con la cam a menos -ar, mejor:
ffmpeg -f alsa -ac 1 -ar 15000 -i hw:2 out.wav
https://bbs.archlinux.org/viewtopic.php?id=197166
Como grabar con ffmpeg y con recordmydesktop, el último es mejor para programas potentes.
ffmpeg:
ffmpeg -f alsa -ac 1 -ar 5000 -i hw:2,0 -f x11grab -s 1920x1080 -r 30 -i :0.0 /home/usuario/Vídeos/Captura/`date +%Y%m%d_%H%M%S`.avi
Comprimir:
ffmpeg -i 20161212_035037.avi -c:v libxvid -b:v 3000k COMPRIMIDO.avi
recordMyDesktop
Crea una carpeta para archivos tmp, en este caso TmpRecordMyDesktop:
recordmydesktop --device plughw:2,0 --fps 30 --workdir /home/mando/Vídeos/Captura/TmpRecordMyDesktop -o /home/usuario/Vídeos/Captura/`date +%Y%m%d_%H%M%S`
Comprimir:
ffmpeg -i 20161212_035037.ogv -vcodec libvpx -acodec libvorbis -f webm "OUTPUT.webm"
Para salir de ambos basta con usar pkill.
Tambien puedes modificar el sonido con ayuda de asoundrc gracias a xfce4-mixer
sudo pacman -S xfce4-mixer libpulse
Origenes de pulse y alsa
1) Gracias al programa libpulse, que trabaja con alsa, su configuración está en:
/etc/pulse/client.conf
Donde puedes rellenar estos espacios
default-sink =
; default-source =
2) También depende de:
/etc/libao.conf
default_driver=alsa
dev=default
Que puedes dejar de esta forma:
default_driver=pulse
3) También hay otro documento en:
sudo nano /etc/modprobe.d/alsa.conf
4) En /usr/share/ está:
alsa.conf cards pcm sndo-mixer.alisp topology
alsa.conf.d init smixer.conf speaker-test ucm
En alsa.conf está todos los pcm descritos.
5) En /var/lib/alsa/asound.state se guarda un documento con cada configuración, cada vez que apagas el pc, si te da errores de sobrecalentamiento o congelación, bórralo
sudo rm /var/lib/alsa/asound.state
Reinicia y vuélvelo a crear con:
sudo alsactl store
INICIO AUTOMÁTICO
mkdir /etc/ystem/system/getty@tty1.service.d
Sonido HDMI con Pulseaudio, que es un configurador de alsa
Renombra .asoundrcsudo pacman -S pulseaudio pavucontrol
#pulseaudio-alsa
Vacía el contenido de /etc/asound.conf copiándolo previamente
Lanza pavucontrol y en salida, con cada aplicación te saldrá una barra, selecciona tu tarjeta.
Sino te saliera, ajusta la aplicación, por ejemplo mednafen, requiere en mednafen09x.cfg en la sección Sound driver quitar alsa y poner SDL, o en deadbeef buscar en preferencias y poner pulseaudio.
A) Poner por dedecto Pulseaudio, que omitirá .asoundrc
https://wiki.archlinux.org/index.php/PulseAudio/Examples
Copia el contenido de:
pacmd list-sources | grep -e device.string -e 'name:'
pacmd list-sinks | grep -e 'name:' -e 'index'
En esta dirección:
sudo leafpad /etc/pulse/default.pa
De esta forma, tras set-default-source:
set-default-source alsa_output.pci-0000_04_01.0.analog-stereo.monitor
set-default-sink .................................
Para subir el volumen; y bajarlo con -50%:
pactl set-sink-volume 0 +50%
Control de volumen:
https://wiki.archlinux.org/index.php/tint2#Volume_control
Ahora todo funciona a través de libpulse
B) Quitar pulseaudio y volver a la configuración anterior
puluseaudio -fsudo pacman -Rcs pulseaudio
sudo rm -rv /etc/pulse
Reinicia, para ver el estado del sonido, y buscar en google, si hace ruido, funciona. Si alguna aplicación no funciona, configúrala para alsa:
speaker-test
Para crear el archivo /etc/modprobe.d/alsa-base.conf
speaker-test -D default:PCH -c 2
Donde 2 es el número de altavoces.
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card
Más información con man speaker-test
Fondo de escritorio:
feh --bg-fill '/home/usuario/Imágenes/Youtubers/dariafondo.png'
La barra tint2
https://code.google.com/archive/p/tint2/wikis/Configure.wiki
#---- Generated by tint2conf 2641 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
# Background 1: Panel
rounded = 0
border_width = 0
background_color = #000000 60
border_color = #000000 30
background_color_hover = #000000 60
border_color_hover = #000000 30
background_color_pressed = #000000 60
border_color_pressed = #000000 30
# Background 2: Default task, Iconified task
rounded = 4
border_width = 1
background_color = #777777 20
border_color = #777777 30
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44
# Background 3: Active task
rounded = 4
border_width = 1
background_color = #777777 20
border_color = #ffffff 40
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44
# Background 4: Urgent task
rounded = 4
border_width = 1
background_color = #aa4400 100
border_color = #aa7733 100
background_color_hover = #cc7700 100
border_color_hover = #aa7733 100
background_color_pressed = #555555 4
border_color_pressed = #aa7733 100
# Background 5: Tooltip
rounded = 1
border_width = 1
background_color = #ffffaa 100
border_color = #000000 100
background_color_hover = #ffffaa 100
border_color_hover = #000000 100
background_color_pressed = #ffffaa 100
border_color_pressed = #000000 100
#-------------------------------------
# Panel
panel_items = LTSC
panel_size = 100% 30
panel_margin = 0 0
panel_padding = 2 0 2
panel_background_id = 1
wm_menu = 1
panel_dock = 0
panel_position = bottom center horizontal
panel_layer = top
panel_monitor = 1
primary_monitor_first = 0
autohide = 0
autohide_show_timeout = 0
autohide_hide_timeout = 0.5
autohide_height = 2
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 1
mouse_effects = 1
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0
#-------------------------------------
# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 0 0 2
taskbar_background_id = 0
taskbar_active_background_id = 0
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 4 2
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font_color = #e3e3e3 100
taskbar_name_active_font_color = #ffffff 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left
#-------------------------------------
# Task
task_text = 1
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 100000
task_maximum_size = 150 35
task_padding = 2 2 4
task_tooltip = 1
task_font_color = #ffffff 100
task_background_id = 2
task_active_background_id = 3
task_urgent_background_id = 4
task_iconified_background_id = 2
mouse_left = toggle_iconify
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify
#-------------------------------------
# System tray (notification area)
systray_padding = 0 4 2
systray_background_id = 0
systray_sort = ascending
systray_icon_size = 24
systray_icon_asb = 100 0 0
systray_monitor = 1
#-------------------------------------
# Launcher
launcher_padding = 2 4 2
launcher_background_id = 0
launcher_icon_background_id = 0
launcher_icon_size = 24
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 1
launcher_tooltip = 1
launcher_item_app = /usr/share/applications/reboot.desktop
launcher_item_app = /usr/share/applications/apagar.desktop
launcher_item_app = /usr/share/applications/pavucontrol.desktop
launcher_item_app = /usr/share/applications/tint2conf.desktop
launcher_item_app = /usr/local/share/applications/tint2conf.desktop
launcher_item_app = /usr/share/applications/firefox.desktop
launcher_item_app = /usr/share/applications/jdownloader.desktop
launcher_item_app = /usr/share/applications/lxterminal.desktop
launcher_item_app = /usr/share/applications/leafpad.desktop
launcher_item_app = /usr/share/applications/chromium.desktop
launcher_item_app = /usr/share/applications/youtube-dl-gui.desktop
launcher_item_app = /usr/share/applications/libreoffice-writer.desktop
launcher_item_app = /usr/share/applications/deadbeef.desktop
launcher_item_app = /usr/share/applications/xfce4-screenshooter.desktop
launcher_item_app = /usr/share/applications/pcmanfm.desktop
launcher_item_app = /usr/share/applications/pantalla.desktop
launcher_item_app = /usr/share/applications/sonic.desktop
launcher_item_app = /usr/share/applications/salvapantalla.desktop
launcher_item_app = /usr/share/applications/android.desktop
launcher_item_app = /usr/share/applications/capturapantalla.desktop
launcher_item_app = /usr/share/applications/parargrabacion.desktop
launcher_item_app = /usr/share/applications/arnold.desktop
#-------------------------------------
# Clock
time1_format = %H:%M
time2_format = %A %d %B
time1_timezone =
time2_timezone =
clock_font_color = #ffffff 100
clock_padding = 2 0
clock_background_id = 0
clock_tooltip =
clock_tooltip_timezone =
clock_lclick_command =
clock_rclick_command = orage
clock_mclick_command =
clock_uwheel_command =
clock_dwheel_command =
#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_font_color = #ffffff 100
battery_padding = 1 0
battery_background_id = 0
battery_hide = 101
battery_lclick_command =
battery_rclick_command =
battery_mclick_command =
battery_uwheel_command =
battery_dwheel_command =
ac_connected_cmd =
ac_disconnected_cmd =
#-------------------------------------
# Tooltip
tooltip_show_timeout = 0.5
tooltip_hide_timeout = 0.1
tooltip_padding = 2 2
tooltip_background_id = 5
tooltip_font_color = #222222 100
Cerrar sesión
Salvapantallas
https://wiki.archlinux.org/index.php/Display_Power_Management_SignalingCon este script, nunca salta el salvapantallas:
sudo leafpad /etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
Identifier "LVDS0"
Option "DPMS" "true"
EndSection
Section "ServerLayout"
Identifier "ServerLayout0"
Option "StandbyTime" "15"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "BlankTime" "0"
EndSection
Evitar que se active dpms, por lo que se apagará en 10 minutos por systemd:
xset s off -dpms
Apagar la pantalla:
xset dpms force off
1) Con este scrip se puede lanzar haciendo un ./ con un .desktop , para poner en reposo la pantalla.
#!/bin/bash
export DISPLAY=:0.0
xset dpms force off
2) Añadiendo esto a, para cerrar sesion y poner salvapantallas.
#!/bin/bash
export DISPLAY=:0.0
xset -dpms
(sleep 1s && openbox --exit)
Control de brillo
The xbacklight program is used to control screen brightness, which is part of the Xorg X-Window system. In the example below, the multimedia keys intended to control the screen brightness will adjust the settings by +/- 10%:
<keybind key="XF86MonBrightnessUp">
<action name="Execute">
<command>xbacklight +10</command>
</action>
</keybind>
<keybind key="XF86MonBrightnessDown">
<action name="Execute">
<command>xbacklight -10</command>
</action>
</keybind>
Impresora
Abrir system-config-printer y luego reiniciar el pc y volver a abrirlo.
Número de escritorios
nano .config/openbox/rc.xml
Busca desktops y en la primera línea donde pone 4, pon 1.
CONKY
conky -b
sudo mkdir /etc/conky
mkdir -p ~/.config/conky
conky -C > ~/.config/conky/conky.conf
leafpad /.config/conky/conky.conf
alignment top_right
background no
border_width 0
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders yes
draw_graph_borders yes
draw_outline yes
draw_shades no
use_xft yes
font = profont:size=13
gap_x 1
gap_y 20
minimum_size 5 6
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline yes
own_window yes
own_window_class Conky
own_window_type desktop
own_window_transparent yes
stippled_borders 0
update_interval 3.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
TEXT
$kernel on $machine
Tiempo encendido de la bestia:$color $uptime
Potencia Core 1: ${cpu cpu1}% $alignr ${exec awk '/cpu MHz/{i++}i==1{printf "%.f",$4; exit}' /proc/cpuinfo} MHz $alignr ${cpubar cpu1 8,60}
Potencia Core 2: ${cpu cpu2}% $alignr ${exec awk '/cpu MHz/{i++}i==2{printf "%.f",$4; exit}' /proc/cpuinfo} MHz $alignr ${cpubar cpu2 8,60}
Potencia total:$color $cpu% ${cpubar 4}
Grados Core 1: ${exec sensors | grep 'Core 0' | cut -c18-21}
Grados Core 2: ${exec sensors | grep 'Core 1' | cut -c18-21}
RAM:$color $mem/$memmax - $memperc% ${membar 4}
#Swap:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${voffset 6}${font Pie charts for maps:size=14}${font} ${voffset -5} Raiz:${alignr} ${fs_used_perc /}% ${fs_used /} ${fs_free /} ${fs_size /}
${voffset 6}${fs_bar 12 /}
${voffset 6}${font Pie charts for maps:size=14}${font} ${voffset -5} Casa:${alignr} ${fs_used_perc /home}% ${fs_used /home} ${fs_free /home} ${fs_size /home}
${voffset 6}${fs_bar 12 /home}
Descarga: $color${downspeed enp3s0}/s ${alignr}Subida: ${upspeed enp3s0}/s
${downspeedgraph enp3s0 25,140 000000 ff0000} ${alignr}${upspeedgraph enp3s0
25,140 000000 00ff00}$color
Total: ${totaldown enp3s0} ${alignr}Total: ${totalup enp3s0}
------------------Nombre----------------Pid-------Cpu----Mem
$alignr ${top name 1} $alignr ${top pid 1} $alignr ${top cpu 1} $alignr ${top mem 1}
$alignr ${top name 2} $alignr ${top pid 2} $alignr ${top cpu 2} $alignr ${top mem 2}
$alignr ${top name 3} $alignr ${top pid 3} $alignr ${top cpu 3} $alignr ${top mem 3}
$alignr ${top name 4} $alignr ${top pid 4} $alignr ${top cpu 4} $alignr ${top mem 4}
$alignr ${top name 5} $alignr ${top pid 5} $alignr ${top cpu 5} $alignr ${top mem 5}
$alignr ${top name 6} $alignr ${top pid 6} $alignr ${top cpu 6} $alignr ${top mem 6}
$alignr ${top name 7} $alignr ${top pid 7} $alignr ${top cpu 7} $alignr ${top mem 7}
$alignr ${top name 8} $alignr ${top pid 8} $alignr ${top cpu 8} $alignr ${top mem 8}
$alignr ${top name 9} $alignr ${top pid 9} $alignr ${top cpu 9} $alignr ${top mem 9}
$alignr ${top name 10} $alignr ${top pid 10}$alignr ${top cpu 10}$alignr ${top mem 10}
${memgraph 20,300 98FB98 E35656 -t -l}
Procesos: $processes Corriendo: $running_processes
Internet conky
Sustituir eth0 por tu ip link en conky.conf
Sustituir entre &hr de NETWORK para unas gráficas de control de tráfico:
#${color black}NETWORK (${addr enp3s0}) ${hr 2}$color (línea innecesaria pero funciona)
$hr
Down: $color${downspeed enp3s0}/s ${alignr}Up: ${upspeed enp3s0}/s
${downspeedgraph enp3s0 25,140 000000 ff0000} ${alignr}${upspeedgraph enp3s0
25,140 000000 00ff00}$color
Total: ${totaldown enp3s0} ${alignr}Total: ${totalup enp3s0}
$hr
Temperatura de la cpu conky:
#sudo sensors-detect
#sensors
Cambia esta línea para bajar el tamaño de la letra:
xftfont DejaVu Sans Mono:size=10
Añade al final:
${color #42AE4A}Core 0 Temp: ${color lightgrey}${exec sensors | grep 'Core 0' | cut -c18-21}
${color #42AE4A}Core 1 Temp: ${color red}${exec sensors | grep 'Core 1' | cut -c18-21}
Transparente conky, sin compton:
own_window_transparent yes
Y cambia los colores de las letras sino las ves:
${color #e16021}Core 0 Temp: ${color black}${exec sensors | grep 'Core 0' | cut -c18-21}
${color #e16021}Core 1 Temp: ${color black}${exec sensors | grep 'Core 1' | cut -c18-21}
Script de actualizado y limpieza
#!/bin/bash
sudo reflector --sort rate -l 4 --save /etc/pacman.d/mirrorlist
yaourt -Syyua
sudo pacman -Scc --noconfirm
sudo pacman -Rns $(pacman -Qtdq) --noconfirm
sudo rm -rv /root/.local/share/Trash/*
sudo rm -rv /var/log/*
rm -rv ~/.cache
rm -rv ~/.config/chromium/Default/'Pepper Data'
rm -rv ~/.macromedia
Añadir su dirección a:
cp /etc/bash.bashrc ~/.bashrc
nano .bashrc
Primera línea:
alias up='/home/usuario/Programas/Limpiar flash.sh'
Imprime PDF con Chromium
Pues eso.Suspender al cerrar la tapa:
https://wiki.archlinux.org/index.php/Acpid
Inivir antes de suspender:
https://wiki.archlinux.org/index.php/Power_management#Power_management_with_systemd
Sombras compton
Para añadir aplicaciones que no funcionen con compton, por ejemplo leafpad :sudo nano /etc/xdg/compton.conf
"name = 'leafpad'",
"class_g = 'leafpad'",
Se guarda automáticamente en /home
Tamaño predeterminado de leafpad:
Cambiar su .desktop así:Exec=leafpad %f
Por:
Exec=leafpad --tab-width=4 %f
CURIOSIDADES
* Vamos a nuestra terminal y vamos a instalar lo siguiente:
sudo pacman -S obconf obmenu oblogout lxappearance menumaker compton conky nitrogen tint2 volumeicon
$ yaourt -S obkey
- obconf: Sirve para configurar Openbox.
- obmenu: Sirve para editar los menù de Openbox.
- oblogout: Gestor para gestionar el Apagado, Renicio, Suspender y Cerrar Sesiòn.
- lxappearance: Sirve para seleccionar los GTK Themes.
- menumaker: Sirve para crear los menús diretamente en xml (También sirve para otros gestores).
- obkey (El que descargamos de AUR): Sirve para configurar los atajos de teclado.
sudo pacman -S compton conky nitrogen network-manager-applet tilda volumeicon
* Ahora les comento un pequeño detalle de que son éstos programas:
- compton: Sirve para darle profundidad, sombras, transparencias, etc a nuestras ventanas.
- nitrogen: Gestiona el fondo de pantalla.
- network-manager-applet: Sirve para nuestras conexiones de red como ser Eth y Wi-Fi.
- tilda: Terminal customizable, ocupa pocos recursos.
- volumeicon: Nos servirá para administrar el volumen en nuestro desde la taskbar.
- rc.xml: Èste sirve para controlar los atajos de nuestro teclado. Podemos abreviar teclas para ejecutar aplicaciones, minimizar, movernos entre escritorios, cerrar una ventana, etc.
Transparencias y sombras para las ventanas:
https://wiki.archlinux.org/index.php/Xcompmgr
sudo pacman -S xcompmgr transset-df
su
touch /usr/bin/xocompmgr_openbox
nano /usr/bin/xcompmgr_openbox
sudo chmod 755 /usr/bin/xocompmgr_openbox
nano .config/openbox/menu.xml
<menu execute="xcompmgr_openbox" id="CompositingPipeMenu" label="Compositing"/>
the script:
#!/bin/bash
# Openbox Pipe Menu for xcompmgr
# Written for CrunchBang Linux <http://crunchbang.org/projects/linux/>
# by Philip Newborough (aka corenominal) <mail@philipnewborough.co.uk>
# Set xcompmgr command options
#EXEC='xcompmgr -c -t-5 -l-5 -r4.2 -o.55' #basic
EXEC='xcompmgr -cCfF -t-5 -l-5 -r4.2 -o.11 -D7 -m.86' # more bling
# Toggle compositing. Call with "xcompmgr_openbox --startstop"
if [ "$1" = "--startstop" ]; then
if [ ! "$(pidof xcompmgr)" ]; then
$EXEC
else
killall xcompmgr
fi
exit 0
fi
# Output Openbox menu
if [ ! "$(pidof xcompmgr)" ]; then
cat << _EOF_
<openbox_pipe_menu>
<item label="Enable Compositing">
<action name="Execute">
<execute>
xcompmgr_openbox --startstop
</execute>
</action>
</item>
</openbox_pipe_menu>
_EOF_
else
cat << _EOF_
<openbox_pipe_menu>
<item label="Remove Transparency from Target Window">
<action name="Execute">
<execute>
transset 1
</execute>
</action>
</item>
<item label="Set Target Window Transparency to 10%">
<action name="Execute">
<execute>
transset .90
</execute>
</action>
</item>
<item label="Set Target Window Transparency to 20%">
<action name="Execute">
<execute>
transset .80
</execute>
</action>
</item>
<item label="Set Target Window Transparency to 30%">
<action name="Execute">
<execute>
transset .70
</execute>
</action>
</item>
<item label="Set Target Window Transparency to 40%">
<action name="Execute">
<execute>
transset .60
</execute>
</action>
</item>
<item label="Set Target Window Transparency to 50%">
<action name="Execute">
<execute>
transset .50
</execute>
</action>
</item>
<item label="Set Target Window Transparency to 60%">
<action name="Execute">
<execute>
transset .40
</execute>
</action>
</item>
<item label="Set Target Window Transparency to 70%">
<action name="Execute">
<execute>
transset .30
</execute>
</action>
</item>
<item label="Set Target Window Transparency to 80%">
<action name="Execute">
<execute>
transset .20
</execute>
</action>
</item>
<item label="Set Target Window Transparency to 90%">
<action name="Execute">
<execute>
transset .10
</execute>
</action>
</item>
<separator/>
<item label="Disable Compositing">
<action name="Execute">
<execute>
xcompmgr_openbox --startstop
</execute>
</action>
</item>
</openbox_pipe_menu>
_EOF_
fi
exit 0
Aquí mi rc.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc"
xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->
<followMouse>no</followMouse>
<!-- move focus to a window when you move the mouse into it -->
<focusLast>yes</focusLast>
<!-- focus the last used window when changing desktops, instead of the one
under the mouse pointer. when followMouse is enabled -->
<underMouse>no</underMouse>
<!-- move focus under the mouse, even when the mouse is not moving -->
<focusDelay>200</focusDelay>
<!-- when followMouse is enabled, the mouse must be inside the window for
this many milliseconds (1000 = 1 sec) before moving focus to it -->
<raiseOnFocus>no</raiseOnFocus>
<!-- when followMouse is enabled, and a window is given focus by moving the
mouse into it, also raise the window -->
</focus>
<placement>
<policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
<center>yes</center>
<!-- whether to place windows in the center of the free area found or
the top left corner -->
<monitor>Primary</monitor>
<!-- with Smart placement on a multi-monitor system, try to place new windows
on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
the active window is, 'Primary' - only on the primary monitor -->
<primaryMonitor>1</primaryMonitor>
<!-- The monitor where Openbox should place popup dialogs such as the
focus cycling popup, or the desktop switch popup. It can be an index
from 1, specifying a particular monitor. Or it can be one of the
following: 'Mouse' - where the mouse is, or
'Active' - where the active window is -->
</placement>
<theme>
<name>Clearlooks</name>
<titleLayout>NLIMC</titleLayout>
<!--
available characters are NDSLIMC, each can occur at most once.
N: window icon
L: window label (AKA title).
I: iconify
M: maximize
C: close
S: shade (roll up/down)
D: omnipresent (on all desktops).
-->
<keepBorder>yes</keepBorder>
<animateIconify>yes</animateIconify>
<font place="ActiveWindow">
<name>sans</name>
<size>8</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveWindow">
<name>sans</name>
<size>8</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuHeader">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuItem">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="ActiveOnScreenDisplay">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveOnScreenDisplay">
<name>sans</name>
<size>9</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
</theme>
<desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
during a session
these are default values to use when other ones are not already set
by other applications, or saved in your session
use obconf if you want to change these without having to log out
and back in -->
<number>1</number>
<firstdesk>1</firstdesk>
<names>
<!-- set names up here if you want to, like this:
<name>desktop 1</name>
<name>desktop 2</name>
-->
</names>
<popupTime>875</popupTime>
<!-- The number of milliseconds to show the popup for when switching
desktops. Set this to 0 to disable the popup. -->
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Nonpixel</popupShow>
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
<popupPosition>Center</popupPosition>
<!-- 'Center', 'Top', or 'Fixed' -->
<popupFixedPosition>
<!-- these are used if popupPosition is set to 'Fixed' -->
<x>10</x>
<!-- positive number for distance from left edge, negative number for
distance from right edge, or 'Center' -->
<y>10</y>
<!-- positive number for distance from top edge, negative number for
distance from bottom edge, or 'Center' -->
</popupFixedPosition>
</resize>
<!-- You can reserve a portion of your screen where windows will not cover when
they are maximized, or when they are initially placed.
Many programs reserve space automatically, but you can use this in other
cases. -->
<margins>
<top>0</top>
<bottom>0</bottom>
<left>0</left>
<right>0</right>
</margins>
<dock>
<position>TopLeft</position>
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
<floatingX>0</floatingX>
<floatingY>0</floatingY>
<noStrut>no</noStrut>
<stacking>Above</stacking>
<!-- 'Above', 'Normal', or 'Below' -->
<direction>Vertical</direction>
<!-- 'Vertical' or 'Horizontal' -->
<autoHide>no</autoHide>
<hideDelay>300</hideDelay>
<!-- in milliseconds (1000 = 1 second) -->
<showDelay>300</showDelay>
<!-- in milliseconds (1000 = 1 second) -->
<moveButton>Middle</moveButton>
<!-- 'Left', 'Middle', 'Right' -->
</dock>
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<!-- Keybindings for desktop switching -->
<keybind key="C-A-Left">
<action name="GoToDesktop"><to>left</to><wrap>no</wrap></action>
</keybind>
<keybind key="C-A-Right">
<action name="GoToDesktop"><to>right</to><wrap>no</wrap></action>
</keybind>
<keybind key="C-A-Up">
<action name="GoToDesktop"><to>up</to><wrap>no</wrap></action>
</keybind>
<keybind key="C-A-Down">
<action name="GoToDesktop"><to>down</to><wrap>no</wrap></action>
</keybind>
<keybind key="S-A-Left">
<action name="SendToDesktop"><to>left</to><wrap>no</wrap></action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktop"><to>right</to><wrap>no</wrap></action>
</keybind>
<keybind key="S-A-Up">
<action name="SendToDesktop"><to>up</to><wrap>no</wrap></action>
</keybind>
<keybind key="S-A-Down">
<action name="SendToDesktop"><to>down</to><wrap>no</wrap></action>
</keybind>
<keybind key="W-F1">
<action name="GoToDesktop"><to>1</to></action>
</keybind>
<keybind key="W-F2">
<action name="GoToDesktop"><to>2</to></action>
</keybind>
<keybind key="W-F3">
<action name="GoToDesktop"><to>3</to></action>
</keybind>
<keybind key="W-F4">
<action name="GoToDesktop"><to>4</to></action>
</keybind>
<keybind key="W-d">
<action name="ToggleShowDesktop"/>
</keybind>
<!-- Keybindings for windows -->
<keybind key="A-F4">
<action name="Close"/>
</keybind>
<keybind key="A-Escape">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<keybind key="A-space">
<action name="ShowMenu"><menu>client-menu</menu></action>
</keybind>
<!-- Keybindings for window switching -->
<keybind key="A-Tab">
<action name="NextWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<keybind key="C-A-Tab">
<action name="NextWindow">
<panels>yes</panels><desktop>yes</desktop>
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<!-- Keybindings for window switching with the arrow keys -->
<keybind key="W-S-Right">
<action name="DirectionalCycleWindows">
<direction>right</direction>
</action>
</keybind>
<keybind key="W-S-Left">
<action name="DirectionalCycleWindows">
<direction>left</direction>
</action>
</keybind>
<keybind key="W-S-Up">
<action name="DirectionalCycleWindows">
<direction>up</direction>
</action>
</keybind>
<keybind key="W-S-Down">
<action name="DirectionalCycleWindows">
<direction>down</direction>
</action>
</keybind>
<!-- Keybindings for running applications -->
<keybind key="W-e">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Konqueror</name>
</startupnotify>
<command>kfmclient openProfile filemanagement</command>
</action>
</keybind>
</keyboard>
<mouse>
<dragThreshold>1</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
<doubleClickTime>500</doubleClickTime>
<!-- in milliseconds (1000 = 1 second) -->
<screenEdgeWarpTime>400</screenEdgeWarpTime>
<!-- Time before changing desktops when the pointer touches the edge of the
screen while moving a window, in milliseconds (1000 = 1 second).
Set this to 0 to disable warping -->
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
<!-- Set this to TRUE to move the mouse pointer across the desktop when
switching due to hitting the edge of the screen -->
<context name="Frame">
<mousebind button="A-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="A-Left" action="Click">
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="A-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Right" action="Drag">
<action name="Resize"/>
</mousebind>
<mousebind button="A-Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="A-S-Up" action="Click">
<action name="SendToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="A-S-Down" action="Click">
<action name="SendToDesktop"><to>next</to></action>
</mousebind>
</context>
<context name="Titlebar">
<mousebind button="Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind button="Up" action="Click">
<action name="if">
<shaded>no</shaded>
<then>
<action name="Shade"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
<action name="Lower"/>
</then>
</action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="if">
<shaded>yes</shaded>
<then>
<action name="Unshade"/>
<action name="Raise"/>
</then>
</action>
</mousebind>
</context>
<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
</context>
<context name="Top">
<mousebind button="Left" action="Drag">
<action name="Resize"><edge>top</edge></action>
</mousebind>
</context>
<context name="Left">
<mousebind button="Left" action="Drag">
<action name="Resize"><edge>left</edge></action>
</mousebind>
</context>
<context name="Right">
<mousebind button="Left" action="Drag">
<action name="Resize"><edge>right</edge></action>
</mousebind>
</context>
<context name="Bottom">
<mousebind button="Left" action="Drag">
<action name="Resize"><edge>bottom</edge></action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
</context>
<context name="TRCorner BRCorner TLCorner BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Client">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Icon">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu"><menu>client-menu</menu></action>
</mousebind>
</context>
<context name="AllDesktops">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleOmnipresent"/>
</mousebind>
</context>
<context name="Shade">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleShade"/>
</mousebind>
</context>
<context name="Iconify">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Iconify"/>
</mousebind>
</context>
<context name="Maximize">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleMaximize"/>
</mousebind>
<mousebind button="Middle" action="Click">
<action name="ToggleMaximize"><direction>vertical</direction></action>
</mousebind>
<mousebind button="Right" action="Click">
<action name="ToggleMaximize"><direction>horizontal</direction></action>
</mousebind>
</context>
<context name="Close">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Close"/>
</mousebind>
</context>
<context name="Desktop">
<mousebind button="Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind button="Middle" action="Press">
<action name="ShowMenu"><menu>client-list-combined-menu</menu></action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="ShowMenu"><menu>root-menu</menu></action>
</mousebind>
</context>
<context name="MoveResize">
<mousebind button="Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="GoToDesktop"><to>previous</to></action>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="GoToDesktop"><to>next</to></action>
</mousebind>
</context>
</mouse>
<menu>
<!-- You can specify more than one menu file in here and they are all loaded,
just don't make menu ids clash or, well, it'll be kind of pointless -->
<!-- default menu file (or custom one in $HOME/.config/openbox/) -->
<file>menu.xml</file>
<hideDelay>200</hideDelay>
<!-- if a press-release lasts longer than this setting (in milliseconds), the
menu is hidden again -->
<middle>no</middle>
<!-- center submenus vertically about the parent entry -->
<submenuShowDelay>100</submenuShowDelay>
<!-- time to delay before showing a submenu after hovering over the parent
entry.
if this is a negative value, then the delay is infinite and the
submenu will not be shown until it is clicked on -->
<submenuHideDelay>400</submenuHideDelay>
<!-- time to delay before hiding a submenu when selecting another
entry in parent menu
if this is a negative value, then the delay is infinite and the
submenu will not be hidden until a different submenu is opened -->
<showIcons>yes</showIcons>
<!-- controls if icons appear in the client-list-(combined-)menu -->
<manageDesktops>yes</manageDesktops>
<!-- show the manage desktops section in the client-list-(combined-)menu -->
</menu>
<applications>
<!--
# this is an example with comments through out. use these to make your
# own rules, but without the comments of course.
# you may use one or more of the name/class/role/title/type rules to specify
# windows to match
<application name="the window's _OB_APP_NAME property (see obxprop)"
class="the window's _OB_APP_CLASS property (see obxprop)"
groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)"
groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)"
role="the window's _OB_APP_ROLE property (see obxprop)"
title="the window's _OB_APP_TITLE property (see obxprop)"
type="the window's _OB_APP_TYPE property (see obxprob)..
(if unspecified, then it is 'dialog' for child windows)">
# you may set only one of name/class/role/title/type, or you may use more
# than one together to restrict your matches.
# the name, class, role, and title use simple wildcard matching such as those
# used by a shell. you can use * to match any characters and ? to match
# any single character.
# the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
# or desktop
# when multiple rules match a window, they will all be applied, in the
# order that they appear in this list
# each rule element can be left out or set to 'default' to specify to not
# change that attribute of the window
<decor>yes</decor>
# enable or disable window decorations
<shade>no</shade>
# make the window shaded when it appears, or not
<position force="no">
# the position is only used if both an x and y coordinate are provided
# (and not set to 'default')
# when force is "yes", then the window will be placed here even if it
# says you want it placed elsewhere. this is to override buggy
# applications who refuse to behave
<x>center</x>
# a number like 50, or 'center' to center on screen. use a negative number
# to start from the right (or bottom for <y>), ie -50 is 50 pixels from
# the right edge (or bottom). use 'default' to specify using value
# provided by the application, or chosen by openbox, instead.
<y>200</y>
<monitor>1</monitor>
# specifies the monitor in a xinerama setup.
# 1 is the first head, or 'mouse' for wherever the mouse is
</position>
<size>
# the size to make the window.
<width>20</width>
# a number like 20, or 'default' to use the size given by the application.
# you can use fractions such as 1/2 or percentages such as 75% in which
# case the value is relative to the size of the monitor that the window
# appears on.
<height>30%</height>
</size>
<focus>yes</focus>
# if the window should try be given focus when it appears. if this is set
# to yes it doesn't guarantee the window will be given focus. some
# restrictions may apply, but Openbox will try to
<desktop>1</desktop>
# 1 is the first desktop, 'all' for all desktops
<layer>normal</layer>
# 'above', 'normal', or 'below'
<iconic>no</iconic>
# make the window iconified when it appears, or not
<skip_pager>no</skip_pager>
# asks to not be shown in pagers
<skip_taskbar>no</skip_taskbar>
# asks to not be shown in taskbars. window cycling actions will also
# skip past such windows
<fullscreen>yes</fullscreen>
# make the window in fullscreen mode when it appears
<maximized>true</maximized>
# 'Horizontal', 'Vertical' or boolean (yes/no)
</application>
# end of the example
-->
</applications>
</openbox_config>
Darle al botón print la cualidad de hacer screenshots:
Colocar este texto bajo la sección Keyboar de rc.xml
leafpad .config/openbox/rc.xml
<!-- Screenshot -->
<keybind key="Print">
<action name="Execute">
<command>sh -c "import -window root ~/Descargas/$(date '+%Y%m%d-%H%M%S').png"</command>
</action>
</keybind>
FIN DEL TUTORIAL OPENBOX
DESCARGAR IMAGEN DE DEBIAN
yaourt -S jigdoLXQT
yaourt -S lxqt-desktop-git pcmanfm-qt-git openbox lximage-qt-git qterminal-git obconf-qt-git lxqt-lightdm-greeter-git oxygen-icons qtcurve
nano exec startlxqt
VER EL TIEMPO XFCE
pacman -S xfce4-whiskermenu-plugin
XFCE4
pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils mesa xf86-video-intel alsa-utils ttf-dejavu
sudo pacman -S dosfstools ntfs-3g gvfs gvfs-afc udev
https://wiki.archlinux.org/index.php/Installation_Guide_(Espa%C3%B1ol)#Controlador_de_v.C3.ADdeo
pacman -S lxdm xfce4 xfce4-goodies xfce4-notifyd network-manager-applet ttf-bitstream-vera ttf-dejavu ttf-droid ttf-freefont
nano /etc/lxdm/lxdm.conf
session=/usr/bin/startxfc4
systemctl start lxdm
reboot
ESCRITORIO MUY LIGERO
cpn xmonad
MATE
[mate]
SigLevel = Optional TrustAll
Server = http://repo.mate-desktop.org/archlinux/$arch
pacman -Syy
pacman -S mate
pacman -S mate mate-extra
pacman -S gstreamer0.10-good-plugins gvfs-smb libcanberra-gstreamer lightdm-gtk2-greeter orca xdg-user-dirs-gtk gtk-engine-unico djvulibre libgxps texlive-bin gnome-keyring gtk3 pidgin gajim python2 unrar zip unzip p7zip arj unace python2-mako fortune-mod yelp unixodbc libmariadbclient postgresql-libs perl
LXDE, LIGHTWEIGHT DESKTOP ENVIRONMENT
A) INSTALACIÓN EN ARCHLINUX
Aquí están todas sus dependencias en GTK3:
https://aur.archlinux.org/packages/?O=0&SeB=nd&K=lxde&outdated=&SB=n&SO=a&PP=50&do_Search=Go
http://pkgbuild.com/~bgyorgy/city.html
Tras reiniciar el sistema durante la instalación y una vez configurado el usuario:
nano /etc/pacman.conf
Y añade:
[city]
Server = http://pkgbuild.com/~bgyorgy/$repo/os/$arch
Y ahora:
pacman -S xf86-video-intel lxde-gtk3 alsa-utils pulseaudio alsa-plugins alsa-utils lib32-alsa-plugins pulseaudio-alsa pavucontrol && systemctl enable lxdm && reboot
Y tras la instalación con el entorno gráfico:
sudo pacman -S gimp wget dosfstools unzip ntfs-3g cups xarchiver bluez-utils gst-libav leafpad ttf-droid ttf-liberation artwiz-fonts ttf-freefont hunspell-es dosfstools ntfs-3g gvfs gvfs-afc udev gparted p7zip unrar gnome-mplayer modemmanager bluez zd1211-firmware os-prober --needed
SONIDO DE APLICACIONES QUE FALLAN POR HDMI BAJO PAVUCONTROL EN ARCHLINUX LXDE
Si pavucontrol te indica que funciona, pero no se escucha, es un problema de configuración, en este caso del driver Openal, también llamado Oss, para solucionarlo escribe lo siguiente:
sudo mkdir /etc/openal
sudo leafpad /etc/openal/alsoft.conf
Y añade:
drivers=pulse,alsa,oss
Ahora escribe, borrando todo y pegando nuevamente en .alsofrc:
leafpad /home/tu-usuario/.alsoftrc
Y pega:
[general]
drivers = alsa
[alsa]
device = default
capture = default
mmap = true
reinicia
E) MÁS SOBRE SONIDO: OTRAS CONFIGURACIONES PREVIAS PARA HABILITAR EL SONIDO DIGITAL Y EL DRIVER Openal u Oss QUE NO HAN SERVIDO DE NADA.
sudo nano /etc/libao.conf y le he añadido:
default_driver=pulse
sudo sudo ln -s libopenal.so libopenal.so.0
nano ~/.asoundrc
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
Y
leafpad ~/.openalrc
(define devices '(alsa)) (define alsa-out-device default)
(define alsa-device pulse)
(define alsa-device oss)
sudo pacman -S gstreamer0.10-good-plugins gst-plugins-good ossp
sudo pacman -S paprefs
yaourt -S pulseaudio-equalizer
Otro método, probado bajo Archlinux, para configurar la tarjeta de sondio o card y el dispositivo de salida o device:
Usa uno estos este comando para visualizar las tarjetas de sonido o card:
cat /proc/asound/cards
Este otro para visualizar, las tarjetas de sonido o card y además el dispositivo de salida o device:
aplay -l
Comprueba la que funciona, en el siguiente ejemplo 1 es el device y 3 el card:
aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
Crea un archivo dentro de tu /home/tu-usuario llamado .asoundrc y pega lo siguiente:
defaults.pcm.card 1
defaults.pcm.device 3
defaults.ctl.card 1
Sino funciona borra el contenido anterior de .asoundrc y prueba con el siguiente:
pcm.!default {
type hw
card 1
device 3
}
reinicia
MÁS información sobre sonido:
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup/
https://wiki.archlinux.org/index.php/PulseAudio#ossp
Como curiosidad para remover un módulo del kernel se usa este comando:
rnmod
F) CONTROLES DE TECLAS:
leafpad, el sustituo de gedit, usa las teclas Control+X para anular una operación, a diferencia del Control+C
ALT + TABULADOR cambiar de aplicación abierta.
G) CAMBIA LA RESOLUCIÓN POR DEFECTO EN LXDE, EL TECLADO Y QUITA EL SALVAPANTALLAS
Para todos los usuarios:
nano /etc/xdg/lxsession/LXDE/autostart
Para cada usuario, algunos procesos solo funcionan aquí:
nano /home/tu-usuario/.config/lxsession/LXDE/autostart
Estos son los comandos:
@xrandr -s 800x600
@xscreensaver -no-splash
@setxkbmap es
@xset dpms 0 0 0 s 0 0
H) CAMBIA A COLOR NEGRO O NARANJA LEAFPAD
En /home/tu-usuario pega este texto con el nombre de en Archlinux, en Debian, puede que se llame igual o .gtkrc-2.0.mine. El primer texto es para Leafpad y el segundo para Pcmanfm.
Negro style default
{
GtkTextView::cursor_color = #ffffff
base[NORMAL] = #000000
base[ACTIVE] = #000080
base[SELECTED] = #808080
text[NORMAL] = #c0c0c0
text[ACTIVE] = #c0c0c0
text[SELECTED] = #000000
}
class GtkTextView style default
Naranja
style mingstil
{
base[NORMAL] = #FCAF3E
base[ACTIVE] = #FCAF3E
}
# widget_class * style default
class GtkWidget style mingstil
#class FmMainWin.*.FmTabPage style mingstil
#class *Entry* style mingstil
I) TEMAS DE ESCRITORIO
Con ellos podrás darle diversas apariencias y colores a todas las ventanas.
yaourt -S ambiance-radiance-colors-suite candra-themes-3.18 candra-themes-3.18-cn
HABILITAR EL RECONOCIMIENTO DE DISPOSITIVOS PORTÁTILES, CÁMARAS, BLUETOOH, DISPOSITVOS APPLE Y OTROS
El programa en cuestión se llama
gvfs
Tras instalarlo, para pcmanfm, el gestor de archivos de LXDE, hacer lo siguiente:
nano ~/.config/openbox/autostart
Y añade:
pcmanfm -d &
APAGA EL MONITOR DESDE EL TERMINAL
Ejecuta varias veces:
xset dpms force off
Con xset podemos modificar los parámetros de ahorro de energía de dpms, y son los siguientes:
- Apagar el monitor
- Encender el monitor
- Standby el monitor
- Suspend el monitor
Los comandos exactos son los siguientes:
Apagar:
xset dpms force off
Encender:
xset dpms force on
Standby:
xset dpms force standby
Suspender:
xset dpms force suspend
Desactivar:
xset -dpms
Desactivar Salvapantallas - ScreenSaver
Con xset podemos modificar los parámetros del salvapantallas (screensaver), y son los siguientes:
xset s off
xset s noblank
Para ver los valores por defectos o comprobar los cambios que hemos realizados, usamos el siguiente comando:
xset q
Tensemos que ver los siguientes parametros tal cual, esto significa que ya esta desactivado.
- DPMS is Disabled
- prefer blanking: no
El problema reside que esta desactivado hasta el proximo reinicio, pues la desactivación es eventual. Para solucionar este esto y hacerlo de forma permanente necesitamos de un script
Script para los cambios permanentes
Para ello hemos de modificar el siguiente archivo .Xsetup que se encuentra en la siguiente ruta: /etc/X11/xdm/
y en dicho fichero buscamos las siguientes variables.
SAVESC=""
USEDPMS="yes"
y las modificamos por estos parametros
SAVESC="noblank"
USEDPMS="no"
tambien buscamos el siguiente parametro
#
# Screensaver
#
if test -x $xset ; then
$xset s on
test -n "$SAVESC" && $xset s $SAVESC
test "$USEDPMS" = "yes" && $xset +dpms
fi
y lo cambiamos por este otro
#
# Screensaver
#
if test -x $xset ; then
$xset s off
test -n "$SAVESC" && $xset s $SAVESC
test "$USEDPMS" = "no" && $xset -dpms
fi
Guardamos los cambios en el fichero y reiniciamos el proceso dpms
Comprobamos con el siguiente comando que se a desactivado.
xset q
Si ven desactivado el blanking y DPMS como les mencione anteriormente, ya quedo listo.
Atención: Deben tambien desactivar el DPMS y protector en modo grafico en sus escritorios (KDE, Gnome u otro).
Script para usar de forma eventual en algunos programas y que dpms nos deje ver la pantalla en todo momento
# !/bin/bash
xset s off
xset s noblank
xset -dpms
# Puedes sustituir firefox por el nombre del ejecutable del programa que quieras
firefox
xset s on
xset s blank
xset +dpms
Lo guardas y lo haces ejecutable. Así, cada vez que ejecutes Firefox usando el script se desactivará el ahorro de energía, y cuando lo cierres se volverá a activar. Donde pone firefox puedes poner el nombre del programa que quieras, y hacer un script para cada uno, por ejemplo uno para Firefox y otro para Kaffeine. Después los colocas en el escritorio o creas una carpeta donde ir guardando los scripts (en ~/scripts, por ejemplo) y haces enlaces a los scripts en el escritorio. Luego solo tienes que hacer clic sobre ellos para ejecutarlos.
LXDE APAGAR MONITOR
http://askubuntu.com/questions/440756/is-there-a-tool-that-can-automatically-power-off-monitor-on-inactivity
En Salvapantallas Pulsa en Black Screen Only, en Display mondes.
Y Quick power of in black only mode, en Adavance.
GMA 3600 Intel Atom CedarView / Cedar Trail
https://wiki.archlinux.org/index.php/Intel_GMA_500
https://wiki.archlinux.org/index.php/Xorg#Configuration
https://wiki.archlinux.org/index.php/xrandr
https://wiki.archlinux.org/index.php/Multihead#RandR
El driver usado vine a partir del kernel 3.7 más xorg-server
sudo pacman -S xorg-server xorg-xrandr
Para ver la resolución y los Hz escribe:
xrandr
Puedes modificarla en:
sudo nano /var/log/Xorg.0.log
Y cambiarla desde el terminal con:
También es aconsejable limitar el funcionamiento a VGA de la siguiente forma:
sudo nano /etc/X11/xorg.conf.d/20-gpudriver.conf
Y añade:
Esto si quieres usar pantalla externa u otros:
#Section Device
# Identifier Intel GMA3600
# Driver modesetting
#EndSection
Esto si quieres limitar su funcionamiento al límite, debido a las limitaciones gráficas de gma500, que es el driver que usa por defecto:
Section Device
Identifier Intel GMA3600
Driver modesetting
Option Monitor-LVDS-0 Ignore
Option Monitor-VGA-0 Monitor
EndSection
Section Monitor
Identifier Ignore
Option Ignore
EndSection
AÑADIR RESOLUCIONES
Escribe xrandr y te dará la máxima y la mínima resolución que acepta.
Por ejemplo 256x224
Escribe esto:
cvt 256 224
Y copia el resultado de Modeline así:
sudo xrandr --newmode 256x224_60.00 4.50 256 264 288 320 224 227 237 240 -hsync +vsync
Yahora escribe
xrandr
Y copia lo que ponde delante de connected, en este caso LVDS-1 :
sudo xrandr --addmode LVDS-1 256x224_60.00
Ahora ve a Monitor si usas XFCE4 o similar y encontrarás esta resolución 256x224. O bien lánzala desde el terminal:
xrandr --output LVDS-1 --mode 256x224_60.00
Puedes crear un script para que se lance con #!/bin/sh guardarlo con un nombre acabado en .sh y ponerlo en autostart de tu escritorio.
Si quieres borrarla:
xrandr --rmmode LVDS-1 256x224_60.00
También se puede añadir permanéntemente añadiéndola, en el caso de gma3600 en:
/etc/X11/xorg.conf.d/20-gpudriver.conf
O puedes probar a instalar el driver propietario de intel:
https://01.org/linuxgraphics/downloads/intel-graphics-installer-linux-1.4.0
Aunque el resultado será el mismo:
Fuente:
https://01.org/linuxgraphics/documentation/faq
Question: I am looking for Linux* driver support for my computer that uses the Intel® Graphics Media Accelerator 3600 Series.
Answer
Due to the complex package dependencies of the binary graphics drivers for the Intel® Graphics Media Accelerator 3600 Series used in the Intel® Atom™ Processor N2600 Series and Intel® Atom™ Processor N2800 Series, supported drivers are only available through your device manufacturer or through Linux distributions providing support for the Intel® GMA 3600.
Un usuario desesperado con la GMA 3600
http://retrowiki.es/rw30/viewtopic.php?t=141
Pregunta: estoy en busca de Linux * soporte de controladores para mi equipo que utiliza el Intel® Graphics Media Accelerator 3600 de la serie .
Responder
Debido a las complejas dependencias de los paquetes de los controladores de gráficos binarios para la serie 3600 Intel® Graphics Media Accelerator utilizado en el procesador Intel® Atom ™ serie N2600 y el procesador Intel® Atom ™ N2800 Series , los conductores soportados sólo están disponibles a través de su aparato o a través distribuciones de Linux que proporcionan apoyo para el Intel® GMA 3600 .
Así que olvídate de opengl y otros aceleradores. Por lo demás cumple bien su función de video online y emuladores de video consolas como snes9x
PONER UNA RESOLUCIÓN AL INICIO DE LXDE
En LXDE es tan sencillo como:
nano /etc/xdg/lxsession/LXDE/autostart
@xrandr -s 800x600
PARAR UN DEMONIO
/etc/init.d/daemon stop
TODO LO NECESARIO DEBIAN XFCE, LXDE
su -c "apt-get update && apt-get upgrade && echo deb http://ftp.debian.org/debian/ stretch main contrib non-free >> /etc/apt/sources.list && echo deb-src http://ftp.debian.org/debian/ stretch main contrib non-free >> /etc/apt/sources.list && dpkg --add-architecture i386 && apt-get update && apt-get install unrar iceweasel-l10n-es-es gnome-disk-utility unzip ntfs-3g system-config-printer network-manager-applet transmission-gtk ufw libreoffice-help-es libreoffice-pdfimport flashplugin-nonfree && systemctl enable ufw"
Alternativas para conectarte a la red:
Con dhcpcd:
Para el cable:
sudo pacman -S wpa_supplicant dialog ntp
systemctl enable dhcpcd
Si no funciona el cable:
systemctl status dhcpcd.service
sudo systemctl restart dhcpcd
ip link
sudo ip link set enp3s0 up
Para wifi:
sudo wifi-menu
No lo he probado:
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Hasta aquí.
sudo nano /etc/wpa_supplicant.conf
network={
ssid="Nombre de la red"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="contraseña de la red"
}
O también:
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_NETWORK_PASSWORD"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
sudo wpa_supplicant -B -i wifi -c /etc/wpa_supplicant.conf
sudo dhcpcd wifi
Sino funciona el wifi:
sudo ip link set wifi up
dhcpcd -k enp3s0
dhcpcd -d enp3s0
OOooo:
ip link
sudo rm /var/lib/dhcpcd/dhcpcd-enp3s0.lease
sudo systemctl restart dhcpcd@enp3s0
Con Wicd
pacman -S wicd python2-notify
systemctl enable wicd
Crear un una interfaz en openbox, por ejemplo un screenshot:
imagemagick is a collection of tools and libraries for many image formats. It is pre-installed in most distributions. You can check the availability of the binary needed by typing
$ which import
/usr/bin/import
Step 1: create shell script for making screenshots
First of all you will need to create a file with name screenshot.sh for example in /usr/local/bin/ directory. It should contain next lines:
#!/bin/bash
DATE=`date +%Y-%m-%d\ %H:%M:%S`
import -window root "$HOME/Desktop/screenshot $DATE.png"
What does this script do? First line of the script code assigns current date in format YYYY-mm-dd hh:mm:ss to DATE variable. Next line grabs the root window and writes a file named screenshot 'YYYY-mm-dd hh:mm:ss.png' to your ~/Desktop/ directory
Step 2: make script executable
$ sudo chmod a+x /usr/local/bin/screenshot.sh
That's all. Go next step.
Step 3: Make openbox run this script on pressing PrintScreen key
Edit file ~/.config/openbox/lxde-rc.xml and make sure to append there the following in the <keyboard> section:
<keybind key="Print">
<action name="Execute">
<command>screenshot.sh</command>
</action>
</keybind>
Now either relogin to load the new configuration or type:
$ openbox --reconfigure