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!    ...
Postagens recentes

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>     <applicationIcon...

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...