Pular para o conteúdo principal

Postagens

Calling the "extra" custom openbox menu with a mousebind

       Hi folks! In the last post we've explored the openbox's hidden feature (not so called) that is making extra menus. In Enlightenment, for instance, you have the main menu and the favourites menu (set through the E configurator builtin).      Now we will make not a keybind for it, but a mousebind for our extra custom menu.     The default openbox root menu is called by clicking on the desktop with right mouse button.     And if I'd like to click with the same right button on the desktop but also pressing at the same time Windows keyboard key to show the custom menu?!?     As all openboxers may suspect, it involves rc.xml edition. Mine has those configs: <mouse> <context name="Desktop"> <mousebind button="W-Right" action="Press"> <action name="ShowMenu"> <menu>custom</menu> </action> </mousebind>            That's all folks!    ...

Creating an extra custom menu in openbox WM

    Hi, folks. It's been a while, isn't it?     Well, I know nowadays people are telling X11 will be dead soon and the future is Wayland, but for the ones like me, dinosaurs that can't live without things like fluxbox or openbox, how the future will be?      O penbox is a very mature WM, offering some tricks we don't see much around here.     Here's  one much helpful: Making custom menus.       I've already shown the path to do the same in fluxbox in the past.       Now I show you all to do that in openbox.     First, locate in rc.xml the block of code that refers the menu. It's something like this: < menu>     <hideDelay>250</hideDelay>     <middle>no</middle>     <submenuShowDelay>100</submenuShowDelay>     <submenuHideDelay>400</submenuHideDelay>     <applicationIco...

Window list in Fluxbox

One of the best features on openbox comes "hidden" in Fluxbox. To use it, put a line in your "keys" (/home/"user"/.fluxbox/keys) file like that: Mod4 Escape    :ClientMenu In my case, when I click windows button+escape I get: That's it!

Creating a Custom Shutdown Menu in Fluxbox

This is easy. Just edit fluxbox "keys" inserting a line like that: Mod4 x  :CustomMenu "path-to-menu" Of course the menu you're pointing at must exist in ~/.fluxbox. In my case, I've done that: $ touch /home/pibarnas/.fluxbox/sair $   echo "[begin] (Sair) \n \t [exit] (Sair) {Exit} \n \t [exec] (Desligar) {/sbin/shutdown -h now} \n \t [exec] (Reiniciar) {/sbin/shutdown -r now} \n [end]" > /home/pibarnas/.fluxbox/sair $ cat /home/pibarnas/.fluxbox/sair [begin] (Sair)          [exit] (Sair) {Exit}          [exec] (Desligar) {/sbin/shutdown -h now}          [exec] (Reiniciar) {/sbin/shutdown -r now}  [end] My ~/.fluxbox/keys related line:  Mod4 x  :CustomMenu /home/pibarnas/.fluxbox/sair Now when I click windows button+x this menu appear: You can make custom menus other than the default one as you wish. Hope y...

Append suffix in linux file names with Shell Parameter Expansion

Well, everytime I read about shell (bash) parameter expansion I see examples ripping off the suffixes. But someday, I needed to do the inverse: Append suffixes. How to do that? I've made a simple bash script to do so: #!/bin/bash for i in *; do  mv ${i} ${i}.sh; done exit 0 Using a for loop, I moved every file in the directory to the same name, with a ".sh" appended as suffix. Feel free to change the suffix you want. To revert: #!/bin/bash for i in *; do mv ${i} ${i/.sh/}; done exit 0 In this case, in every file of the directory, ".sh" will be substituted for nothing. It may cause some troubles. Let's suppose you have a dir, full of these files: 1.shellvpower 2.shellvpower 3.shellvpower 4.shellvpower They'll become: 1ellvpower 2ellvpower 3ellvpower 4ellvpower So, in a better way, to remove only the suffixes ".sh": for i in *; do  mv ${i} ${i%%\.sh}; done exit 0 Bonus: Append prefixes: To append,...

Ultimate Guide for good Looking Fonts on Opensuse (13.2) - without Infinality

