blob: 3df3e68cb9d2b71555f565bc0a1e2b1d6cf62697 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# Devour: X11 Window Swallower
Devour hides your current window before launching an external program and unhides it after quitting.
Devour was inspired by
[sw](https://github.com/ronniedroid/.dotfiles/blob/master/Scripts/sw)
and is a successor to
[devour.sh](https://github.com/salman-abedin/devour.sh)

# Demonstration done by [DistroTube](https://www.youtube.com/channel/UCVls1GmFKf6WlTraIb_IaJg)
[](https://www.youtube.com/watch?v=mBNLzHcUtTo&t=5m22s)
## Dependencies
- Xlib (client-side header files)
## Installation
#### AUR
```sh
yay -S --noconfirm devour
# or
yay -S --noconfirm devour-git # Nightly
```
#### Git
```sh
git clone https://github.com/salman-abedin/devour.git && cd devour && sudo make install
```
## Usage
```sh
devour CMD ...
```
## Patches
- **Shell aliases**. (ex. `devour z FILE` instead of `devour zathura FILE`)
```sh
cd devour
patch -s < devour-shellalias-10.0.diff # Add the feature
patch -s -R < devour-shellalias-10.0.diff # Remove the feature
sudo make install # Reinstall
```
## Pro Tip
**Devour from your file explorer instead of the shell.**
Watch my demo and notice how seamless it is compared to devouring from the shell.
**Hint:** If you are one of those unfortunate souls who uses **xdg-open** instead of
[a custom launch script](https://gist.github.com/salman-abedin/6f52c52e465d89d489f9ea8d891c7332),
then go to your **~/.local/share/applications** directory and modify the applications you launch from your file explorer like below and enjoy the true devouring experience.
```
[Desktop Entry]
Type=Application
Name=PDF Reader
Exec=/usr/local/bin/devour /usr/bin/zathura %U
```
## Update
```sh
cd devour
git pull --no-rebase && sudo make install
```
## Uninstallation
```sh
cd devour
sudo make uninstall
```
## Logs
- **21/06/20**:- Added support for names with spaces
- **07/07/20**:- Added support for shell aliases
- **03/08/20**:- Rewrote the shellscript in C
- **23/08/20**:- Made additional features optional using patching
- **08/11/20**:- Added support for all unsafe characters
## Contributors
- keni7385 (AUR package submitter/maintainer)
- [agnipau](https://github.com/agnipau)
- [HawaiinPizza](https://github.com/HawaiinPizza)
- [sbuller](https://github.com/sbuller)
- [AriaMoradi](https://github.com/AriaMoradi)
- [durcor](https://github.com/durcor)
## TO-DOs
- Authentic swallowing
---
## Shameful Plug
| Name | Description |
| ------------------------------------------------------- | ---------------------------------- |
| [faint](https://github.com/salman-abedin/faint) | Extensible TUI fuzzy file explorer |
| [bolt](https://github.com/salman-abedin/bolt) | The launcher wrapper |
| [uniblocks](https://github.com/salman-abedin/uniblocks) | The status bar wrapper |
| [tide](https://github.com/salman-abedin/tide) | Minimal Transmission CLI client |
| [puri](https://github.com/salman-abedin/puri) | Minimal URL launcher |
| [Magpie](https://github.com/salman-abedin/magpie) | The dotfiles |
| [Alfred](https://github.com/salman-abedin/alfred) | The scripts |
## Contact
SalmanAbedin@disroot.org
|