Author Topic: add your favorite openbox customizing tips here  (Read 21010 times)

0 Members and 1 Guest are viewing this topic.

Offline eskaini

  • Security Team
  • *****
  • Posts: 10842
  • I eat deleted accounts
  • Skill: Novice
Re: add your favorite openbox customizing tips here
« Reply #30 on: 05. March 2014, 23:38:20 »
resize openbox menu  8)

this is a very small customize.  just editing the advanced setting menu and changing it to something smaller like OB menu so the openbox menu is not so wide.

advanced setting -> obmenu generator -> pipe menu schema

Code: [Select]
    {cat => ['office',      'Office',      'applications-office']},
    {cat => ['settings',    'Settings',    'applications-accessories']},

## Custom "OB Menu"

   {begin_cat => ['OB Settings',  'gnome-settings']},
   {begin_cat => ['Desktop and Login',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
   {item => ['geany -m ~/.conkyrc','Conky RC','geany']},

as you can see i changed advanced settings to OB menu.
sweet mod, I just made it on the iso for the next release, Thanks  :)

Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #31 on: 06. March 2014, 18:41:44 »
cool  8)  glad you liked that one.

Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #32 on: 19. March 2014, 19:22:06 »
nice it got stickied  8)  i think this will be a nice go to for new users to customize openbox.


Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #33 on: 19. March 2014, 19:31:51 »
octopi-notifier

i like having a software manager and like being notified of updates.  so octopi-notifier is always a must for me.

simply open the terminal and

Code: [Select]
sudo pacman -S octopi-notifier
and of course hopefully you already have octopi installed.  if not just do

Code: [Select]
sudo pacman -S octopi
this is also handy if you want to use the software manager just right click it in the system tray and select octopi.  so a very handy app to have.

« Last Edit: 19. March 2014, 19:34:58 by runpc2deth »

