<keybind key="W-Tab">
<action name="NextWindow">
<allDesktops>yes</allDesktops>
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
<keybind key="W-S-Tab">
<action name="PreviousWindow">
<finalactions>
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</finalactions>
</action>
</keybind>
Showing posts with label openbox. Show all posts
Showing posts with label openbox. Show all posts
Friday, 17 January 2014
Macbook Air and Openbox: copy the Spotlight(TM) keyboard shortcut
<keybind key="W-space">
<action name="Execute">
<command>dmenu_run</command>
</action>
</keybind>
apt-get install suckless-tools
<action name="Execute">
<command>dmenu_run</command>
</action>
</keybind>
apt-get install suckless-tools
Sunday, 5 January 2014
Macbook Air and Openbox: Raise/Lower Volume, Up/Down Brightness
<keybind key="XF86KbdBrightnessUp">
<action name="Execute">
<command>xbacklight +10</command>
</action>
</keybind>
<keybind key="XF86KbdBrightnessDown">
<action name="Execute">
<command>xbacklight -10</command>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer -c 0 set Master 2dB+</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer -c 0 set Master 2dB-</command>
</action>
</keybind>
<action name="Execute">
<command>xbacklight +10</command>
</action>
</keybind>
<keybind key="XF86KbdBrightnessDown">
<action name="Execute">
<command>xbacklight -10</command>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer -c 0 set Master 2dB+</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer -c 0 set Master 2dB-</command>
</action>
</keybind>
Friday, 8 November 2013
Openbox: monitor laptop battery via CLI and notify-send
while (true);do acpi -b | perl -n -e 's/.*?(\d+)%.*/$1/;chomp;print "$_...";if ($_ <= 15) {`notify-send batalert:$_`};';sleep 180;done
Would like a beep, but can't get one, no PC speaker on MacBook Air and mplayer buffers.
Wednesday, 6 November 2013
Change X / Openbox screen brightness on CLI
- sudo apt-get -y install xbacklight
- xbacklight +10
- xbacklight +10
- xbacklight +10
- xbacklight -10
- xbacklight -10
- xbacklight -10
Tuesday, 6 August 2013
vncserver on Amazon Linux on Amazon's AWS
NOTE: this first step may be outdated in new versions of Amazon Linux, which provides libjpeg-turbo.
First, get a good version of libjpeg-turbo:
vncserver :66 -localhost
bizarrely, it was listening on port 5966 and some 6066 port. The 5966 port is the one you want.
See previous post on Redhat VNC for details, click here.
First, get a good version of libjpeg-turbo:
- yum clean all
- yum --enablerepo=amzn-preview install libjpeg-turbo
- see: https://forums.aws.amazon.com/thread.jspa?threadID=121128
Necessary packages:
Start by trying to install tigervnc-server. That will fail. Follow the dependencies down, installing packages one by one as they come up. If they fail, install their dependencies first.
These packages were special cases
- gnutls-2.8.5-10.el6.x86_64.rpm
- libfontenc-1.0.5-2.el6.x86_64.rpm
- libtasn1-2.3-3.el6.x86_64.rpm
- libxdmcp-1.1.1-7.ram1.x86_64.rpm
- libXfont-1.4.5-2.el6.x86_64.rpm
- libxkbfile-1.0.6-1.1.el6.x86_64.rpm
- libXmu-1.1.1-2.el6.x86_64.rpm
- mesa-dri-drivers-9.0-0.7.el6.x86_64.rpm
- pixman-0.26.2-5.el6_4.x86_64.rpm
- tigervnc-license-1.3.0-16.el6.noarch.rpm
- tigervnc-server-1.3.0-16.el6.x86_64.rpm
- tigervnc-server-minimal-1.3.0-16.el6.x86_64.rpm
- xkeyboard-config-2.6-6.el6.noarch.rpm
- xorg-x11-proto-devel-7.6-25.el6.noarch.rpm
- xorg-x11-xauth-1.0.2-7.1.el6.x86_64.rpm
- xorg-x11-xkb-utils-7.7-4.el6.x86_64.rpm
Necessary packages for fluxbox:
- pyxdg-0.18-1.el6.noarch.rpm
Here's a link to all the packages needed: rpms
Start by trying to install tigervnc-server. That will fail. Follow the dependencies down, installing packages one by one as they come up. If they fail, install their dependencies first.
These packages were special cases
- mesa-dri-drivers-9.0-0.7.el6.x86_64.rpm
- just "--nodeps" install this one
- the libraries of the dependencies are never called from my experience
- libXtst-1.2.1-2.el6.x86_64.rpm
- there is a more recent version of this already in Amazon Linux, so just skip this one and "--nodeps" the parent package, which is libXmu-1.1.1-2.el6.x86_64.rpm
If not found, add location of libXdmcp.so.6 to /etc/ld.so.conf and run "ldconfig", e.g. locations is /usr/lib/libXdmcp.so.6 so add the line "/usr/lib".
Once I got the vncserver up with
Once I got the vncserver up with
vncserver :66 -localhost
bizarrely, it was listening on port 5966 and some 6066 port. The 5966 port is the one you want.
See previous post on Redhat VNC for details, click here.
Thursday, 25 April 2013
Quick CLI screenshots on Linux or Openbox / Fluxbox
- sudo apt-get -y install imagemagick eog
- import myscreenshot.jpg
- select portion of screen with the crosshairs
- eog myscreenshot.jpg
Monday, 17 September 2012
Anti-window, anti-desktop Linux desktop
- Install base debian with NO additional packages
- apt-get install xorg openbox obmenu slim terminator firefox wicd-gtk
- reboot
- Log in to openbox via slim
- Right-click on blank desktop and open default terminal
- Run obmenu
- Edit ~/.config/openbox/menu.xml to add things you like
- Set up network including wireless using early post on this blog
- It is not easy
- but nice to know once you learn
Subscribe to:
Posts (Atom)
Interview questions: 2020-12
Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer Networking Layer 1 vs Layer 4 haproxy u...
-
CRITICAL: AWS now offers internal VPC DNS! Below is no longer necessary AFAIK. Woo hoo! http://aws.amazon.com/about-aws/whats-new/2014/...
-
build sudo apt-get install git gcc sudo apt-get install automake autoconf git clone git://github.com/rriley/tsunami-udp.git cd tsunam...
-
From: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382972#c4 Assumptions: jEdit was installed into /Applications directory. Close any...