diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2020-07-17 07:55:02 -0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2020-07-17 07:55:02 -0400 |
| commit | be9e153ae1efb20077ac519ae1374c47ab5b5e60 (patch) | |
| tree | dd1eb53ceb4e2100c3ae953363264110dc2c63e4 | |
| parent | c15360bdd76eadf62cc1ac7ccb03e17ec250b024 (diff) | |
Changed openbox config so it now uses my script to make screenshots and also removed shadows of maim when compton is running
| -rw-r--r-- | .config/compton/compton.conf | 3 | ||||
| -rwxr-xr-x | .config/openbox/autostart | 1 | ||||
| -rw-r--r-- | .config/openbox/rc.xml | 63 | ||||
| -rwxr-xr-x | .local/bin/scripts/screenshot.py | 2 |
4 files changed, 45 insertions, 24 deletions
diff --git a/.config/compton/compton.conf b/.config/compton/compton.conf index 710eda7..bb922be 100644 --- a/.config/compton/compton.conf +++ b/.config/compton/compton.conf @@ -3,5 +3,6 @@ popup_menu = { shadow = false; }; utility = { shadow = false; }; shadow-exclude = [ "i:e:plank", - "i:e:polybar" + "i:e:polybar", + "n:a:slop" ] diff --git a/.config/openbox/autostart b/.config/openbox/autostart index 3486175..2a75664 100755 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -7,3 +7,4 @@ killall -q polybar polybar example & +XDG_SESSION_TYPE=x11 plank & diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml index 0ccd5f4..874fc44 100644 --- a/.config/openbox/rc.xml +++ b/.config/openbox/rc.xml @@ -171,6 +171,7 @@ <moveButton>Middle</moveButton> <!-- 'Left', 'Middle', 'Right' --> </dock> + <keyboard> <chainQuitKey>C-g</chainQuitKey> <keybind key="W-Return"> @@ -183,6 +184,41 @@ <command>x-terminal-emulator -e htop</command> </action> </keybind> + + <!-- Keybindings for screenshots --> + <keybind key="Print"> + <action name="Execute"> + <command>screenshot area to clip</command> + </action> + </keybind> + <keybind key="S-Print"> + <action name="Execute"> + <command>screenshot area to file</command> + </action> + </keybind> + + <keybind key="C-Print"> + <action name="Execute"> + <command>screenshot window to clip</command> + </action> + </keybind> + <keybind key="C-S-Print"> + <action name="Execute"> + <command>screenshot window to file</command> + </action> + </keybind> + + <keybind key="W-Print"> + <action name="Execute"> + <command>screenshot screen to clip</command> + </action> + </keybind> + <keybind key="S-Print"> + <action name="Execute"> + <command>screenshot screen to file</command> + </action> + </keybind> + <!-- Keybindings for desktop switching --> <keybind key="W-Left"> <action name="GoToDesktop"> @@ -208,6 +244,7 @@ <wrap>no</wrap> </action> </keybind> + <!-- Tiling-like keybindings for sending windows to dekstops --> <keybind key="W-S-1"> <action name="SendToDesktop"> @@ -263,6 +300,7 @@ <follow>no</follow> </action> </keybind> + <!-- Tiling-like keybindings for changing desktop --> <keybind key="W-1"> <action name="GoToDesktop"> @@ -312,6 +350,7 @@ <keybind key="W-d"> <action name="ToggleShowDesktop"/> </keybind> + <!-- Keybindings for windows --> <keybind key="A-F4"> <action name="Close"/> @@ -326,12 +365,7 @@ <menu>client-menu</menu> </action> </keybind> - <!-- Take a screenshot of the current window with scrot when Alt+Print are pressed --> - <keybind key="A-Print"> - <action name="Execute"> - <command>scrot -s</command> - </action> - </keybind> + <!-- Keybindings for window switching --> <keybind key="A-Tab"> <action name="NextWindow"> @@ -362,23 +396,8 @@ </finalactions> </action> </keybind> - <!-- Keybindings for running applications --> - <keybind key="W-e"> - <action name="Execute"> - <startupnotify> - <enabled>true</enabled> - <name>Konqueror</name> - </startupnotify> - <command>kfmclient openProfile filemanagement</command> - </action> - </keybind> - <!-- Launch scrot when Print is pressed --> - <keybind key="Print"> - <action name="Execute"> - <command>scrot</command> - </action> - </keybind> </keyboard> + <mouse> <dragThreshold>1</dragThreshold> <!-- number of pixels the mouse must move before a drag begins --> diff --git a/.local/bin/scripts/screenshot.py b/.local/bin/scripts/screenshot.py index 752924b..5b10ea9 100755 --- a/.local/bin/scripts/screenshot.py +++ b/.local/bin/scripts/screenshot.py @@ -1,4 +1,4 @@ -#!/bin/python3 +#!/usr/bin/python3 import sys import re import subprocess |