summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--pkg/background.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/background.go b/pkg/background.go
new file mode 100644
index 0000000..44e455c
--- /dev/null
+++ b/pkg/background.go
@@ -0,0 +1,25 @@
+// Copyright (c) 2020, Andinus <andinus@inventati.org>
+
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+package background
+
+// Set calls feh to set the background
+func Set(path string) error {
+	feh, err := exec.LookPath("feh")
+	if err != nil {
+		return err
+	}
+	err = exec.Command(feh, "--bg-fill", path).Run()
+	return err
+}
le='author Stevan Andjelkovic <stevan@student.chalmers.se> 2011-01-17 16:12:29 +0000 committer Stevan Andjelkovic <stevan@student.chalmers.se> 2011-01-17 16:12:29 +0000 Further FreeBSD attempts. ok marco@' href='/novaburst/xombrero/commit/freebsd/Makefile?id=1bbe7631c3b8603141c3dd5917a8cd3516610caf'>1bbe763 ^
66c3a4f ^
1bbe763 ^
66c3a4f ^
1bbe763 ^
66c3a4f ^
f4171a4 ^

1bbe763 ^
66c3a4f ^
1bbe763 ^
b323713 ^

42bac51 ^



e1becca ^

6033b7c ^

bf5d2f9 ^

04a0910 ^

c1ac3eb ^



02e49e4 ^

66c3a4f ^

c1ac3eb ^
02e49e4 ^
66c3a4f ^
1bbe763 ^












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