diff options
| author | hhvn <dev@hhvn.uk> | 2023-11-16 20:45:11 +0000 |
|---|---|---|
| committer | hhvn <dev@hhvn.uk> | 2023-11-18 19:54:50 +0000 |
| commit | 2b7504f96fcb8878ac5ed089940868517a74da79 (patch) | |
| tree | ff0b24c32b5d037427ffa4a664caf48b8484046e /main.go | |
| parent | 2a8069eb9606af55f76ac43e187ca83a7dd6957f (diff) | |
Create x package
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -7,8 +7,9 @@ import ( "os/signal" "hhvn.uk/hbspbar/common" - "hhvn.uk/hbspbar/bspc" + "hhvn.uk/hbspbar/x" "hhvn.uk/hbspbar/bar" + "hhvn.uk/hbspbar/bspc" ) func main() { @@ -18,11 +19,12 @@ func main() { syscall.SIGHUP, syscall.SIGTERM) - if bar.InitErr != nil { - common.Error("Couldn't initialize X: %s\n", bar.InitErr) + defer bar.Cleanup() + + if x.InitErr != nil { + common.Error("Couldn't initialize X: %s\n", x.InitErr) return } - defer bar.Cleanup() if bspc.InitErr != nil { common.Error("Couldn't subscribe to bspwm: %s\n", bspc.InitErr) |