diff options
| -rw-r--r-- | config/config.go | 3 | ||||
| -rw-r--r-- | main.go | 7 | ||||
| -rwxr-xr-x | wm | bin | 4284232 -> 4284639 bytes |
3 files changed, 9 insertions, 1 deletions
diff --git a/config/config.go b/config/config.go index e094dfb..9539280 100644 --- a/config/config.go +++ b/config/config.go @@ -2,3 +2,6 @@ package config var BarHeight uint16 = 20 var GapSize int = 10 + +// commands that get executed on startup +var Startup = []string{"notify-send hello world!"} @@ -9,7 +9,7 @@ import ( "github.com/BurntSushi/xgb" "github.com/BurntSushi/xgb/xproto" - config "github.com/crecheer/wm/config" + "github.com/crecheer/wm/config" "github.com/crecheer/wm/keysym" ) @@ -115,6 +115,11 @@ func setup(conn *xgb.Conn) { if barHeight != 0 { createBar(conn) } + + for _, cmd := range config.Startup { + exec.Command(cmd) + log.Println(cmd) + } } func spawn(cmd string, args ...string) { Binary files differ |