› Foros › PC › Software libre
anonimo115 escribió:Q4os
@Darumo edge dicen que va muy bien para reproducir vídeos en ordenadores antiguos
titofla escribió:¿que S.O. le metemos para poder seguir utilizando esa reliquia?
- Buscar cual es la interface de conección wifi, por ejemplo wlo1:
ip a
- Configurar para el wifi:
Abrir:
nano /etc/network/interfaces
Añadir las siguientes lineas:
auto wlo1
iface wlo1 inet dhcp
wpa-ssid NombredeWIFI
wpa-psk ContraseñadeWIFI
- Guardar con ctrl+s y salir con ctrl+x y pasar el siguiente comando:
ifup wlo1
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec lxterminal
# kill focused window
bindsym $mod+Shift+q kill
# Definimos el tema y los atajos de teclado para el funcionamiento de Rofi. Si cuando Rofi está abierto presionamos Shift+cursores derecha e izquierda obtendremos funcionalidades adicionales.
set $rofi_theme "/usr/share/rofi/themes/Arc-Dark.rasi"
bindsym Ctrl+space exec rofi -show run -config $rofi_theme -font "System San Francisco Display 15"
bindsym Ctrl+Shift+space exec rofi -show window -config $rofi_theme
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+ntilde focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+ntilde move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Dar un nombre a los distintos espacios de trabajo o escritorios virtuales
#set $workspace1 "1: Terminal "
#set $workspace2 "2: Navegación "
#set $workspace3 "3: Edición "
#set $workspace4 "4: Music "
#set $workspace5 "5: Chat "
#set $workspace6 "6: Email "
#set $workspace7 "7: Folders "
#set $workspace8 "8"
#set $workspace9 "9"a
#set $workspace10 "10"
set $workspace1 "1: Correo"
set $workspace2 "2: Mensajería"
set $workspace3 "3: Notas"
set $workspace4 "4: Terminal"
set $workspace5 "5: Trabajo"
set $workspace6 "6: Trabajo"
set $workspace7 "7: Trabajo"
set $workspace8 "8: Trabajo"
set $workspace9 "9: Trabajo"
set $workspace10 "10: Trabajo"
# Para irse a un espacio de trabajo determinado tecla Win + Número de espacio que queremos ir
bindsym $mod+1 workspace $workspace1
bindsym $mod+2 workspace $workspace2
bindsym $mod+3 workspace $workspace3
bindsym $mod+4 workspace $workspace4
bindsym $mod+5 workspace $workspace5
bindsym $mod+6 workspace $workspace6
bindsym $mod+7 workspace $workspace7
bindsym $mod+8 workspace $workspace8
bindsym $mod+9 workspace $workspace9
bindsym $mod+0 workspace $workspace10
# Irse a un espacio de trabajo determinado usando el teclado numérico
bindsym $mod+Mod2+KP_1 workspace $workspace1
bindsym $mod+Mod2+KP_2 workspace $workspace2
bindsym $mod+Mod2+KP_3 workspace $workspace3
bindsym $mod+Mod2+KP_4 workspace $workspace4
bindsym $mod+Mod2+KP_5 workspace $workspace5
bindsym $mod+Mod2+KP_6 workspace $workspace6
bindsym $mod+Mod2+KP_7 workspace $workspace7
bindsym $mod+Mod2+KP_8 workspace $workspace8
bindsym $mod+Mod2+KP_9 workspace $workspace9
bindsym $mod+Mod2+KP_0 workspace $workspace10
# Para mover una ventana activa al espacio de treabajo que queremos. Win+Shift+Número_de_espacio_de_trabajo
bindsym $mod+Shift+1 move container to workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4
bindsym $mod+Shift+5 move container to workspace $workspace5
bindsym $mod+Shift+6 move container to workspace $workspace6
bindsym $mod+Shift+7 move container to workspace $workspace7
bindsym $mod+Shift+8 move container to workspace $workspace8
bindsym $mod+Shift+9 move container to workspace $workspace9
bindsym $mod+Shift+0 move container to workspace $workspace10
# Hacer que un programa determinado se abra en un espacio de trabajo determinado. Con el comando xprop podremos averiguar la class de cada uno de los programas.
#assign [class="Evolution"] $workspace1
#assign [class="Jami-gnome"] $workspace2
#assign [class="telegram-desktop"] $workspace2
#assign [class="Zim"] $workspace3
#assign [class="XTerm"] $workspace4
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym ntilde resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# Configuración de colores mostrados en pantalla
set $bg-color #2f343f
set $border-focus #8c8c8c
set $inactive-bg-color #2f343f
set $text-color #f3f4f5
set $inactive-text-color #676E7D
set $urgent-bg-color #E53935
set $blue-color #5DA8F4
# Colores de las ventanas
client.unfocused #002B36 #002B36 #FDF6E3
client.focused #FDF6E3 #FDF6E3 #002B36
client.urgent #0D47A1 #0D47A1 #BFBFBF
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3blocks -c ~/.config/i3/i3blocks.conf
#status_command i3status
position top
# Bar colors
colors {
background $bg-color
separator #757575
# border background text
focused_workspace $bg-color $bg-color $text-color
inactive_workspace $inactive-bg-color $inactive-bg-color $inactive-text-color
urgent_workspace $blue-color $blue-color $text-color
}
}
# Atajos de teclado para lanzar programas.
bindsym $mod+Shift+f exec firefox
bindsym $mod+Shift+p exec pcmanfm /media/1TB/Todo/1-Documentos/Cursos/UNED
# Seleccionar las aplicaciones que arrancar al iniciar i3
exec --no-startup-id telegram-desktop
exec --no-startup-id mate-power-manager
exec --no-startup-id flameshot
exec --no-startup-id kdeconnect-indicator
exec --no-startup-id pasystray
# Hacer que la ventana abra en modo flotante "para ver las clases de las ventanas podemos usar xprop"
for_window [window_role="Msgcompose" class="(?i)evolution"] floating enable
for_window [window_role="ECompEditorEvent" class="(?i)evolution"] floating enable
for_window [class="KeePassXC"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="Arandr"] floating enable
for_window [class="Evolution-alarm-notify"] floating enable
for_window [class="XTerm"] floating enable
for_window [class="vlc"] floating enable
for_window [class="Gnome-calculator"] floating enable
#for_window [WM_NAME(STRING) = "Cita: Sin resumen" class="Cita: Sin resumen" class="evolution"] floating enable
# Hacer que se active el teclado númerico cada que que se rearranque el gestor de ventanas i3. Hay que tener instalado el paquete numlockx
exec_always --no-startup-id numlockx on
# Para establecer un fondo escritorio cada vez que se arranque o rearranque i3. "sudo apt install feh"
#exec_always --no-startup-id feh --randomize --bg-scale --slideshow-delay 1 /home/tuusuario/.fondos/*
# Para cerrar el ordenador presionar la combinación de teclas Ctrl+Alt+S
bindsym $mod+mod1+p exec /sbin/poweroff
bindsym $mod+mod1+e exec i3-msg exit
bindsym $mod+mod1+r exec /sbin/reboot
bindsym $mod+mod1+l exec dm-tool lock
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent
# Global properties
#
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
# Para elegir la separación entre los distintos bloques que aparecen en el panel
command=/usr/share/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none
# Volume indicator
#
# The first parameter sets the step (and units to display)
# The second parameter overrides the mixer selection
# See the script for details.
# Para mostrar el nivel de volumen
#[volume]
#label=♪:
#instance=Master
#instance=PCM
#interval=1
#signal=10
#command=/usr/share/i3blocks/volume 5 pulse
# Weahter
# Muestra la temperatura en la zona donde vivimos
#[Weather]
#command=/usr/local/bin/i3_weather.sh
#interval=180
#color=#c9c9ff
#border=#535353
#[calc-button]
#full_text=Calculator
#command=gnome-calculator >/dev/null
#Faces de la luna:
[weather]
command=curl -Ss 'wttr.in/CanadaWhitehorse?format=%m' | cut -c 1- | head -2 | xargs echo
interval=43200
#interval=86400
#color=#A4C2F4
#Clima:
[weather]
command=curl -Ss 'wttr.in/Canada(Whitehorse)?format=1' | cut -c 1- | head -2 | xargs echo
interval=1800
#color=#A4C2F4
# Generic media player support
#
# This displays "ARTIST - SONG" if a music is playing.
# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others.
# En el panel aparece el artista y canción que estamos reproduciendo
#[mediaplayer]
#label=
#label=
#instance=spotify
#instance=vlc
#command=perl ~/.config/i3/scripts/mediaplayer
#instance=audacious
#interval=5
#signal=10
# Date Time
# Para mostrar el dia y la hora en que estamos
[time]
label=
command=date '+%d-%m-%Y | %H:%M'
interval=5
color=#98FB98
# Imprime el primero de los valores del comando uptime. Da una idea de la carga del procesador
[load_average]
#label=
label=CPU
interval=10
#separator=false
# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
# Muestra la memoria que tenemos libre
[memory]
#label= RAM:
label=RAM:
separator=false
interval=30
separator=true
# Muestra la memoria SWAP que estamos usando
#[memory]
#label=SWAP
#instance=swap
#separator=false
#interval=30
# Disk usage
# Mostramos el espacio que tenemos libre en la partición root y en la partición home
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
[disk]
label= /
instance=/
interval=30
#separator=false
# Disk usage
# Muestra el espacio libre de la partición /home
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
# Temperature
# Mostramos la temperatura de nuestro disco duro
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
#[temperature]
#label=
#interval=10
#command=~/.config/i3/scripts/temperature
# Network interface monitoring
# Mostramos la IP interna con el que nuestro equipo está conectado a la red local
# If the instance is not specified, use the interface used for default route.
# The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
[iface]
#instance=wlan0
#label= IP
interval=10
#separator=false
#ver en la terminal con " ip a " la interface a usar
[wifi]
instance=wlo1
label=
interval=10
# Si indicamos la instancia adecuada nos muestra la velocidad de subida o bajada
# [bandwidth]
# #instance=eth0
# interval=5
# CPU usage
#
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
# Permite ver el % de CPU que el equipo está usando
# [cpu_usage]
# label=CPU
# interval=10
# min_width=CPU: 100.00%
# separator=false
# Muestra la temperatura del procesador
#[temperature]
#label=
#interval=10
#command=~/.config/i3/scripts/temperatureprocessor
# Battery indicator
#
# The battery instance defaults to 0.
#[battery]
#label=
#label=⚡
#instance=1
#interval=30
# Muestra el dia y la hora actual. también puede mostrar un calendario
#[rofi-calendar]
#command=/home/joan/.config/i3/scripts/rofi_calendar.sh
#interval=3600
#DATEFTM=+%a %d %b %Y
#SHORTFMT=+%d/%m/%Y
#LABEL=
#FONT=Monospace 10
#LEFTCLICK_PREV_MONTH=false
#PREV_MONTH_TEXT=« previous month «
#NEXT_MONTH_TEXT=» next month »
#ROFI_CONFIG_FILE=/dev/null
# OpenVPN support
#
# Support multiple VPN, with colors.
#[openvpn]
#interval=20
# Añadir indicadores al panel i3blocks para saber si las mayúsculas y teclado númerico están activados
# Key indicators
#
# Add the following bindings to i3 config file:
#
# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
# bindsym --release Num_Lock exec pkill -SIGRTMIN+11 i3blocks
#[keyindicator]
#instance=CAPS
#interval=once
#signal=11
#[keyindicator]
#instance=NUM
#interval=once
#signal=11