DIRC
In Openbox, the screenshot functionality is typically handled by a separate program, often `scrot` or `maim`. The key combination you mentioned ([FN] + [ScreenShot]) is usually configured in your Openbox
configuration file (`rc.xml`) to trigger one of these programs.Here are the most common programs used for taking screenshots in Openbox:
1. **scrot**: A command-line utility for taking screenshots
2. **maim**: A more modern alternative to scrot
3. **import**: Part of the ImageMagick suite
## How to Identify the Program
To find out which program is being used for screenshots in your Openbox setup:
1. Check your Openbox configuration file:
```bash
cat ~/.config/openbox/rc.xml | grep -i screenshot
```
2. Look for keybindings related to screenshots:
```bash
grep -i screenshot ~/.config/openbox/rc.xml
```
3. Check your system's keybindings:
```bash
xbindkeys --defaults
```
## Common Openbox Screenshot Configurations
Here are some typical configurations you might find:
### Using scrot:
```xml
<keybind key="XF86Print" action="Execute">
<command>scrot 'screenshot_%Y-%m-%d-%H%M%S.png' -e 'mv $f ~/Pictures/Screenshots/'</command>
</keybind>
```
### Using maim:
```xml
<keybind key="XF86Print" action="Execute">
<command>maim ~/Pictures/Screenshots/screenshot_$(date +%Y-%m-%d_%H-%M-%S).png</command>
</keybind>
```
### Using import (ImageMagick):
```xml
<keybind key="XF86Print" action="Execute">
<command>import -window root ~/Pictures/Screenshots/screenshot_$(date +%Y-%m-%d_%H-%M-%S).png</command>
</keybind>
```
## How to Install These Programs
If you need to install any of these programs:
1. **scrot**:
```bash
sudo apt-get install scrot # Debian/Ubuntu
sudo pacman -S scrot # Arch Linux
sudo dnf install scrot # Fedora
```
2. **maim**:
```bash
sudo apt-get install maim # Debian/Ubuntu
sudo pacman -S maim # Arch Linux
sudo dnf install maim # Fedora
```
3. **ImageMagick** (includes import):
```bash
sudo apt-get install imagemagick # Debian/Ubuntu
sudo pacman -S imagemagick # Arch Linux
sudo dnf install imagemagick # Fedora
```
## Common Screenshot Programs
If you're looking for a GUI program that lets you select a region or window, here are some popular options:
1. **Flameshot**: A powerful screenshot tool with annotation features
```bash
sudo apt-get install flameshot # Debian/Ubuntu
sudo pacman -S flameshot # Arch Linux
sudo dnf install flameshot # Fedora
```
2. **Shutter**: A feature-rich screenshot tool
```bash
sudo apt-get install shutter # Debian/Ubuntu
```
3. **Kazam**: A simple screen recording and screenshot tool
```bash
sudo apt-get install kazam # Debian/Ubuntu
```
## Configuring a New Screenshot Shortcut
If you want to set up a new screenshot shortcut in Openbox:
1. Edit your rc.xml file:
```bash
nano ~/.config/openbox/rc.xml
```
2. Add a keybinding section (if it doesn't exist):
```xml
<keyboard>
<keybind key="XF86Print" action="Execute">
<command>scrot 'screenshot_%Y-%m-%d-%H%M%S.png' -e 'mv $f ~/Pictures/Screenshots/'</command>
</keybind>
</keyboard>
```
3. Reload Openbox configuration:
```bash
openbox --reconfigure
```
The most likely program being used in your setup is probably `scrot` or `import`, as these are the most common command-line tools for taking screenshots in Openbox.