Offline tuerda

  • Jr. Mitglied
  • **
  • Posts: 59
  • Branch: stable
  • Desktop: Herbslutftwm (usually), xfce (on my wife's computer)
  • GPU driver: non-free
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #34 on: 16. April 2014, 03:16:01 »
##Some ideas that I think a lot of people might use:

Bind Super+Z and Super+A to     amixer -q sset Master 3%-     and      amixer -q sset Master 3%+     for volume control

Load Tilda in the autostart (and adjust Tilda settings)

Set focus follows mouse (I have never understood how anyone lives without it. There are many ways to do this, including the GUI tool)

Replace dmenu_run with     cat <stuff> | dmenu "$@" | ${SHELL:-"/bin/sh"} &      where <stuff> is a textfile with a list of the commands you use frequently (one command per line). This will allow you to open a specific file with a specific program in a few keystrokes but without massive assignment of keybindings. I find this more efficient and flexible than the standard dmenu and also Synapse, since it can easiy be made to work with console programs (xterm -e <name of program>) or to open certain files with programs that are not the system defaults.

##Some stuff that I like, but that I think might not be so popular:

Eliminate the right click menu altogether

Get rid of SLiM and just login from tty (but not before stealing SLiM's awesome default background from /usr/share/slim/themes/default/background.jpg)

Offline spec-chum

  • Neuling
  • *
  • Posts: 24
  • Wibble!
  • Branch: Testing for daily use and unstable for, er, testing
  • Desktop: OpenBox (main install), Cinnamon (secondary install)
  • GPU Card: ATi 5850
  • GPU driver: Free forever!
  • Kernel: linux314-x64
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #35 on: 22. April 2014, 15:24:19 »
I've got full keyboard and mouse window snapping on openbox.

I'm at work at the mo but i can post the relevant parts of the config tonight if anyone is interested?

Edit: it uses opensnap from the AUR but doesn't work as expected without a little mod :)
« Last Edit: 22. April 2014, 15:34:54 by spec-chum »

Offline rudylorren

  • Held Mitglied
  • *****
  • Posts: 792
  • Nothin left to do but smile smile smile :)
  • Branch: unstable
  • Desktop: openbox - bspwm
  • GPU driver: free
  • Kernel: linux3.12 lts
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #36 on: 22. April 2014, 16:21:04 »
My OB window moving/resizing/snapping keybinds:

Code: [Select]
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>0</x>
        <y>0</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="W-u">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>-0</x>
        <y>0</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="W-b">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>0</x>
        <y>-0</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="W-n">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>-0</x>
        <y>-0</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="W-m">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>center</x>
        <y>center</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="A-m">
      <action name="Move"/>
    </keybind>
    <keybind key="A-r">
      <action name="Resize"/>
    </keybind>
    <keybind key="W-l">
      <action name="MoveRelative">
        <x>10</x>
        <y>0</y>
      </action>
    </keybind>
    <keybind key="W-k">
      <action name="MoveRelative">
        <x>0</x>
        <y>-10</y>
      </action>
    </keybind>
    <keybind key="W-h">
      <action name="MoveRelative">
        <x>-10</x>
        <y>0</y>
      </action>
    </keybind>
    <keybind key="W-j">
      <action name="MoveRelative">
        <x>0</x>
        <y>10</y>
      </action>
    </keybind>
    <keybind key="W-S-l">
      <action name="MoveRelative">
        <x>25</x>
        <y>0</y>
      </action>
    </keybind>
    <keybind key="W-S-k">
      <action name="MoveRelative">
        <x>0</x>
        <y>-25</y>
      </action>
    </keybind>
    <keybind key="W-S-h">
      <action name="MoveRelative">
        <x>-25</x>
        <y>0</y>
      </action>
    </keybind>
    <keybind key="W-S-j">
      <action name="MoveRelative">
        <x>0</x>
        <y>25</y>
      </action>
    </keybind>
    <keybind key="W-C-j">
      <action name="ResizeRelative">
        <bottom>10</bottom>
      </action>
    </keybind>
    <keybind key="W-C-k">
      <action name="ResizeRelative">
        <bottom>-10</bottom>
      </action>
    </keybind>
    <keybind key="W-C-l">
      <action name="ResizeRelative">
        <right>10</right>
      </action>
    </keybind>
    <keybind key="W-C-h">
      <action name="ResizeRelative">
        <right>-10</right>
      </action>
    </keybind>
    <keybind key="W-C-S-j">
      <action name="ResizeRelative">
        <bottom>25</bottom>
      </action>
    </keybind>
    <keybind key="W-C-S-k">
      <action name="ResizeRelative">
        <bottom>-25</bottom>
      </action>
    </keybind>
    <keybind key="W-C-S-l">
      <action name="ResizeRelative">
        <right>25</right>
      </action>
    </keybind>
    <keybind key="W-C-S-h">
      <action name="ResizeRelative">
        <right>-25</right>
      </action>
    </keybind>
    <keybind key="W-Left">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>50%</width>
      </action>
      <action name="MoveToEdge">
        <direction>west</direction>
      </action>
    </keybind>
    <keybind key="W-Right">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>50%</width>
      </action>
      <action name="MoveToEdge">
        <direction>east</direction>
      </action>
    </keybind>
    <keybind key="W-Down">
      <action name="Unmaximize"/>
    </keybind>
    <keybind key="W-Up">
      <action name="Maximize"/>
    </keybind>

The Manjaro Forum Rules
https://forum.manjaro.org/index.php?topic=11253.msg100841#msg100841
May your life be a symphony of freedom.
Do what thou wilt without infringing on anothers right to a peace-full existence.

Offline spec-chum

  • Neuling
  • *
  • Posts: 24
  • Wibble!
  • Branch: Testing for daily use and unstable for, er, testing
  • Desktop: OpenBox (main install), Cinnamon (secondary install)
  • GPU Card: ATi 5850
  • GPU driver: Free forever!
  • Kernel: linux314-x64
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #37 on: 22. April 2014, 16:40:31 »
My OB window moving/resizing/snapping keybinds:

Code: [Select]
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>0</x>
        <y>0</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="W-u">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>-0</x>
        <y>0</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="W-b">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>0</x>
        <y>-0</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="W-n">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>-0</x>
        <y>-0</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="W-m">
      <action name="Unmaximize"/>
      <action name="MoveResizeTo">
        <x>center</x>
        <y>center</y>
        <width>684</width>
        <height>380</height>
      </action>
    </keybind>
    <keybind key="A-m">
      <action name="Move"/>
    </keybind>
    <keybind key="A-r">
      <action name="Resize"/>
    </keybind>
    <keybind key="W-l">
      <action name="MoveRelative">
        <x>10</x>
        <y>0</y>
      </action>
    </keybind>
    <keybind key="W-k">
      <action name="MoveRelative">
        <x>0</x>
        <y>-10</y>
      </action>
    </keybind>
    <keybind key="W-h">
      <action name="MoveRelative">
        <x>-10</x>
        <y>0</y>
      </action>
    </keybind>
    <keybind key="W-j">
      <action name="MoveRelative">
        <x>0</x>
        <y>10</y>
      </action>
    </keybind>
    <keybind key="W-S-l">
      <action name="MoveRelative">
        <x>25</x>
        <y>0</y>
      </action>
    </keybind>
    <keybind key="W-S-k">
      <action name="MoveRelative">
        <x>0</x>
        <y>-25</y>
      </action>
    </keybind>
    <keybind key="W-S-h">
      <action name="MoveRelative">
        <x>-25</x>
        <y>0</y>
      </action>
    </keybind>
    <keybind key="W-S-j">
      <action name="MoveRelative">
        <x>0</x>
        <y>25</y>
      </action>
    </keybind>
    <keybind key="W-C-j">
      <action name="ResizeRelative">
        <bottom>10</bottom>
      </action>
    </keybind>
    <keybind key="W-C-k">
      <action name="ResizeRelative">
        <bottom>-10</bottom>
      </action>
    </keybind>
    <keybind key="W-C-l">
      <action name="ResizeRelative">
        <right>10</right>
      </action>
    </keybind>
    <keybind key="W-C-h">
      <action name="ResizeRelative">
        <right>-10</right>
      </action>
    </keybind>
    <keybind key="W-C-S-j">
      <action name="ResizeRelative">
        <bottom>25</bottom>
      </action>
    </keybind>
    <keybind key="W-C-S-k">
      <action name="ResizeRelative">
        <bottom>-25</bottom>
      </action>
    </keybind>
    <keybind key="W-C-S-l">
      <action name="ResizeRelative">
        <right>25</right>
      </action>
    </keybind>
    <keybind key="W-C-S-h">
      <action name="ResizeRelative">
        <right>-25</right>
      </action>
    </keybind>
    <keybind key="W-Left">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>50%</width>
      </action>
      <action name="MoveToEdge">
        <direction>west</direction>
      </action>
    </keybind>
    <keybind key="W-Right">
      <action name="UnmaximizeFull"/>
      <action name="MaximizeVert"/>
      <action name="MoveResizeTo">
        <width>50%</width>
      </action>
      <action name="MoveToEdge">
        <direction>east</direction>
      </action>
    </keybind>
    <keybind key="W-Down">
      <action name="Unmaximize"/>
    </keybind>
    <keybind key="W-Up">
      <action name="Maximize"/>
    </keybind>


:)  Yeah, I've got this too, but I've also got it set up to do mouse snapping like in my video here: https://dl.dropboxusercontent.com/u/4616516/snapping.mkv

