├── LICENSE.md ├── README.md ├── my-obtgen └── openbox-3 │ ├── bullet.xbm │ ├── close.xbm │ ├── close_hover.xbm │ ├── desk.xbm │ ├── desk_hover.xbm │ ├── desk_hover_toggled.xbm │ ├── desk_toggled.xbm │ ├── iconify.xbm │ ├── iconify_hover.xbm │ ├── max.xbm │ ├── max_hover.xbm │ ├── max_hover_toggled.xbm │ ├── max_toggled.xbm │ ├── shade.xbm │ ├── shade_hover.xbm │ ├── shade_hover_toggled.xbm │ ├── shade_toggled.xbm │ ├── test.xbm │ └── themerc ├── myobtheme └── openbox-3 │ ├── bullet.xbm │ ├── close.xbm │ ├── close_hover.xbm │ ├── desk.xbm │ ├── desk_hover.xbm │ ├── desk_hover_toggled.xbm │ ├── desk_toggled.xbm │ ├── iconify.xbm │ ├── iconify_hover.xbm │ ├── max.xbm │ ├── max_hover.xbm │ ├── max_hover_toggled.xbm │ ├── max_toggled.xbm │ ├── shade.xbm │ ├── shade_hover.xbm │ ├── shade_hover_toggled.xbm │ ├── shade_toggled.xbm │ └── themerc ├── obtgen └── preview ├── preview-obtgen-wal.png ├── preview-obtgen-wal2.png ├── preview-obtgen-wal3.png ├── preview-obtgen-wal4.png ├── preview-obtgen-wal5.png ├── preview-obtgen-wal6.png ├── preview-obtgen-wal7.png └── preview-obtgen.png /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) [2018] [Mohammad Fikri Omar] 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | 4 |

