Spora_
Usuario (Canadá)
₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪ He querido compartir mi post instalación de Archlinux en ella instalo Awesome como entorno de escritorio la modifico y ademas instalo lo fundamental para trabajar con el entorno, para que se den una idea de lo que queremos lograr: Una vez que tengas tu sistema instalado y estés a un paso de instalar tu entorno de escritorio comenzamos instalando: -- {{ ATENCIÓN: ten en cuenta los privilegios que daremos en cada instalación o configuración, en esta guia al comenzar el comando con # estamos trabajando como root y al comenzar $ sera como tu usuario. Primero instalaremos la arquitectura avanzada para el sonido en Linux, conocida como ALSA: # pacman -S alsa-utils Ahora nos vamos a instalar todo lo necesario y ademas algunas cosas que nos servirán bastante: # pacman -S awesome vicious nitrogen lxappearance slim terminator ranger leafpad thunar transmission-gtk tmux feh # yaourt -S compon-git alsi archey unp > awesome: gestor de ventanas. > vicious: libreria modular para los widgets de awesome. > nitrogen: se encarga de los wallpaper. > lxappearance: selector de temas gtk. > slim: gestor de inicio de sesión. > terminator: emulador de terminal, elige la que mas te acomode. > ranger: es un administrador de archivos pero en consola, muy útil cuando amas la terminal por sobre todas las cosas. > leafpad: editor de textos muy liviano. > thunar: gestor de archivos rápido, ligero y fácil de usar. > transmission: el cliente BitTorrent por defecto de Linux, muy ligero. > tmux: es una terminal multiplexora, nos permite tener varios espacios de trabajo en una sola terminal. > feh: visor de imagen muy ligero > compton: para usar la composición. > alsi: nos informa del estado de nuestro equipo con el logo de Arch muy vistoso. > archey: lo mismo que alsi. > unp: descomprimir archivos con solo un comando. ₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪ Una vez instalado empezaremos configurando slim, activamos el servicio: # systemctl enable slim.service ahora si lo deseamos podemos logearnos automáticamente sin que nos pida el usuario y la contraseña al iniciar el sistema, esto lo podemos hacer modificando el archivo ubicado en: # nano /etc/slim.conf descomentamos esta linea, y cambiamos "simone"; por el usuario que se va a loguear automáticamente # default_user simone descomentamos esta linea y cambie el no por yes;. Esto habilita el auto logueo. # auto_login no ₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪ Para iniciar awesome agregamos a nuestro ~/.xinitrc: exec awesome creamos una carpeta donde guardar el rc.lua: $ mkdir -p ~/.config/awesome seguidamente copiamos los archivo de configuración que se incluye por defecto con el siguiente comando: $ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/ rc.lua guarda toda la configuración de awesome, pero no así los temas, estos son creador aparte y se almacenan en /usr/share/awesome/themes , los veremos mas adelante. ₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪ Ahora ya tenemos configurado slim y modificado xinitrc reiniciaremos para continuar modificando el entorno desde awesome. No debería presentarse ninguna anomalía y iniciaremos en nuestro entorno awesome. Lo principal que debes saber son las combinaciones de teclado para navegar por awesome(md4 corresponde a la tecla de inicio o power o windou): ₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪ Para continuar modificando las configuraciones pondré el teclado en latino, lo podemos hacer agregando al archivo Option XkbLayout latam entre Driver y EndSection: # nano /etc/X11/xorg.conf.d/10-evdev.conf quedaría así: Section "InputClass" Identifier "evdev keyboard catchall" MatchIsKeyboard "on" MatchDevicePath "/dev/input/event*" Driver "evdev" Option "XkbLayout" "latam" EndSection ₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪ Ahora nos pondremos a modificar el archivo rc.lua, para esto recomiendo usar cualquier editor de texto, aunque es mas fácil alguno que remarque la sintaxis, así te será mas fácil guiarte dentro del código. Estoy muy familiarizado con Sublime Text, si desean instalarlo: $ yaourt sublime-text-dev $ subl Dentro del archivo rc.lua: subl ~/.config/awesome/rc.lua > Activamos la composición (p. ej. transparencia en ventanas), colocamos al principio del archivo, justo debajo de require(“naughty”) esta linea, añadimos también vicious para usar los widgets: -- composición awful.util.spawn_with_shell("compton &") vicious = require("vicious") > Ahora nos toca modificar las configuraciones de compton, creamos el archivo de configuración: $ mkdir ~/.config/compton.conf añadimos y guardamos: # Shadow shadow = true; # Enabled client-side shadows on windows. no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows. no-dnd-shadow = true; # Don't draw shadows on DND windows. clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental). shadow-radius = 3; # The blur radius for shadows. (default 12) shadow-offset-x = -5; # The left offset for shadows. (default -15) shadow-offset-y = -5; # The top offset for shadows. (default -15) # shadow-opacity = 0.7; # The translucency for shadows. (default .75) # shadow-red = 0.0; # Red color value of shadow. (0.0 - 1.0, defaults to 0) # shadow-green = 0.0; # Green color value of shadow. (0.0 - 1.0, defaults to 0) # shadow-blue = 0.0; # Blusade color value of shadow. (0.0 - 1.0, defaults to 0) shadow-exclude = [ "n:e:Notification" ]; # Exclude conditions for shadows. # shadow-exclude = "n:e:Notification"; shadow-ignore-shaped = true; # Opacity menu-opacity = 0.9; # The opacity for menus. (default 1.0) #inactive-opacity = 0.9; # Opacity of inactive windows. (0.1 - 1.0) #frame-opacity = 0.8; # Opacity of window titlebars and borders. (0.1 - 1.0) inactive-opacity-override = true; # Inactive opacity set by 'inactive-opacity' overrides value of _NET_WM_OPACITY. # Fading fading = true; # Fade windows during opacity changes. # fade-delta = 30; # The time between steps in a fade in milliseconds. (default 10). fade-in-step = 0.08; # Opacity change between steps while fading in. (default 0.028). fade-out-step = 0.08; # Opacity change between steps while fading out. (default 0.03). # no-fading-openclose = true; # Fade windows in/out when opening/closing. # Other #inactive-dim = 0.5; # Dim inactive windows. (0.0 - 1.0, defaults to 0). mark-wmwin-focused = true; # Try to detect WM windows and mark them as active. mark-ovredir-focused = true; detect-rounded-corners = true; # Window type settings wintypes: { tooltip = { fade = true; shadow = false; opacity = 0.75; }; }; > Puede restaurar su escritorio y ver el resultado de la configuración de coptom, continuamos con la modificación de rc.lua, nos topamos con la terminal por defecto y ponemos la nuestra: terminal = terminator > En el apartado tags podemos modificar la etiqueta de cada tag, también el layout por defecto en cada tag: tags = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, layouts[1]) en mi caso la deje así: tags = awful.tag({ "A", "R", "C", "H", "L", "I", "N", "U", "X" }, s, layouts[1]) > Ahora vamos con el tema, este se define en un archivo llamado theme.lua, y se almacena en /usr/share/awesome/themes , donde se encuentra en un directorio con el nombre del tema, junto a los iconos y demás imágenes que podemos utilizar. Las configuraciones son muy simples yo las deje asi: --------------------------- -- Default awesome theme -- --------------------------- theme = {} theme.font = "Terminus 9" theme.bg_normal = "#000000" -- #222222 theme.bg_focus = "#000000" -- #535d6c theme.bg_urgent = "#000000" -- #ff0000 theme.bg_minimize = "#000000" -- #444444 theme.bg_systray = theme.bg_normal theme.fg_normal = "#00b3b3" -- #aaaaaa theme.fg_focus = "#00ffff" theme.fg_urgent = "#00ffff" theme.fg_minimize = "#00ffff" theme.border_width = 1 theme.border_normal = "#000000" theme.border_focus = "#000000" theme.border_marked = "#91231c" -- There are other variable sets -- overriding the default one when -- defined, the sets are: -- [taglist|tasklist]_[bg|fg]_[focus|urgent] -- titlebar_[bg|fg]_[normal|focus] -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color] -- mouse_finder_[color|timeout|animate_timeout|radius|factor] -- Example: --theme.taglist_bg_focus = "#ff0000" -- Display the taglist squares theme.taglist_squares_sel = "/usr/share/awesome/themes/default/taglist/squarefw.png" theme.taglist_squares_unsel = "/usr/share/awesome/themes/default/taglist/squarew.png" -- Variables set for theming the menu: -- menu_[bg|fg]_[normal|focus] -- menu_[border_color|border_width] theme.menu_submenu_icon = "/usr/share/awesome/themes/default/submenu.png" theme.menu_height = 15 theme.menu_width = 100 -- You can add as many variables as -- you wish and access them by using -- beautiful.variable in your rc.lua --theme.bg_widget = "#cc0000" -- Define the image to load theme.titlebar_close_button_normal = "/usr/share/awesome/themes/default/titlebar/close_normal.png" theme.titlebar_close_button_focus = "/usr/share/awesome/themes/default/titlebar/close_focus.png" theme.titlebar_ontop_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_normal_inactive.png" theme.titlebar_ontop_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/ontop_focus_inactive.png" theme.titlebar_ontop_button_normal_active = "/usr/share/awesome/themes/default/titlebar/ontop_normal_active.png" theme.titlebar_ontop_button_focus_active = "/usr/share/awesome/themes/default/titlebar/ontop_focus_active.png" theme.titlebar_sticky_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_normal_inactive.png" theme.titlebar_sticky_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/sticky_focus_inactive.png" theme.titlebar_sticky_button_normal_active = "/usr/share/awesome/themes/default/titlebar/sticky_normal_active.png" theme.titlebar_sticky_button_focus_active = "/usr/share/awesome/themes/default/titlebar/sticky_focus_active.png" theme.titlebar_floating_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/floating_normal_inactive.png" theme.titlebar_floating_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/floating_focus_inactive.png" theme.titlebar_floating_button_normal_active = "/usr/share/awesome/themes/default/titlebar/floating_normal_active.png" theme.titlebar_floating_button_focus_active = "/usr/share/awesome/themes/default/titlebar/floating_focus_active.png" theme.titlebar_maximized_button_normal_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_normal_inactive.png" theme.titlebar_maximized_button_focus_inactive = "/usr/share/awesome/themes/default/titlebar/maximized_focus_inactive.png" theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/default/titlebar/maximized_normal_active.png" theme.titlebar_maximized_button_focus_active = "/usr/share/awesome/themes/default/titlebar/maximized_focus_active.png" -- theme.wallpaper = "/usr/share/awesome/themes/default/background.png" -- theme.wallpaper = { "/usr/bin/nitrogen --restore" } -- wallpaper_cmd = { "/usr/bin/nitrogen --restore" } -- You can use your own layout icons like this: theme.layout_fairh = "/usr/share/awesome/themes/default/layouts/fairhw.png" theme.layout_fairv = "/usr/share/awesome/themes/default/layouts/fairvw.png" theme.layout_floating = "/usr/share/awesome/themes/default/layouts/floatingw.png" theme.layout_magnifier = "/usr/share/awesome/themes/default/layouts/magnifierw.png" theme.layout_max = "/usr/share/awesome/themes/default/layouts/maxw.png" theme.layout_fullscreen = "/usr/share/awesome/themes/default/layouts/fullscreenw.png" theme.layout_tilebottom = "/usr/share/awesome/themes/default/layouts/tilebottomw.png" theme.layout_tileleft = "/usr/share/awesome/themes/default/layouts/tileleftw.png" theme.layout_tile = "/usr/share/awesome/themes/default/layouts/tilew.png" theme.layout_tiletop = "/usr/share/awesome/themes/default/layouts/tiletopw.png" theme.layout_spiral = "/usr/share/awesome/themes/default/layouts/spiralw.png" theme.layout_dwindle = "/usr/share/awesome/themes/default/layouts/dwindlew.png" -- theme.awesome_icon = "/usr/share/awesome/icons/awesome16.png" -- Define the icon theme for application icons. If not set then the icons -- from /usr/share/icons and /usr/share/icons/hicolor will be used. theme.icon_theme = nil return theme -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 > Para remover los iconos superiores awesome tenemos que modificar: # subl /usr/share/awesome/lib/awful/widget/tasklist.lua y al final de la primera función en el retunrn lo cambiamos por: text = text .. "</span>" -- return text, bg, nil, c.icon -- return text, bg, status_image, c.icon return text, bg, status_image, nil end > El tema que estoy usando se llama Siva, para esta ocasión es lxappearance: http://nale12.deviantart.com/art/Siva-1-0-0-352787657 > Si queremos un cursor tambien lo podemos modificar con lxappearance: http://gnome-look.org/content/show.php/Windows+8+cursors?content=155025 > Terminal (Shell): para modificar la apariencia de nuestra terminal lo podemos hacer de muchas formas, en mi caso uso Terminator y estas son mis configuraciones. Una buena herramienta es esta pagina http://ciembor.github.com/4bit/# que genera la configuración para diferentes terminales [global_config] geometry_hinting = False handle_size = 1 [] scrollbar_position = hidden palette = "#000000:#fd3535:#35fd35:#fdfd35:#3535fd:#fd35fd:#35fdfd:#d9d9d9:#262626:#fe9a9a:#9afe9a:#fefe9a:#9a9afe:#fe9afe:#9afefe:#ffffff" background_darkness = 0.7 background_type = transparent use_system_font = False foreground_color = "#00ffff" icon_bell = False show_titlebar = False cursor_shape = underline font = Terminus 9 allow_bold = False [] [[]] type = Terminal parent = window0 [[]] type = Window parent = "" > Para nuestro fondo de pantalla lo podemos cargar desde xinitrc: # wallpaper nitrogen --restore # ejecutar entorno awesome exec awesome > En caso te tener una conexión wifi, podemos acceder a ella mediante el applet de NetworkManager: # pacman -S networkmanager # pacman -S network-manager-applet # pacman -S xfce4-notifyd y lo activamos: # systemctl enable NetworkManager.service y para agregar el applet al inicio de awesome agregamos esta linea al final de nuestro rc.lua: os.execute("nm-applet &") ₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪₪ Espero que les sirva, si encuentran algún error por favor informen. Estaré agregando los programas que iré instalando