The video is about 8 months old and on Arch but the snapping feature is still the same.

Offline Matthias19281

  • Vollwertiges Mitglied
  • ***
  • Posts: 166
  • Branch: unstable
  • Desktop: Openbox
  • GPU Card: Intel (Laptop)/Nvidia (PC)
  • GPU driver: free
  • Kernel: Kernel 3.14 (Laptop) /Kernel 3.13 (PC)
  • Skill: Advanced
Re: add your favorite openbox customizing tips here
« Reply #38 on: 06. May 2014, 07:22:22 »
I usually replace tint2 with tint2-svn, because you can have launchers within tint2-svn

Add to the menu section:
Code: [Select]
panel_items = LTSBC
Launchers look like that in the tint2rc
Code: [Select]
# Launchers
launcher_icon_theme = areao43 
launcher_padding = 2 2 
launcher_background_id = 1 
launcher_icon_size = 0 
launcher_item_app = /usr/share/applications/xfce4-appfinder.desktop
launcher_item_app = /usr/share/applications/vlc.desktop
launcher_item_app = /usr/share/applications/qshutdown.desktop
launcher_item_app = /usr/share/applications/firefox.desktop
launcher_item_app = /usr/share/applications/pidgin.desktop 
launcher_item_app = /usr/share/applications/arandr.desktop
launcher_item_app = /usr/share/applications/geany.desktop