5 | 6 | # OBTGEN 7 | Openbox Theme Generator
8 | Create your own openbox-theme from .Xresources
9 | 10 | ## Installation 11 | ```sh 12 | $ git clone https://github.com/fikriomar16/obtgen.git 13 | $ cd obtgen/ 14 | $ cp -r my-obtgen/ myobtheme/ obtgen ~/.local/bin/ 15 | ``` 16 | 17 | ## Usage 18 | ```sh 19 | $ obtgen [options #optional] 20 | ``` 21 | ## Command Line Arguments 22 | ```sh 23 | --wal Generate color from pywal cache 24 | --wb Generate borderless theme 25 | --help Show help 26 | ``` 27 | 28 | Then open `lxappearance`, and select "myobtheme" 29 | 30 | ## Preview 31 | ![preview](https://raw.githubusercontent.com/fikriomar16/obtgen/master/preview/preview-obtgen.png) 32 | 33 | ![preview2](https://raw.githubusercontent.com/fikriomar16/obtgen/master/preview/preview-obtgen-wal.png) 34 | 35 | ![preview3](https://raw.githubusercontent.com/fikriomar16/obtgen/master/preview/preview-obtgen-wal2.png) 36 | 37 | ![preview4](https://raw.githubusercontent.com/fikriomar16/obtgen/master/preview/preview-obtgen-wal3.png) 38 | 39 | ![preview5](https://raw.githubusercontent.com/fikriomar16/obtgen/master/preview/preview-obtgen-wal4.png) 40 | 41 | ![preview6](https://raw.githubusercontent.com/fikriomar16/obtgen/master/preview/preview-obtgen-wal5.png) 42 | 43 | ![preview7](https://raw.githubusercontent.com/fikriomar16/obtgen/master/preview/preview-obtgen-wal6.png) 44 | 45 | ![preview8](https://raw.githubusercontent.com/fikriomar16/obtgen/master/preview/preview-obtgen-wal7.png) 46 | 47 | ## Customization 48 | Do whatever you want 49 | 50 | ## Credits 51 | Inspired by [Yuune](https://github.com/yuune/) 52 | 53 | ## License 54 | The code is available under the [MIT License](https://github.com/fikriomar16/obtgen/blob/master/LICENSE.md) 55 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/bullet.xbm: -------------------------------------------------------------------------------- 1 | #define bullet_width 6 2 | #define bullet_height 6 3 | static unsigned char bullet_bits[] = { 4 | 0x06, 0x0c, 0x18, 0x18, 0x0c, 0x06 }; 5 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/close.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/close_hover.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/desk.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/desk_hover.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/desk_hover_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/desk_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/iconify.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/iconify_hover.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/max.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/max_hover.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/max_hover_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/max_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/shade.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/shade_hover.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/shade_hover_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/shade_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/test.xbm: -------------------------------------------------------------------------------- 1 | #define maximize-active_width 24 2 | #define maximize-active_height 24 3 | static char maximize-active_bits[] = { 4 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 5 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 6 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 9 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 10 | }; 11 | -------------------------------------------------------------------------------- /my-obtgen/openbox-3/themerc: -------------------------------------------------------------------------------- 1 | 2 | # Menu 3 | menu.border.width: 10 4 | menu.overlap.x: -20 5 | menu.overlap.y: -20 6 | 7 | menu.border.color: #2f343f 8 | menu.separator.color: #2f343f 9 | 10 | menu.title.bg: flat solid 11 | menu.title.bg.color: #2f343f 12 | menu.title.text.color: #81A1C1 13 | menu.title.text.justify: Center 14 | 15 | menu.items.bg: flat solid 16 | menu.items.bg.color: #2f343f 17 | 18 | menu.items.text.color: #e1e1e1 19 | menu.items.disabled.text.color: #2f343f 20 | 21 | menu.items.active.bg: flat solid 22 | menu.items.active.bg.color: #2f343f 23 | menu.items.active.text.color: #81A1C1 24 | 25 | # Active window 26 | window.active.border.color: #81A1C1 27 | 28 | window.active.title.bg: solid flat 29 | window.active.title.bg.color: #81A1C1 30 | window.active.title.separator.color: #81A1C1 31 | window.active.text.justify: center 32 | 33 | window.active.label.bg: parentrelative 34 | window.active.label.text.color: #81A1C1 35 | 36 | window.active.handle.bg: flat solid 37 | window.active.handle.bg.color: #81A1C1 38 | 39 | window.active.grip.bg: flat solid 40 | window.active.grip.bg.color: #81A1C1 41 | 42 | window.active.button.unpressed.bg: parentrelative 43 | window.active.button.unpressed.bg.color: #2f343f 44 | 45 | window.active.button.iconify.unpressed.image.color: #e1e1e1 46 | window.active.button.iconify.pressed.image.color: #EBCB8B 47 | window.active.button.iconify.hover.image.color: #EBCB8B 48 | 49 | window.active.button.max.unpressed.image.color: #e1e1e1 50 | window.active.button.max.pressed.image.color: #A3BE8C 51 | window.active.button.max.hover.image.color: #A3BE8C 52 | 53 | window.active.button.close.unpressed.image.color: #e1e1e1 54 | window.active.button.close.pressed.image.color: #BF616A 55 | window.active.button.close.hover.image.color: #BF616A 56 | 57 | window.active.button.shade.unpressed.image.color: #e1e1e1 58 | window.active.button.shade.pressed.image.color: #B48EAD 59 | window.active.button.shade.hover.image.color: #B48EAD 60 | 61 | window.active.button.desk.unpressed.image.color: #e1e1e1 62 | window.active.button.desk.pressed.image.color: #88C0D0 63 | window.active.button.desk.hover.image.color: #88C0D0 64 | 65 | window.active.button.pressed.bg: parentrelative 66 | window.active.button.pressed.bg.color: #e1e1e1 67 | 68 | window.active.button.disabled.bg: parentrelative 69 | window.active.button.disabled.bg.color: #2f343f 70 | window.active.button.disabled.image.color: #2f343f 71 | 72 | window.active.button.toggled.bg: parentrelative 73 | window.active.button.toggled.image.color: #B48EAD 74 | 75 | window.active.button.toggled.pressed.bg: parentrelative 76 | window.active.button.toggled.pressed.image.color: #e1e1e1 77 | 78 | # Inactive window 79 | window.inactive.border.color: #B48EAD 80 | 81 | window.inactive.title.bg: flat solid 82 | window.inactive.title.bg.color: #B48EAD 83 | window.inactive.title.separator.color: #B48EAD 84 | window.inactive.text.justify: center 85 | 86 | window.inactive.label.bg: parentrelative 87 | window.inactive.label.text.color: #B48EAD 88 | 89 | window.inactive.handle.bg: flat solid 90 | window.inactive.handle.bg.color: #B48EAD 91 | 92 | window.inactive.grip.bg: flat solid 93 | window.inactive.grip.bg.color: #B48EAD 94 | 95 | window.inactive.button.unpressed.bg: parentrelative 96 | window.inactive.button.unpressed.bg.color: #2f343f 97 | 98 | window.inactive.button.iconify.unpressed.image.color: #e1e1e1 99 | window.inactive.button.iconify.pressed.image.color: #EBCB8B 100 | window.inactive.button.iconify.hover.image.color: #EBCB8B 101 | 102 | window.inactive.button.max.unpressed.image.color: #e1e1e1 103 | window.inactive.button.max.pressed.image.color: #A3BE8C 104 | window.inactive.button.max.hover.image.color: #A3BE8C 105 | 106 | window.inactive.button.close.unpressed.image.color: #e1e1e1 107 | window.inactive.button.close.pressed.image.color: #BF616A 108 | window.inactive.button.close.hover.image.color: #BF616A 109 | 110 | window.inactive.button.shade.unpressed.image.color: #e1e1e1 111 | window.inactive.button.shade.pressed.image.color: #B48EAD 112 | window.inactive.button.shade.hover.image.color: #B48EAD 113 | 114 | window.inactive.button.desk.unpressed.image.color: #e1e1e1 115 | window.inactive.button.desk.pressed.image.color: #88C0D0 116 | window.inactive.button.desk.hover.image.color: #88C0D0 117 | 118 | window.inactive.button.pressed.bg: parentrelative 119 | window.inactive.button.pressed.bg.color: #81A1C1 120 | 121 | window.inactive.button.disabled.bg: parentrelative 122 | window.inactive.button.disabled.bg.color: #2f343f 123 | window.inactive.button.disabled.image.color: #2f343f 124 | 125 | window.inactive.button.toggled.bg: parentrelative 126 | window.inactive.button.toggled.image.color: #81A1C1 127 | 128 | window.inactive.button.toggled.pressed.bg: parentrelative 129 | window.inactive.button.toggled.pressed.image.color: #81A1C1 130 | 131 | # OSD 132 | osd.border.width: 3 133 | osd.border.color: #2f343f 134 | 135 | osd.bg: flat solid 136 | osd.bg.color: #2f343f 137 | osd.label.bg: flat solid 138 | osd.label.bg.color: #2f343f 139 | osd.label.text.color: #e1e1e1 140 | 141 | osd.hilight.bg: flat solid 142 | osd.hilight.bg.color: #81A1C1 143 | 144 | osd.unhilight.bg: flat solid 145 | osd.unhilight.bg.color: #444A57 146 | 147 | osd.button.unpressed.bg: flat border 148 | osd.button.unpressed.bg.color: #444A57 149 | osd.button.unpressed.*.border.color: #2f343f 150 | 151 | osd.button.pressed.bg: flat border 152 | osd.button.pressed.bg.color: #444A57 153 | osd.button.pressed.*.border.color: #2f343f 154 | 155 | osd.button.focused.bg: flat solid border 156 | osd.button.focused.bg.color: #2f343f 157 | osd.button.focused.*.border.color: #2f343f 158 | 159 | osd.button.focused.box.color: #81A1C1 160 | 161 | # Fonts 162 | window.active.label.text.font: shadow=n 163 | window.inactive.label.text.font: shadow=n 164 | menu.items.font: shadow=n 165 | menu.title.text.font: shadow=n 166 | 167 | # Everything else 168 | border.width: 0 169 | padding.width: 15 170 | padding.height: 10 171 | window.handle.width: 0 172 | window.client.padding.width: 0 173 | window.label.text.justify: center 174 | 175 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/bullet.xbm: -------------------------------------------------------------------------------- 1 | #define bullet_width 6 2 | #define bullet_height 6 3 | static unsigned char bullet_bits[] = { 4 | 0x06, 0x0c, 0x18, 0x18, 0x0c, 0x06 }; 5 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/close.xbm: -------------------------------------------------------------------------------- 1 | #define close_width 10 2 | #define close_height 10 3 | static unsigned char close_bits[] = { 4 | 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 5 | 0xff, 0x01, 0xfe, 0x00, 0x7c, 0x00, 0x00, 0x00 }; 6 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/close_hover.xbm: -------------------------------------------------------------------------------- 1 | #define close_width 8 2 | #define close_height 8 3 | static unsigned char close_bits[] = { 4 | 0xc3, 0xe7, 0x7e, 0x3c, 0x3c, 0x7e, 0xe7, 0xc3 }; 5 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/desk.xbm: -------------------------------------------------------------------------------- 1 | #define close_width 10 2 | #define close_height 10 3 | static unsigned char close_bits[] = { 4 | 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 5 | 0xff, 0x01, 0xfe, 0x00, 0x7c, 0x00, 0x00, 0x00 }; 6 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/desk_hover.xbm: -------------------------------------------------------------------------------- 1 | #define desk_toggled_width 8 2 | #define desk_toggled_height 8 3 | static unsigned char desk_toggled_bits[] = { 4 | 0xe7, 0xe7, 0xe7, 0x00, 0x00, 0xe7, 0xe7, 0xe7 }; 5 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/desk_hover_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define desk_width 8 2 | #define desk_height 8 3 | static unsigned char desk_bits[] = { 4 | 0x04, 0x0e, 0x3f, 0x1e, 0x1c, 0x24, 0x40, 0x80 }; 5 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/desk_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define close_width 10 2 | #define close_height 10 3 | static unsigned char close_bits[] = { 4 | 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 5 | 0xff, 0x01, 0xfe, 0x00, 0x7c, 0x00, 0x00, 0x00 }; 6 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/iconify.xbm: -------------------------------------------------------------------------------- 1 | #define iconify_width 10 2 | #define iconify_height 10 3 | static unsigned char iconify_bits[] = { 4 | 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 5 | 0xff, 0x01, 0xfe, 0x00, 0x7c, 0x00, 0x00, 0x00 }; 6 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/iconify_hover.xbm: -------------------------------------------------------------------------------- 1 | #define iconify_width 8 2 | #define iconify_height 8 3 | static unsigned char iconify_bits[] = { 4 | 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x00 }; 5 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/max.xbm: -------------------------------------------------------------------------------- 1 | #define max_width 10 2 | #define max_height 10 3 | static unsigned char max_bits[] = { 4 | 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 5 | 0xff, 0x01, 0xfe, 0x00, 0x7c, 0x00, 0x00, 0x00 }; 6 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/max_hover.xbm: -------------------------------------------------------------------------------- 1 | #define titlebutton_max_2_width 8 2 | #define titlebutton_max_2_height 8 3 | static unsigned char titlebutton_max_2_bits[] = { 4 | 0xf8, 0xf0, 0xe0, 0xc1, 0x83, 0x07, 0x0f, 0x1f }; 5 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/max_hover_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define titlebutton_max_2_width 8 2 | #define titlebutton_max_2_height 8 3 | static unsigned char titlebutton_max_2_bits[] = { 4 | 0xf8, 0xf0, 0xe0, 0xc1, 0x83, 0x07, 0x0f, 0x1f }; 5 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/max_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define max_width 10 2 | #define max_height 10 3 | static unsigned char max_bits[] = { 4 | 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 5 | 0xff, 0x01, 0xfe, 0x00, 0x7c, 0x00, 0x00, 0x00 }; 6 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/shade.xbm: -------------------------------------------------------------------------------- 1 | #define iconify_width 10 2 | #define iconify_height 10 3 | static unsigned char iconify_bits[] = { 4 | 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 5 | 0xff, 0x01, 0xfe, 0x00, 0x7c, 0x00, 0x00, 0x00 }; 6 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/shade_hover.xbm: -------------------------------------------------------------------------------- 1 | #define shade_width 8 2 | #define shade_height 8 3 | static unsigned char shade_bits[] = { 4 | 0x18, 0x3c, 0x7e, 0xff, 0xdb, 0x18, 0x18, 0x18 }; 5 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/shade_hover_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define shade_toggled_width 8 2 | #define shade_toggled_height 8 3 | static unsigned char shade_toggled_bits[] = { 4 | 0x18, 0x18, 0x18, 0xdb, 0xff, 0x7e, 0x3c, 0x18 }; 5 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/shade_toggled.xbm: -------------------------------------------------------------------------------- 1 | #define iconify_width 10 2 | #define iconify_height 10 3 | static unsigned char iconify_bits[] = { 4 | 0x7c, 0x00, 0xfe, 0x00, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 0xff, 0x01, 5 | 0xff, 0x01, 0xfe, 0x00, 0x7c, 0x00, 0x00, 0x00 }; 6 | -------------------------------------------------------------------------------- /myobtheme/openbox-3/themerc: -------------------------------------------------------------------------------- 1 | 2 | # Menu 3 | menu.border.width: 10 4 | menu.overlap.x: -20 5 | menu.overlap.y: -20 6 | 7 | menu.border.color: #2f343f 8 | menu.separator.color: #2f343f 9 | 10 | menu.title.bg: flat solid 11 | menu.title.bg.color: #2f343f 12 | menu.title.text.color: #81A1C1 13 | menu.title.text.justify: Center 14 | 15 | menu.items.bg: flat solid 16 | menu.items.bg.color: #2f343f 17 | 18 | menu.items.text.color: #e1e1e1 19 | menu.items.disabled.text.color: #2f343f 20 | 21 | menu.items.active.bg: flat solid 22 | menu.items.active.bg.color: #2f343f 23 | menu.items.active.text.color: #81A1C1 24 | 25 | # Active window 26 | window.active.border.color: #81A1C1 27 | 28 | window.active.title.bg: solid flat 29 | window.active.title.bg.color: #2f343f 30 | window.active.title.separator.color: #2f343f 31 | window.active.text.justify: center 32 | 33 | window.active.label.bg: parentrelative 34 | window.active.label.text.color: #2f343f 35 | 36 | window.active.handle.bg: flat solid 37 | window.active.handle.bg.color: #81A1C1 38 | 39 | window.active.grip.bg: flat solid 40 | window.active.grip.bg.color: #81A1C1 41 | 42 | window.active.button.unpressed.bg: parentrelative 43 | window.active.button.unpressed.bg.color: #2f343f 44 | 45 | window.active.button.iconify.unpressed.image.color: #EBCB8B 46 | window.active.button.iconify.pressed.image.color: #EBCB8B 47 | window.active.button.iconify.hover.image.color: #EBCB8B 48 | 49 | window.active.button.max.unpressed.image.color: #A3BE8C 50 | window.active.button.max.pressed.image.color: #A3BE8C 51 | window.active.button.max.hover.image.color: #A3BE8C 52 | 53 | window.active.button.close.unpressed.image.color: #BF616A 54 | window.active.button.close.pressed.image.color: #BF616A 55 | window.active.button.close.hover.image.color: #BF616A 56 | 57 | window.active.button.shade.unpressed.image.color: #B48EAD 58 | window.active.button.shade.pressed.image.color: #B48EAD 59 | window.active.button.shade.hover.image.color: #B48EAD 60 | 61 | window.active.button.desk.unpressed.image.color: #88C0D0 62 | window.active.button.desk.pressed.image.color: #88C0D0 63 | window.active.button.desk.hover.image.color: #88C0D0 64 | 65 | window.active.button.pressed.bg: parentrelative 66 | window.active.button.pressed.bg.color: #2f343f 67 | 68 | window.active.button.disabled.bg: parentrelative 69 | window.active.button.disabled.bg.color: #2f343f 70 | window.active.button.disabled.image.color: #2f343f 71 | 72 | window.active.button.toggled.bg: parentrelative 73 | window.active.button.toggled.image.color: #81A1C1 74 | 75 | window.active.button.toggled.pressed.bg: parentrelative 76 | window.active.button.toggled.pressed.image.color: #81A1C1 77 | 78 | # Inactive window 79 | window.inactive.border.color: #B48EAD 80 | 81 | window.inactive.title.bg: flat solid 82 | window.inactive.title.bg.color: #2f343f 83 | window.inactive.title.separator.color: #2f343f 84 | window.inactive.text.justify: center 85 | 86 | window.inactive.label.bg: parentrelative 87 | window.inactive.label.text.color: #2f343f 88 | 89 | window.inactive.handle.bg: flat solid 90 | window.inactive.handle.bg.color: #B48EAD 91 | 92 | window.inactive.grip.bg: flat solid 93 | window.inactive.grip.bg.color: #B48EAD 94 | 95 | window.inactive.button.unpressed.bg: parentrelative 96 | window.inactive.button.unpressed.bg.color: #2f343f 97 | 98 | window.inactive.button.iconify.unpressed.image.color: #444A57 99 | window.inactive.button.iconify.pressed.image.color: #EBCB8B 100 | window.inactive.button.iconify.hover.image.color: #EBCB8B 101 | 102 | window.inactive.button.max.unpressed.image.color: #444A57 103 | window.inactive.button.max.pressed.image.color: #A3BE8C 104 | window.inactive.button.max.hover.image.color: #A3BE8C 105 | 106 | window.inactive.button.close.unpressed.image.color: #444A57 107 | window.inactive.button.close.pressed.image.color: #BF616A 108 | window.inactive.button.close.hover.image.color: #BF616A 109 | 110 | window.inactive.button.shade.unpressed.image.color: #444A57 111 | window.inactive.button.shade.pressed.image.color: #B48EAD 112 | window.inactive.button.shade.hover.image.color: #B48EAD 113 | 114 | window.inactive.button.desk.unpressed.image.color: #444A57 115 | window.inactive.button.desk.pressed.image.color: #88C0D0 116 | window.inactive.button.desk.hover.image.color: #88C0D0 117 | 118 | window.inactive.button.pressed.bg: flat solid 119 | window.inactive.button.pressed.bg.color: #81A1C1 120 | 121 | window.inactive.button.disabled.bg: flat solid 122 | window.inactive.button.disabled.bg.color: #2f343f 123 | window.inactive.button.disabled.image.color: #2f343f 124 | 125 | window.inactive.button.toggled.bg: parentrelative 126 | window.inactive.button.toggled.image.color: #81A1C1 127 | 128 | window.inactive.button.toggled.pressed.bg: parentrelative 129 | window.inactive.button.toggled.pressed.image.color: #81A1C1 130 | 131 | # OSD 132 | osd.border.width: 3 133 | osd.border.color: #2f343f 134 | 135 | osd.bg: flat solid 136 | osd.bg.color: #2f343f 137 | osd.label.bg: flat solid 138 | osd.label.bg.color: #2f343f 139 | osd.label.text.color: #e1e1e1 140 | 141 | osd.hilight.bg: flat solid 142 | osd.hilight.bg.color: #81A1C1 143 | 144 | osd.unhilight.bg: flat solid 145 | osd.unhilight.bg.color: #444A57 146 | 147 | osd.button.unpressed.bg: flat border 148 | osd.button.unpressed.bg.color: #444A57 149 | osd.button.unpressed.*.border.color: #2f343f 150 | 151 | osd.button.pressed.bg: flat border 152 | osd.button.pressed.bg.color: #444A57 153 | osd.button.pressed.*.border.color: #2f343f 154 | 155 | osd.button.focused.bg: flat solid border 156 | osd.button.focused.bg.color: #2f343f 157 | osd.button.focused.*.border.color: #2f343f 158 | 159 | osd.button.focused.box.color: #81A1C1 160 | 161 | # Fonts 162 | window.active.label.text.font: shadow=n 163 | window.inactive.label.text.font: shadow=n 164 | menu.items.font: shadow=n 165 | menu.title.text.font: shadow=n 166 | 167 | # Everything else 168 | border.width: 5 169 | padding.width: 15 170 | padding.height: 10 171 | window.handle.width: 0 172 | window.client.padding.width: 0 173 | window.label.text.justify: center 174 | 175 | -------------------------------------------------------------------------------- /obtgen: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # . . 4 | # | | 5 | # ,-. |-. |- ,-: ,-. ;-. 6 | # | | | | | | | |-' | | 7 | # `-' `-' `-' `-| `-' ' ' 8 | # `-' 9 | # Openbox Theme Generator 10 | 11 | file=$HOME/.Xresources 12 | wb(){ 13 | { 14 | fill_color 15 | cat < ~/.local/bin/my-obtgen/openbox-3/themerc 192 | cp ~/.local/bin/my-obtgen/openbox-3/* ~/.themes/myobtheme/openbox-3/ 193 | check_theme 194 | } 195 | 196 | nrml(){ 197 | { 198 | fill_color 199 | cat < ~/.local/bin/myobtheme/openbox-3/themerc 376 | cp -r ~/.local/bin/myobtheme/ ~/.themes/ 377 | check_theme 378 | } 379 | 380 | fill_color(){ 381 | get_colors(){ 382 | grep "color$1 *:" $file | awk -F\# '{print $2}' | head -1 383 | } 384 | get_colors_bg=`grep "background *:" $file | awk -F\# '{print $2}' | head -1` 385 | } 386 | 387 | check_theme(){ 388 | if [[ $(cat $HOME/.config/openbox/rc.xml | grep "myobtheme") ]]; then 389 | notify-send "Done. now you can try your theme :)" 390 | openbox --reconfigure 391 | elif [[ $(find /usr/lib -type d -name lxappearance | xargs ls -R | grep ob) ]]; then 392 | lxappearance >/dev/null 2>&1 393 | elif [[ $(which obconf) ]]; then 394 | obconf >/dev/null 2>&1 395 | fi 396 | } 397 | 398 | help(){ 399 | cat <<-EOF 400 | 401 | 888 888 402 | 888 888 403 | 888 888 404 | .d88b. 88888b. 888888 .d88b. .d88b. 88888b. 405 | d88""88b888 "88b888 d88P"88bd8P Y8b888 "88b 406 | 888 888888 888888 888 88888888888888 888 407 | Y88..88P888 d88PY88b. Y88b 888Y8b. 888 888 408 | "Y88P" 88888P" "Y888 "Y88888 "Y8888 888 888 409 | 888 410 | Y8b d88P 411 | "Y88P" 412 | 413 | Openbox Theme Generator 414 | 415 | Usage : obtgen [options #optional] 416 | 417 | Avaible options 418 | --wal Generate color from pywal cache 419 | --wb Generate borderless theme 420 | --help Show help 421 | 422 | EOF 423 | } 424 | 425 | if [[ "$(echo "$@" | grep '\--wal')" && "$(echo "$@" | grep '\--wb')" ]]; then 426 | file=$HOME/.cache/wal/colors.Xresources 427 | wb 428 | elif [[ "$(echo "$@" | grep '\--wb')" ]]; then 429 | wb 430 | elif [[ "$(echo "$@" | grep '\--wal')" ]]; then 431 | file=$HOME/.cache/wal/colors.Xresources 432 | nrml 433 | elif [[ "$(echo "$@" | grep '\--help')" ]]; then 434 | help 435 | else 436 | nrml 437 | fi -------------------------------------------------------------------------------- /preview/preview-obtgen-wal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fikriomar16/obtgen/aec1e148fa7a28eea96d081e1207d19f204b0cf1/preview/preview-obtgen-wal.png -------------------------------------------------------------------------------- /preview/preview-obtgen-wal2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fikriomar16/obtgen/aec1e148fa7a28eea96d081e1207d19f204b0cf1/preview/preview-obtgen-wal2.png -------------------------------------------------------------------------------- /preview/preview-obtgen-wal3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fikriomar16/obtgen/aec1e148fa7a28eea96d081e1207d19f204b0cf1/preview/preview-obtgen-wal3.png -------------------------------------------------------------------------------- /preview/preview-obtgen-wal4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fikriomar16/obtgen/aec1e148fa7a28eea96d081e1207d19f204b0cf1/preview/preview-obtgen-wal4.png -------------------------------------------------------------------------------- /preview/preview-obtgen-wal5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fikriomar16/obtgen/aec1e148fa7a28eea96d081e1207d19f204b0cf1/preview/preview-obtgen-wal5.png -------------------------------------------------------------------------------- /preview/preview-obtgen-wal6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fikriomar16/obtgen/aec1e148fa7a28eea96d081e1207d19f204b0cf1/preview/preview-obtgen-wal6.png -------------------------------------------------------------------------------- /preview/preview-obtgen-wal7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fikriomar16/obtgen/aec1e148fa7a28eea96d081e1207d19f204b0cf1/preview/preview-obtgen-wal7.png -------------------------------------------------------------------------------- /preview/preview-obtgen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fikriomar16/obtgen/aec1e148fa7a28eea96d081e1207d19f204b0cf1/preview/preview-obtgen.png --------------------------------------------------------------------------------