Well, as I'm using opensuse 13.2 as OS in one of my disks, let's see how we can improve the look of its horrible fonts. First: Yast2>/etc/sysconfig editor>Desktop, as seen below:  Play with font configs in each field. Mine I set as below: FORCE_HINTSTYLE: hintfull FORCE_AUTOHINT: yes FORCE_BW: no FORCE_BW_MONOSPACE: no USE_LCDFILTER: lcddefault USE_RGBA: rgb These settings will make the links on /etc/fonts/conf.d, disabled by default on opensuse. Other way to make this, as root: cd /etc/fonts/conf.d/ ln -s /usr/share/fontconfig/conf.avail/10-autohint.conf ln -s /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf ln -s /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf Make a file named user.js in  $HOME/.mozilla/firefox/*.default/ with this content: user_pref("font.FreeType2.enable", "true"); user_pref("font.FreeType2.autohinted", "true"); user_pref("font.FreeType2.printing", "true...

Adding sound to LXDE start

Simple. Make a .desktop file and put it in ~/.config/autostart (if this dir doesn't exist, then create it): # mkdir ~/.config/autostart #touch ~/.config/autostart/sound.desktop As you see, my file's named sound.desktop Which contents may be: [Desktop Entry] Name=Sound Terminal=true Type=Application Exec=mplayer /home/pibarnas/Downloads/221359__melliug__newmessage.mp3 I've downloaded mine from freesound.org. There's a lot of sounds there. Enjoy!

Shutting down or restarting using openbox (with chroot)

First, your user must be allowed to shut down the system. Do it editing /etc/sudoers (a glance at man should help). We don't focus the edition of sudoers here. Then, add to you rc.xml (making backup of it first, always): <keybind key="C-A-Delete" chroot="true">       <keybind key="r">         <action name="Execute">           <prompt>Reiniciar o sistema?</prompt>           <execute>reboot</execute>         </action>       </keybind>       <keybind key="x">         <action name="Execute">           <prompt>Desligar o sistema?</prompt>           <execute>poweroff</execute>         </action>       </keybind>     ...

Aero Snap in Openbox (with or without chroot)

There's quite some time I've been searching on how to do that and I finally found it. First, backup your $HOME/openbox/rc.xml. Then, insert these lines in your rc.xml in keyboard section, before < /keyboard> ,  of course:  </keybind>     <keybind key="C-W-1">       <action name="UnmaximizeFull"/>       <action name="MaximizeVert"/>       <action name="MoveResizeTo">         <width>50%</width>       </action>       <action name="MoveToEdgeWest"/>     </keybind>     <keybind key="C-W-2">       <action name="UnmaximizeFull"/>       <action name="MaximizeVert"/>       <action name="MoveResizeTo">         <width>50%</width>       </action>   ...

Novo Openbox 3.5.0 e os meus arquivos de configuração

Bom, sem delongas, eis o meu novo desktop openbox, compilado do  código fonte  no meu Fedora 15. Eis seus  menu ,  rc.xml  e  autostart.sh  para os leitores examinarem, adaptarem e usarem. Abraços!
Aqui está: Tá, eu confesso, o xcompmgr está ativo. Mas qual outro *box tem transparência real assim?

Openbox 3.5.0 com ícones no menu!! Finalmente!!

Ei-lo.

Instalando os kdegames direto do CD/DVD do kubuntu!!

Olá leitores! Há quanto tempo, hein?!? Bem, estou de volta e testando o (k)?ubuntu, os quais achei ótimos, contudo, deparei com situações estranhas: ao rodar o kubuntu, consegui, pelo live-dvd, instalar os kdegames (coisa essencial pra continuidade do meu casamento, já que a minha esposa os adora e já que o kubuntu foi instalado em seu notebook). Contudo, ao ter o sistema instalado, não conseguia instalá-los no HD, dando uma série de erros na montagem do CD/DVD (provavelmente devido aos não muy amigos hal e udev, dupla difícil essa). Bem, precisava resolver isso, já que o padre me disse que o que Deus juntou, o "man" não separa... Como algo pode ser instalável diretamente do DVD e não pode ser instalado depois do sistema instalado?!? Bati cabeça com isso durante o dia inteiro de ontem. Mas consegui solucionar, às 2:00 da matina. Primeiro, seguindo a dica do padre, dei uma olhada no "man" do comando mount ($man mount), a partir do qual tive a idéia de inserir a segui...

Minha mensagem para Copenhague

I saw the morning it was shattered by a gun Heard a scream, saw him fall, no one cried I saw a mother, she was praying for her son Bring him back, let him live, don't let him die Do you ever ask yourself Is there a Heaven in the sky? Why can't we get it right? 'Cause we all live under the same sun We all walk under the same moon Then why, why can't we live as one? I saw the evening fading shadows one by one Watch the lamb, lay down to the sacrifice I saw the children, the children of the sun How they wept, how they bled, how they died Do you ever ask yourself Is there a Heaven in the sky? Why can't we stop the fight? 'Cause we all live under the same sun We all walk under the same moon, yea Then why, why can't we live as one? Sometimes I think I'm going mad We're loosing all we had and no one seems to care, yea But in my heart it doesn't change We've got to rearrange and bring our world some love And does it re...

Robin Hood: The most famous archer

"I advice you, people: Use Archlinux! Pacman rules!"

Finalmente o PekWM como WM do Gnome!!

Estava esperando por isso há muito tempo e uma mudança realizada na git version ontem pelo Pekdon (principal coder do pekwm e seu idealizador) hoje permite. Primeiro, no gnome, vá em sistema>Editor de configurações Neste (Gconf), vá em /gnome/session/required_components/windowmanager Clique 2 vezes e mude o valor de metacity (o que provavelmente estará lá) para pekwm. Feche o Gconf. Depois vá em sistema>preferências>aplicativos de sessão>programas iniciais>adicione Adicionar programa inicial: Nome: PekWM Comando: pekwm --replace Comentário: pekwm Reinie o gnome e tenha o Pekwm como seu WM! Screenshot: Notem as tabs na barra de título. Não é o metacity, mas o pekwm! =D

Novo Xorg+hal+startx=us international keyboard no eeepc finalmente funcionando!!

Essa é pra todos os que tem um eeepc e querem usar um WM como o pekwm somente chamando do xinitrc... e estão tentando há meses, por causa da confusão criada pelo hal (já dizia o 2001: Uma Odisséia no Espaço que não seria uma boa) + o novo X, que por causa da integração com o primeiro, agora reconhece tudo numa boa. Bem, não foi bem assim no meu caso... segue a solução! ;) Em um terminal qualquer da vida: 1) $cp /usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi /etc/hal/fdi/policy/10-keymap.fdi 2) $nano/vi/gedit/kwrite/ou qualquer outro /etc/hal/fdi/policy/10-keymap.fdi (como root, claro) Leia atentamente o arquivo abaixo e altere no seu, com o seguinte conteúdo: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input.keymap"> <append key="info.callouts.add" type="strlist">hal-setup-k...

Windows x Linux

"Olá, Madame, Sr. Presidente... Senhorita, como vai?" "Mal ele sabe que vc usa Archlinux, hein filha?!?" "Humpf!"