Then you can make xfce4-appfinder behave like a "classic" menu by adding this section to your rc.xml
Code: [Select]
<application name="xfce4-appfinder">
      <decor>no</decor>
      <focus>yes</focus>
      <desktop>all</desktop>
      <maximized>vertical</maximized>
      <position force="yes">
<x>left</x>
<y>top</y>
  </position>
    </application>



I added yesterday a few lines of code, I'm not sure this will work... The german Arch-Wiki says that this will download packages once a day automatically, without installing:
/etc/cron.daily/packageupdate
Code: [Select]
#!/bin/sh
pacman -Syuw --noconfirm

I added the following:
Code: [Select]
#!/bin/sh
pacman -Syuw --noconfirm
if (pacman -Qu)
then
notify-send 'Es sind neue Updates für ihr Betriebssystem verfügbar' --icon=dialog-information
fi

This should give me a notify, if there are new packages for an update - I give feedback if this works

Offline gychang

  • Vollwertiges Mitglied
  • ***
  • Posts: 217
  • Skill: Novice
Re: add your favorite openbox customizing tips here
« Reply #39 on: 06. May 2014, 15:24:27 »
I usually replace tint2 with tint2-svn, because you can have launchers within tint2-svn

Add to the menu section:
Code: [Select]
panel_items = LTSBC
Launchers look like that in the tint2rc
Code: [Select]
# Launchers
launcher_icon_theme = areao43 
launcher_padding = 2 2 
launcher_background_id = 1 
launcher_icon_size = 0 
launcher_item_app = /usr/share/applications/xfce4-appfinder.desktop
launcher_item_app = /usr/share/applications/vlc.desktop
launcher_item_app = /usr/share/applications/qshutdown.desktop
launcher_item_app = /usr/share/applications/firefox.desktop
launcher_item_app = /usr/share/applications/pidgin.desktop 
launcher_item_app = /usr/share/applications/arandr.desktop
launcher_item_app = /usr/share/applications/geany.desktop



Then you can make xfce4-appfinder behave like a "classic" menu by adding this section to your rc.xml
Code: [Select]
<application name="xfce4-appfinder">
      <decor>no</decor>
      <focus>yes</focus>
      <desktop>all</desktop>
      <maximized>vertical</maximized>
      <position force="yes">
<x>left</x>
<y>top</y>
  </position>
    </application>



I added yesterday a few lines of code, I'm not sure this will work... The german Arch-Wiki says that this will download packages once a day automatically, without installing:
/etc/cron.daily/packageupdate
Code: [Select]
#!/bin/sh
pacman -Syuw --noconfirm

I added the following:
Code: [Select]
#!/bin/sh
pacman -Syuw --noconfirm
if (pacman -Qu)
then
notify-send 'Es sind neue Updates für ihr Betriebssystem verfügbar' --icon=dialog-information
fi

This should give me a notify, if there are new packages for an update - I give feedback if this works

thanks, app launcher works perfectly.

Offline Matthias19281

  • Vollwertiges Mitglied
  • ***
  • Posts: 166
  • Branch: unstable
  • Desktop: Openbox
  • GPU Card: Intel (Laptop)/Nvidia (PC)
  • GPU driver: free
  • Kernel: Kernel 3.14 (Laptop) /Kernel 3.13 (PC)
  • Skill: Advanced
Re: add your favorite openbox customizing tips here
« Reply #40 on: 08. May 2014, 14:54:09 »
This works if you just want a notification if updates are available instead of Octopi or Pamac:
Code: [Select]
sudo (your Texteditor) /etc/cron.daily/packageupdate
Fill it with this
Code: [Select]
#!/bin/sh
pacman -Syuw --noconfirm
if [ "$(pacman -Qu)"]
then
notify-send 'New Updates are available' --icon=dialog-information
fi

I am working on a solution with a button inside the message, which opens a terminal by clicking and executes automatically the update command

As an alternaive:
Code: [Select]
#!/bin/sh
pacman -Syuw --noconfirm
if [ "$(pacman -Qu)"]
then
notify-send 'New Updates are available', 'Press Super+U for starting your update' --icon=dialog-information
fi

Then edit your ~/.config/openbox/rc.xml and add someting like this:
Code: [Select]
<keybind key="W-">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Run Update</name>
        </startupnotify>
        <command>xterm -e 'sudo pacman -Syyu --noconfirm && yaourt -Syua --devel --noconfirm'</command>
      </action>
    </keybind>

Offline natanvarga

  • Sr. Mitglied
  • ****
  • Posts: 437
  • Branch: unstable
  • Desktop: cinnamon
  • GPU Card: Intel Skylake integrated
  • GPU driver: free
  • Kernel: 4.4
  • Skill: Novice
Re: add your favorite openbox customizing tips here
« Reply #41 on: 08. May 2014, 16:56:26 »
I have something similar implemented in my conky. It tells me the number of updates so I can see it if I have any. It does not have a click on feature though but I guess with dzen2 it'd be possible.
"The greatest trick the devil ever pulled was convincing the world he didn't exist."
been running Manjaro since Aug 2013

Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #42 on: 25. May 2014, 22:42:56 »
simple tip for anyone wanting a software manager and update notifier.

Pamac software manager seems to be working best for me now on openbox

to install

sudo pacman -Sy pamac

it will add the notifier for you.   
« Last Edit: 26. May 2014, 05:05:26 by runpc2deth »

Offline runpc2deth

  • Held Mitglied
  • *****
  • Posts: 507
  • Branch: testing
  • Desktop: ManjaroBox
  • GPU Card: AMD A10-5800K - amd radeon hd 7660d
  • GPU driver: free or non free whatever is working :)
  • Kernel: Linux314-X64
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #43 on: 25. May 2014, 22:52:11 »
another simple tip for adding a calendar to the tint2 panel

install gsimplecal or you can add other ones if you like.  add the command gsimplecal to your tint2 panel.  i used the tint2 wizard myself.

thats it!  ;) have a nice drop down calendar using your right or left click button. 

Offline Halcyon

  • Jr. Mitglied
  • **
  • Posts: 80
  • Branch: Arch Linux
  • Desktop: pekwm, awesome
  • GPU Card: Nvidia GeForce 8600M GT
  • GPU driver: non-free
  • Kernel: linux318-x64
  • Skill: Intermediate
Re: add your favorite openbox customizing tips here
« Reply #44 on: 23. August 2014, 05:03:24 »
Here's something I set up to lock my screen and turn off my laptop screen without having xfce4-power-manager (I got tired of the screen turning on and off when it wanted).

First, I installed slock:
Code: [Select]
sudo pacman -S slock
Then I made a simple script in my home folder, based on something I found online, and called it .screenlock.sh:
Code: [Select]
( slock && xset dpms 0 0 0 ) &
xset dpms 0 0 2
xset dpms force off

Then I set up a keybind in rc.xml.
Code: [Select]
<keybind key="W-l">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>screenlock</name>
        </startupnotify>
        <command>sh .screenlock.sh</command>
      </action>
    </keybind>

Now I lock my screen with W-l when I want, and wake it up with my password. The best part is that if my mouse gets bumped while my laptop lid is closed, the screen turns off after 2 seconds if the password isn't entered.
I'm So Meta, Even This Acronym...